hostapd: add multiple_bssid support
[openwrt/staging/blogic.git] / package / network / services / hostapd / files / hostapd.sh
index 3290358ed21ea571ac7b7683f6900b749064b1b9..f9318f7927231901cc7d5a58ae346c524ed19429 100644 (file)
@@ -101,6 +101,7 @@ hostapd_common_add_device_config() {
 
        config_add_string acs_chan_bias
        config_add_array hostapd_options
+       config_add_boolean multiple_bssid ema_beacon
 
        hostapd_add_log_config
 }
@@ -113,7 +114,8 @@ hostapd_prepare_device_config() {
        local base_cfg=
 
        json_get_vars country country_ie beacon_int:100 dtim_period:2 doth require_mode legacy_rates \
-               acs_chan_bias local_pwr_constraint spectrum_mgmt_required airtime_mode
+               acs_chan_bias local_pwr_constraint spectrum_mgmt_required airtime_mode \
+               multiple_bssid ema_beacon
 
        hostapd_set_log_options base_cfg
 
@@ -122,6 +124,8 @@ hostapd_prepare_device_config() {
        set_default doth 1
        set_default legacy_rates 1
        set_default airtime_mode 0
+       set_default multiple_bssid 0
+        set_default ema_beacon 0
 
        [ "$hwmode" = "b" ] && legacy_rates=1
 
@@ -169,6 +173,8 @@ hostapd_prepare_device_config() {
        append base_cfg "beacon_int=$beacon_int" "$N"
        append base_cfg "dtim_period=$dtim_period" "$N"
        [ "$airtime_mode" -gt 0 ] && append base_cfg "airtime_mode=$airtime_mode" "$N"
+       append base_cfg "multiple_bssid=$multiple_bssid" "$N"
+       append base_cfg "ema_beacon=$ema_beacon" "$N"
 
        json_get_values opts hostapd_options
        for val in $opts; do