diff options
author | Felix Fietkau <nbd@openwrt.org> | 2014-05-03 21:14:48 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2014-05-03 21:14:48 +0000 |
commit | 0216e64b929da8bea9d5d152e464cab7e3b848b6 (patch) | |
tree | fe30802004e22dcfc865656485f0d39fda732e5c /package/network | |
parent | 8e309ccf9df037c20605fd6738dbe06161ae5aeb (diff) | |
download | master-187ad058-0216e64b929da8bea9d5d152e464cab7e3b848b6.tar.gz master-187ad058-0216e64b929da8bea9d5d152e464cab7e3b848b6.tar.bz2 master-187ad058-0216e64b929da8bea9d5d152e464cab7e3b848b6.zip |
hostapd: add an option for 802.11h (enabled by default)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40690 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/network')
-rw-r--r-- | package/network/services/hostapd/files/netifd.sh | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/package/network/services/hostapd/files/netifd.sh b/package/network/services/hostapd/files/netifd.sh index 1372b5ade7..ab31361ebb 100644 --- a/package/network/services/hostapd/files/netifd.sh +++ b/package/network/services/hostapd/files/netifd.sh @@ -51,7 +51,7 @@ hostapd_common_add_device_config() { config_add_array basic_rate config_add_string country - config_add_boolean country_ie + config_add_boolean country_ie doth hostapd_add_log_config } @@ -63,14 +63,18 @@ hostapd_prepare_device_config() { local base="${config%%.conf}" local base_cfg= - json_get_vars country country_ie beacon_int + json_get_vars country country_ie beacon_int doth hostapd_set_log_options base_cfg set_default country_ie 1 + set_default doth 1 + [ -n "$country" ] && { append base_cfg "country_code=$country" "$N" + [ "$country_ie" -gt 0 ] && append base_cfg "ieee80211d=1" "$N" + [ "$hwmode" = "a" -a "$doth" -gt 0 ] && append base_cfg "ieee80211h=1" "$N" } [ -n "$hwmode" ] && append base_cfg "hw_mode=$hwmode" "$N" |