hostapd: add ap isolate support for mac80211
[openwrt/openwrt.git] / package / hostapd / files / hostapd.sh
index 9dc18366d994c06cd0363607494b5f5678cccd64..a41c7678a7044261ef7394e1489081d215b4b09d 100644 (file)
@@ -5,6 +5,11 @@ hostapd_set_bss_options() {
 
        config_get enc "$vif" encryption
        config_get wpa_group_rekey "$vif" wpa_group_rekey
+       config_get_bool ap_isolate "$vif" isolate 0
+
+       if [ "$ap_isolate" -gt 0 ]; then
+               append "$var" "ap_isolate=$ap_isolate" "$N"
+       fi
 
        # Examples:
        # psk-mixed/tkip        => WPA1+2 PSK, TKIP