madwifi: add some extra delay between bringing the interface up and configuring it...
authorFelix Fietkau <nbd@openwrt.org>
Mon, 25 Jun 2007 10:58:17 +0000 (10:58 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Mon, 25 Jun 2007 10:58:17 +0000 (10:58 +0000)
SVN-Revision: 7729

package/madwifi/files/lib/wifi/madwifi.sh

index 2635699adb4e7141c20f9f3d7741ab3438218bf5..2fd025b1277243a6e0bcb110b0e89b5875797868 100755 (executable)
@@ -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