Skip to content

Commit

Permalink
hostapd: add support for configuring rts threshold
Browse files Browse the repository at this point in the history
Signed-off-by: Felix Fietkau <nbd@nbd.name>
  • Loading branch information
nbd168 committed May 26, 2021
1 parent 2319cf4 commit 26da5c2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion package/network/services/hostapd/files/hostapd.sh
Expand Up @@ -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
Expand All @@ -115,7 +116,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 cell_density
acs_chan_bias local_pwr_constraint spectrum_mgmt_required airtime_mode cell_density \
rts_threshold

hostapd_set_log_options base_cfg

Expand Down Expand Up @@ -209,6 +211,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"

Expand Down

0 comments on commit 26da5c2

Please sign in to comment.