aboutsummaryrefslogtreecommitdiffstats
path: root/package/madwifi/files
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2007-06-25 10:58:17 +0000
committerFelix Fietkau <nbd@openwrt.org>2007-06-25 10:58:17 +0000
commit0459ba37f3a58269bcd4c58301b0e11b30ee3dcb (patch)
tree431adeee974df9e4648b464d41c8eb22f699f7a8 /package/madwifi/files
parentd3c25dfdc6102fc7b019bad6e2669d1be77e6a98 (diff)
downloadupstream-0459ba37f3a58269bcd4c58301b0e11b30ee3dcb.tar.gz
upstream-0459ba37f3a58269bcd4c58301b0e11b30ee3dcb.tar.bz2
upstream-0459ba37f3a58269bcd4c58301b0e11b30ee3dcb.zip
madwifi: add some extra delay between bringing the interface up and configuring it (#1703)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7729 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/madwifi/files')
-rwxr-xr-xpackage/madwifi/files/lib/wifi/madwifi.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/package/madwifi/files/lib/wifi/madwifi.sh b/package/madwifi/files/lib/wifi/madwifi.sh
index 2635699adb..2fd025b127 100755
--- a/package/madwifi/files/lib/wifi/madwifi.sh
+++ b/package/madwifi/files/lib/wifi/madwifi.sh
@@ -104,6 +104,7 @@ enable_atheros() {
esac
iwconfig "$ifname" channel 0 >/dev/null 2>/dev/null
ifconfig "$ifname" up
+ sleep 1
iwpriv "$ifname" mode "$agmode"
iwpriv "$ifname" pureg "$pureg"
iwconfig "$ifname" channel "$channel" >/dev/null 2>/dev/null