Delay bringing up the interface because some cards requires setting the mode before...
authorflorian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Wed, 18 Jun 2008 17:09:02 +0000 (17:09 +0000)
committerflorian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Wed, 18 Jun 2008 17:09:02 +0000 (17:09 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@11533 3c298f89-4303-0410-b956-a3cf2f4a3e73

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

index 5fa687e..9288f4d 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
This page took 0.02151 seconds and 4 git commands to generate.