diff options
author | Felix Fietkau <nbd@nbd.name> | 2021-05-18 17:46:01 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2021-11-23 18:30:05 +0100 |
commit | 1f5155d00564a07259bbc4294b295aaac606e6ca (patch) | |
tree | af5ec105a4bf1b0027bb824cafeead439f3bed9e /package/network | |
parent | 75f72696b5e12ed1e3ab39aacbeedc3db45befe0 (diff) | |
download | upstream-1f5155d00564a07259bbc4294b295aaac606e6ca.tar.gz upstream-1f5155d00564a07259bbc4294b295aaac606e6ca.tar.bz2 upstream-1f5155d00564a07259bbc4294b295aaac606e6ca.zip |
hostapd: add support for configuring rts threshold
Signed-off-by: Felix Fietkau <nbd@nbd.name>
(cherry-picked from commit 26da5c235983d215a42983467149e0e5597e8de2)
Diffstat (limited to 'package/network')
-rw-r--r-- | package/network/services/hostapd/files/hostapd.sh | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/package/network/services/hostapd/files/hostapd.sh b/package/network/services/hostapd/files/hostapd.sh index 917661de1c..3b884b51e4 100644 --- a/package/network/services/hostapd/files/hostapd.sh +++ b/package/network/services/hostapd/files/hostapd.sh @@ -99,6 +99,7 @@ hostapd_common_add_device_config() { config_add_string require_mode config_add_boolean legacy_rates config_add_int cell_density + config_add_int rts_threshold config_add_string acs_chan_bias config_add_array hostapd_options @@ -115,7 +116,8 @@ hostapd_prepare_device_config() { local base_cfg= 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 + acs_chan_bias local_pwr_constraint spectrum_mgmt_required airtime_mode cell_density \ + rts_threshold hostapd_set_log_options base_cfg @@ -210,6 +212,7 @@ hostapd_prepare_device_config() { [ -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" + [ -n "$rts_threshold" ] && append base_cfg "rts_threshold=$rts_threshold" "$N" append base_cfg "dtim_period=$dtim_period" "$N" [ "$airtime_mode" -gt 0 ] && append base_cfg "airtime_mode=$airtime_mode" "$N" |