aboutsummaryrefslogtreecommitdiffstats
path: root/package/madwifi/files
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
commite2e80ab38a9101418939a611a4f95ec7306001bf (patch)
treeab318c4a175d449b03758a9a77fd0208b965bbf0 /package/madwifi/files
parente2b679fd3f950e8a3cb720759f6a1d244b6a8852 (diff)
downloadupstream-e2e80ab38a9101418939a611a4f95ec7306001bf.tar.gz
upstream-e2e80ab38a9101418939a611a4f95ec7306001bf.tar.bz2
upstream-e2e80ab38a9101418939a611a4f95ec7306001bf.zip
Delay bringing up the interface because some cards requires setting the mode before bringing it up (#3541)
SVN-Revision: 11533
Diffstat (limited to 'package/madwifi/files')
-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