aboutsummaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2008-06-18 17:09:02 +0000
committerFlorian Fainelli <florian@openwrt.org>2008-06-18 17:09:02 +0000
commit7362b16c02211b1d557e1c46e06f431b6de32967 (patch)
tree0e54cffaaa9abb6d14cf7239ca8e204d1b2e4fc3 /package
parentfaf09bdc78c8eaaf7a5a4b246272a144944b09e7 (diff)
downloadupstream-7362b16c02211b1d557e1c46e06f431b6de32967.tar.gz
upstream-7362b16c02211b1d557e1c46e06f431b6de32967.tar.bz2
upstream-7362b16c02211b1d557e1c46e06f431b6de32967.zip
Delay bringing up the interface because some cards requires setting the mode before bringing it up (#3541)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@11533 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package')
-rwxr-xr-xpackage/madwifi/files/lib/wifi/madwifi.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/madwifi/files/lib/wifi/madwifi.sh b/package/madwifi/files/lib/wifi/madwifi.sh
index 5fa687e0cd..9288f4d9e9 100755
--- a/package/madwifi/files/lib/wifi/madwifi.sh
+++ b/package/madwifi/files/lib/wifi/madwifi.sh
@@ -106,11 +106,11 @@ enable_atheros() {
*) agmode=auto;;
esac
iwconfig "$ifname" channel "$channel" >/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
+ ifconfig "$ifname" up
}
config_get_bool hidden "$vif" hidden 0