From: Michael Tremer Date: Fri, 23 Aug 2013 12:54:16 +0000 (+0200) Subject: hostapd: Enable 802.11d by default for all APs. X-Git-Tag: 007~120 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4ed541a92011de3db9ce59fdc431cfaa31eaf9d5;p=network.git hostapd: Enable 802.11d by default for all APs. --- diff --git a/functions.hostapd b/functions.hostapd index d481707a..9e2e7f8b 100644 --- a/functions.hostapd +++ b/functions.hostapd @@ -35,6 +35,7 @@ function hostapd_config_write() { local channel local country_code local encryption + local ieee80211d="1" local key local mode local ssid @@ -59,6 +60,14 @@ function 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}) ;; @@ -124,6 +133,7 @@ function hostapd_config_write() { 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}"