summaryrefslogtreecommitdiff
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
commitc1366bb46d9b37f1565a67ee83d6080974542f9b (patch)
tree5f8442f3354f6772f41c741fe1f2b7658089f57a /package/madwifi/files
parent2cccffcba8a550dd5239eea0edcc833d5c416671 (diff)
downloadmtk-20170518-c1366bb46d9b37f1565a67ee83d6080974542f9b.zip
mtk-20170518-c1366bb46d9b37f1565a67ee83d6080974542f9b.tar.gz
mtk-20170518-c1366bb46d9b37f1565a67ee83d6080974542f9b.tar.bz2
madwifi: add some extra delay between bringing the interface up and configuring it (#1703)
SVN-Revision: 7729
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 2635699..2fd025b 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