Skip to content
Snippets Groups Projects
Commit 7d587f68 authored by Anjan Chanda's avatar Anjan Chanda
Browse files

wifi: handle 'isolate' config option

parent db5f9410
Branches
No related tags found
No related merge requests found
......@@ -529,6 +529,7 @@ intel_prepare_vif() {
json_select config
json_get_vars ifname mode ssid wps:0 disabled:0 ieee80211r:0
json_get_vars network:0
json_get_vars isolate
local radio_macaddr=$1
......@@ -539,12 +540,20 @@ intel_prepare_vif() {
}
[ "$network" -eq 0 -a "$mode" == "ap" ] && {
uci -q set wireless.@wifi-iface[$if_idx].network="lan"
uci commit wireless
uci reload wireless
#uci -q set wireless.@wifi-iface[$if_idx].network="lan"
#uci commit wireless
#uci reload wireless
set_default network_bridge "br-lan"
}
[ "$isolate" -eq 0 ] && {
iwpriv $ifname sAPforwarding 1
} || {
iwpriv $ifname sAPforwarding 0
}
iwpriv $ifname gAPforwarding > /dev/console
vifs="$vifs $ifname"
intel_config_pre_up $ifname
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment