mirror of
https://git.openwrt.org/openwrt/openwrt.git
synced 2026-03-02 16:43:49 +01:00
wifi-scripts: ucode: fix airtime_mode with hostapd-mini
Some checks are pending
Build all core packages / Build all core packages for selected target (push) Waiting to run
Some checks are pending
Build all core packages / Build all core packages for selected target (push) Waiting to run
Currently wifi-scripts ucode appends airtime_mode to hostapd config file unconditionally. However this breaks bringing up interface with hostapd-mini because the mini variant doesn't support airtime policy. Fix this by changing the script to append airtime_mode only when airtime_mode is set to greater than zero value in /etc/config/wireless. Fixes: #20136 Fixes: #20314 Signed-off-by: Zhi-Jun You <hujy652@protonmail.com>
This commit is contained in:
parent
255d999783
commit
6a68c2fef0
1 changed files with 2 additions and 1 deletions
|
|
@ -483,7 +483,8 @@ function generate(config) {
|
|||
append_vars(config, [ 'noscan' ]);
|
||||
|
||||
/* airtime */
|
||||
append_vars(config, [ 'airtime_mode' ]);
|
||||
if (config.airtime_mode)
|
||||
append_vars(config, [ 'airtime_mode' ]);
|
||||
|
||||
/* assoc/thresholds */
|
||||
append_vars(config, [ 'rssi_reject_assoc_rssi', 'rssi_ignore_probe_request', 'iface_max_num_sta', 'no_probe_resp_if_max_sta' ]);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue