diff options
| author | Zhi-Jun You | 2025-10-08 06:55:06 +0000 |
|---|---|---|
| committer | Felix Fietkau | 2025-10-13 08:56:39 +0000 |
| commit | 6a68c2fef037d13ad89398391b8d97cb6f921987 (patch) | |
| tree | 3983b71e851cc0d66385f7c8f5b45dcb04e4dffd | |
| parent | 255d999783656fdbb56867faa8eb4eac0b22c138 (diff) | |
| download | openwrt-6a68c2fef037d13ad89398391b8d97cb6f921987.tar.gz | |
wifi-scripts: ucode: fix airtime_mode with hostapd-mini
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>
| -rw-r--r-- | package/network/config/wifi-scripts/files-ucode/usr/share/ucode/wifi/hostapd.uc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/package/network/config/wifi-scripts/files-ucode/usr/share/ucode/wifi/hostapd.uc b/package/network/config/wifi-scripts/files-ucode/usr/share/ucode/wifi/hostapd.uc index 69c853115e..840b13294d 100644 --- a/package/network/config/wifi-scripts/files-ucode/usr/share/ucode/wifi/hostapd.uc +++ b/package/network/config/wifi-scripts/files-ucode/usr/share/ucode/wifi/hostapd.uc @@ -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' ]); |