Delay bringing up the interface because some cards requires setting the mode before...
authorFlorian Fainelli <florian@openwrt.org>
Wed, 18 Jun 2008 17:09:02 +0000 (17:09 +0000)
committerFlorian Fainelli <florian@openwrt.org>
Wed, 18 Jun 2008 17:09:02 +0000 (17:09 +0000)
SVN-Revision: 11533

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

index 5fa687e0cd04853cbd060eecf905cfeb3b4fa0af..9288f4d9e911b482a9e5d2028ab59950d4370dba 100755 (executable)
@@ -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