fix isolate mode
authorMike Baker <mbm@openwrt.org>
Thu, 10 May 2007 06:54:47 +0000 (06:54 +0000)
committerMike Baker <mbm@openwrt.org>
Thu, 10 May 2007 06:54:47 +0000 (06:54 +0000)
SVN-Revision: 7155

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

index 3e8df9ded42e02cae5d5cbcf5d474dae5889f195..9d539a08b0aae4002538656e160e21dbdc4dccde 100755 (executable)
@@ -195,7 +195,7 @@ enable_atheros() {
                case "$mode" in
                        ap)
                                config_get_bool isolate "$vif" isolate 0
-                               iwpriv "$ifname" ap_bridge "$isolate"
+                               iwpriv "$ifname" ap_bridge "$((isolate^1))"
 
                                if eval "type hostapd_setup_vif" 2>/dev/null >/dev/null; then
                                        hostapd_setup_vif "$vif" madwifi || {