hostapd: add acs_exclude support

Fixes: WIFI-6933
Signed-off-by: John Crispin <john@phrozen.org>
This commit is contained in:
John Crispin
2022-02-14 14:09:49 +01:00
parent f8a2de68aa
commit 187326b7ce

View File

@@ -0,0 +1,50 @@
From 2053186ee8a2e5d77338f040df6a4261b3bceac1 Mon Sep 17 00:00:00 2001
From: John Crispin <john@phrozen.org>
Date: Sat, 12 Feb 2022 16:43:15 +0100
Subject: [PATCH 8/8] hostapd: add acs_exclude_dfs support
Signed-off-by: John Crispin <john@phrozen.org>
---
package/network/services/hostapd/files/hostapd.sh | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/package/network/services/hostapd/files/hostapd.sh b/package/network/services/hostapd/files/hostapd.sh
index c8e1eca88b..244e405b59 100644
--- a/package/network/services/hostapd/files/hostapd.sh
+++ b/package/network/services/hostapd/files/hostapd.sh
@@ -119,6 +119,7 @@ hostapd_common_add_device_config() {
config_add_int maxassoc
config_add_string acs_chan_bias
+ config_add_boolean acs_exclude_dfs
config_add_array hostapd_options
config_add_int airtime_mode
@@ -137,7 +138,7 @@ hostapd_prepare_device_config() {
json_get_vars country country3 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 beacon_rate rssi_reject_assoc_rssi rssi_ignore_probe_request maxassoc \
- multiple_bssid he_co_locate rnr_beacon ema
+ multiple_bssid he_co_locate rnr_beacon ema acs_exclude_dfs
hostapd_set_log_options base_cfg
@@ -151,6 +152,7 @@ hostapd_prepare_device_config() {
set_default rnr_beacon 0
set_default multiple_bssid 0
set_default ema 0
+ set_default acs_exclude_dfs 0
[ -n "$country" ] && {
append base_cfg "country_code=$country" "$N"
@@ -247,6 +249,7 @@ hostapd_prepare_device_config() {
[ "$he_co_locate" -gt 0 ] && append base_cfg "he_co_locate=$he_co_locate" "$N"
[ "$multiple_bssid" -gt 0 ] && append base_cfg "multiple_bssid=$multiple_bssid" "$N"
[ "$ema" -gt 0 ] && append base_cfg "ema=$ema" "$N"
+ [ "$acs_exclude_dfs" -gt 0 ] && append base_cfg "acs_exclude_dfs=$acs_exclude_dfs" "$N"
json_get_values opts hostapd_options
for val in $opts; do
--
2.25.1