[openwrt/openwrt] hostapd: fix handling of the channel utilization options

LEDE Commits lede-commits at lists.infradead.org
Tue Jun 22 12:55:10 PDT 2021


aparcar pushed a commit to openwrt/openwrt.git, branch openwrt-21.02:
https://git.openwrt.org/82c700de67dc03bb71a739e1b40f08d84ea24e5d

commit 82c700de67dc03bb71a739e1b40f08d84ea24e5d
Author: Timo Sigurdsson <public_timo.s at silentcreek.de>
AuthorDate: Tue Jun 15 23:12:08 2021 +0200

    hostapd: fix handling of the channel utilization options
    
    Commit 0a7657c ("hostapd: add channel utilization as config option") added the
    two new uci options bss_load_update_period and chan_util_avg_period. However,
    the corresponding "config_add_int" calls for these options weren't added, so
    attempting to actually use these options and change their values is bound to
    fail - they always stay at their defaults. Add the missing code to actually
    make these options work.
    
    Fixes: 0a7657c ("hostapd: add channel utilization as config option")
    Signed-off-by: Timo Sigurdsson <public_timo.s at silentcreek.de>
    (cherry picked from commit 85ce590705072be78c3ef7dc6b64e3b1facc892b)
---
 package/network/services/hostapd/files/hostapd.sh | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/package/network/services/hostapd/files/hostapd.sh b/package/network/services/hostapd/files/hostapd.sh
index 45a49b8faa..87fcaf03b3 100644
--- a/package/network/services/hostapd/files/hostapd.sh
+++ b/package/network/services/hostapd/files/hostapd.sh
@@ -251,6 +251,8 @@ hostapd_common_add_bss_config() {
 	config_add_int acct_port
 	config_add_int acct_interval
 
+	config_add_int bss_load_update_period chan_util_avg_period
+
 	config_add_string dae_client
 	config_add_string dae_secret
 	config_add_int dae_port



More information about the lede-commits mailing list