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 2ca5d22..d653620 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 46f994e..222e2a9 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=