diff options
author | Felix Fietkau <nbd@nbd.name> | 2021-05-26 13:04:50 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2021-11-23 18:30:05 +0100 |
commit | 32b047e22e1d86c6400667ab2ae57806eb173014 (patch) | |
tree | 5da8e3b11491f53084a16e9128897477f8c3514e /package | |
parent | 1f5155d00564a07259bbc4294b295aaac606e6ca (diff) | |
download | upstream-32b047e22e1d86c6400667ab2ae57806eb173014.tar.gz upstream-32b047e22e1d86c6400667ab2ae57806eb173014.tar.bz2 upstream-32b047e22e1d86c6400667ab2ae57806eb173014.zip |
hostapd: add support for configuring the beacon rate
Signed-off-by: Felix Fietkau <nbd@nbd.name>
(cherry-picked from commit 46509a51dd63aa49648ad0f130461817f43532d0)
Diffstat (limited to 'package')
-rw-r--r-- | package/network/services/hostapd/files/hostapd.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/package/network/services/hostapd/files/hostapd.sh b/package/network/services/hostapd/files/hostapd.sh index 3b884b51e4..6a830dfad1 100644 --- a/package/network/services/hostapd/files/hostapd.sh +++ b/package/network/services/hostapd/files/hostapd.sh @@ -91,6 +91,7 @@ hostapd_add_log_config() { hostapd_common_add_device_config() { config_add_array basic_rate config_add_array supported_rates + config_add_string beacon_rate config_add_string country country3 config_add_boolean country_ie doth @@ -117,7 +118,7 @@ hostapd_prepare_device_config() { json_get_vars country country3 country_ie beacon_int:100 dtim_period:2 doth require_mode legacy_rates \ acs_chan_bias local_pwr_constraint spectrum_mgmt_required airtime_mode cell_density \ - rts_threshold + rts_threshold beacon_rate hostapd_set_log_options base_cfg @@ -209,6 +210,7 @@ hostapd_prepare_device_config() { hostapd_add_rate brlist "$br" done + [ -n "$beacon_rate" ] && append base_cfg "beacon_rate=$beacon_rate" "$N" [ -n "$rlist" ] && append base_cfg "supported_rates=$rlist" "$N" [ -n "$brlist" ] && append base_cfg "basic_rates=$brlist" "$N" append base_cfg "beacon_int=$beacon_int" "$N" |