From: Michael Tremer Date: Wed, 19 Sep 2018 15:01:34 +0000 (+0100) Subject: hostapd: Always enable 802.11d X-Git-Tag: 010~63 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b6ec3dd6413122208013d82321687a77a2aec083;p=network.git hostapd: Always enable 802.11d Signed-off-by: Michael Tremer --- diff --git a/src/functions/functions.hostapd b/src/functions/functions.hostapd index c6608e24..a3c34920 100644 --- a/src/functions/functions.hostapd +++ b/src/functions/functions.hostapd @@ -35,7 +35,6 @@ hostapd_config_write() { local channel local country_code="$(wireless_get_reg_domain)" local encryption - local ieee80211d="1" local key local mode local ssid @@ -52,14 +51,6 @@ hostapd_config_write() { --encryption=*) encryption=$(cli_get_val "${1}") ;; - --ieee80211d=*) - local val="$(cli_get_val "${1}")" - if enabled val; then - ieee80211d="1" - else - ieee80211d="0" - fi - ;; --key=*) key=$(cli_get_val "${1}") ;; @@ -140,11 +131,15 @@ hostapd_config_write() { fi ( + print "# Default settings" + + # Advertise country code and maximum transmission power + print "ieee80211d=1" + print "# Wireless configuration" print "channel=${channel}" print "country_code=${country_code}" print "hw_mode=${hw_mode}" - print "ieee80211d=${ieee80211d}" print "ieee80211n=${ieee80211n}" print "ignore_broadcast_ssid=${ignore_broadcast_ssid}"