hostapd: fix handling of the channel utilization options
authorTimo Sigurdsson <public_timo.s@silentcreek.de>
Tue, 15 Jun 2021 21:12:08 +0000 (23:12 +0200)
committerPaul Spooren <mail@aparcar.org>
Tue, 22 Jun 2021 05:04:06 +0000 (19:04 -1000)
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@silentcreek.de>
package/network/services/hostapd/files/hostapd.sh

index 060199fa0c84527834c815137c0b5221b3155063..b9409c8ca3a36dc6655d6f000e3bb2d6c5bb13cc 100644 (file)
@@ -263,6 +263,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