]> git.ipfire.org Git - people/stevee/network.git/commitdiff
hostapd: Enable 802.11d by default for all APs.
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 23 Aug 2013 12:54:16 +0000 (14:54 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 23 Aug 2013 12:54:16 +0000 (14:54 +0200)
functions.hostapd

index d481707a3761a1b89dd73b77b0c81eb2542a07c4..9e2e7f8baa4c1ddcbb456f518ecea0fba0ffa7fc 100644 (file)
@@ -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}"