[openwrt/openwrt] hostapd: add support for configuring the beacon rate

LEDE Commits lede-commits at lists.infradead.org
Wed Jun 2 00:33:39 PDT 2021


nbd pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/46509a51dd63aa49648ad0f130461817f43532d0

commit 46509a51dd63aa49648ad0f130461817f43532d0
Author: Felix Fietkau <nbd at nbd.name>
AuthorDate: Wed May 26 13:04:50 2021 +0200

    hostapd: add support for configuring the beacon rate
    
    Signed-off-by: Felix Fietkau <nbd at nbd.name>
---
 package/network/services/hostapd/files/hostapd.sh | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/package/network/services/hostapd/files/hostapd.sh b/package/network/services/hostapd/files/hostapd.sh
index 5e9678eef6..4c4cb3f4b1 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
 	config_add_boolean country_ie doth
@@ -117,7 +118,7 @@ hostapd_prepare_device_config() {
 
 	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 \
-		rts_threshold
+		rts_threshold beacon_rate
 
 	hostapd_set_log_options base_cfg
 
@@ -208,6 +209,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"



More information about the lede-commits mailing list