add a workaround for the hostapd killed issue when using more than one wifi card...
authorFelix Fietkau <nbd@openwrt.org>
Fri, 20 Jul 2007 16:11:46 +0000 (16:11 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Fri, 20 Jul 2007 16:11:46 +0000 (16:11 +0000)
SVN-Revision: 8077

package/base-files/files/sbin/wifi
package/madwifi/files/lib/wifi/madwifi.sh

index 2ca5d22cb87b62be881841d200ac922137af57cb..d653620ca2442dba0481cac01b7b7bb78ec0a426 100755 (executable)
@@ -36,6 +36,7 @@ bridge_interface() {(
 
 
 wifi_updown() {
+       [ enable = "$1" ] && wifi_updown disable "$2"
        for device in ${2:-$DEVICES}; do (
                config_get disabled "$device" disabled
                [ 1 == "$disabled" ] && {
index 46f994ea74c953306f7d8c129bf851ee8a188afe..222e2a9ddd44d1eff72722b0a2cc859fae355f94 100755 (executable)
@@ -73,7 +73,6 @@ enable_atheros() {
        config_get channel "$device" channel
        config_get vifs "$device" vifs
        
-       disable_atheros "$device"
        local first=1
        for vif in $vifs; do
                nosbeacon=