aboutsummaryrefslogtreecommitdiffstats
path: root/package/network
diff options
context:
space:
mode:
authorKevin Darbyshire-Bryant <kevin@darbyshire-bryant.me.uk>2017-06-15 12:48:56 +0100
committerHauke Mehrtens <hauke@hauke-m.de>2017-06-24 13:11:19 +0200
commit4ed40be3e32643560874688d34b6fc69e6c4d20d (patch)
treeda6581201550c9086c5c9a55f8240ee8f0c5eeb5 /package/network
parentde6ff1512955953e56735896c044c7aac97e14d9 (diff)
downloadupstream-4ed40be3e32643560874688d34b6fc69e6c4d20d.tar.gz
upstream-4ed40be3e32643560874688d34b6fc69e6c4d20d.tar.bz2
upstream-4ed40be3e32643560874688d34b6fc69e6c4d20d.zip
hostapd: add support for acs_chan_bias option
During auto channel selection we may wish to prefer certain channels over others. e.g. we can just squeeze 4 channels into europe so '1:0.8 5:0.8 9:0.8 13:0.8' does that. Signed-off-by: Kevin Darbyshire-Bryant <kevin@darbyshire-bryant.me.uk>
Diffstat (limited to 'package/network')
-rw-r--r--package/network/services/hostapd/Makefile2
-rw-r--r--package/network/services/hostapd/files/hostapd.sh6
2 files changed, 6 insertions, 2 deletions
diff --git a/package/network/services/hostapd/Makefile b/package/network/services/hostapd/Makefile
index b7cc6b9c34..8a1f083217 100644
--- a/package/network/services/hostapd/Makefile
+++ b/package/network/services/hostapd/Makefile
@@ -7,7 +7,7 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=hostapd
-PKG_RELEASE:=3
+PKG_RELEASE:=4
PKG_SOURCE_URL:=http://w1.fi/hostap.git
PKG_SOURCE_PROTO:=git
diff --git a/package/network/services/hostapd/files/hostapd.sh b/package/network/services/hostapd/files/hostapd.sh
index 86e9a32e5b..2c015f9c4b 100644
--- a/package/network/services/hostapd/files/hostapd.sh
+++ b/package/network/services/hostapd/files/hostapd.sh
@@ -66,6 +66,8 @@ hostapd_common_add_device_config() {
config_add_string require_mode
config_add_boolean legacy_rates
+ config_add_string acs_chan_bias
+
hostapd_add_log_config
}
@@ -76,7 +78,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
+ json_get_vars country country_ie beacon_int:100 doth require_mode legacy_rates acs_chan_bias
hostapd_set_log_options base_cfg
@@ -93,6 +95,8 @@ hostapd_prepare_device_config() {
[ "$hwmode" = "a" -a "$doth" -gt 0 ] && append base_cfg "ieee80211h=1" "$N"
}
+ [ -n "$acs_chan_bias" ] && append base_cfg "acs_chan_bias=$acs_chan_bias" "$N"
+
local brlist= br
json_get_values basic_rate_list basic_rate
local rlist= r