From: Felix Fietkau Date: Mon, 25 Jun 2007 10:58:17 +0000 (+0000) Subject: madwifi: add some extra delay between bringing the interface up and configuring it... X-Git-Tag: reboot~28850 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=c1366bb46d9b37f1565a67ee83d6080974542f9b;p=openwrt%2Fstaging%2Fblogic.git madwifi: add some extra delay between bringing the interface up and configuring it (#1703) SVN-Revision: 7729 --- diff --git a/package/madwifi/files/lib/wifi/madwifi.sh b/package/madwifi/files/lib/wifi/madwifi.sh index 2635699adb4e..2fd025b12772 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