瀏覽代碼

add isolate closes #1636

SVN-Revision: 7133
Travis Kemen 18 年之前
父節點
當前提交
cae78388d1
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      package/madwifi/files/lib/wifi/madwifi.sh

+ 3 - 0
package/madwifi/files/lib/wifi/madwifi.sh

@@ -194,6 +194,9 @@ enable_atheros() {
 		iwconfig "$ifname" essid "$ssid"
 		iwconfig "$ifname" essid "$ssid"
 		case "$mode" in
 		case "$mode" in
 			ap)
 			ap)
+				config_get_bool isolate "$vif" isolate 0
+				iwpriv "$ifname" ap_bridge "$isolate"
+
 				if eval "type hostapd_setup_vif" 2>/dev/null >/dev/null; then
 				if eval "type hostapd_setup_vif" 2>/dev/null >/dev/null; then
 					hostapd_setup_vif "$vif" madwifi || {
 					hostapd_setup_vif "$vif" madwifi || {
 						echo "enable_atheros($device): Failed to set up wpa for interface $ifname" >&2
 						echo "enable_atheros($device): Failed to set up wpa for interface $ifname" >&2