add a workaround for the hostapd killed issue when using more than one wifi card...
[openwrt/svn-archive/archive.git] / package / base-files / files / sbin / wifi
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" ] && {