From: Florian Fainelli Date: Wed, 18 Jun 2008 17:09:02 +0000 (+0000) Subject: Delay bringing up the interface because some cards requires setting the mode before... X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=e2e80ab38a9101418939a611a4f95ec7306001bf;p=openwrt%2Fstaging%2Fjow.git Delay bringing up the interface because some cards requires setting the mode before bringing it up (#3541) SVN-Revision: 11533 --- 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