[LEDE-DEV] [PATCH] ACS channel list support
Yury Shvedov
yshvedov at wimarksystems.com
Mon Jul 31 04:20:23 PDT 2017
From: Vadim Balakhanov <vbalakhanov at wimarksystems.com>
This patch implements channel list support in UCI. This functionality
already supported in hostapd.
Signed-off-by: Vadim Balakhanov <vbalakhanov at wimarksystems.com>
---
package/network/services/hostapd/files/hostapd.sh | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/package/network/services/hostapd/files/hostapd.sh b/package/network/services/hostapd/files/hostapd.sh
index 8e3f88a115..db22ef5f3b 100644
--- a/package/network/services/hostapd/files/hostapd.sh
+++ b/package/network/services/hostapd/files/hostapd.sh
@@ -67,6 +67,7 @@ hostapd_common_add_device_config() {
config_add_boolean legacy_rates
config_add_string acs_chan_bias
+ config_add_string chanlist
hostapd_add_log_config
}
@@ -78,7 +79,7 @@ hostapd_prepare_device_config() {
local base="${config%%.conf}"
local base_cfg=
- json_get_vars country country_ie beacon_int:100 doth require_mode legacy_rates acs_chan_bias
+ json_get_vars country country_ie beacon_int:100 doth require_mode legacy_rates acs_chan_bias chanlist
hostapd_set_log_options base_cfg
@@ -96,6 +97,7 @@ hostapd_prepare_device_config() {
}
[ -n "$acs_chan_bias" ] && append base_cfg "acs_chan_bias=$acs_chan_bias" "$N"
+ [ -n "$chanlist" ] && append base_cfg "chanlist=$chanlist" "$N"
local brlist= br
json_get_values basic_rate_list basic_rate
--
2.13.1
More information about the Lede-dev
mailing list