]> git.ipfire.org Git - people/stevee/network.git/commitdiff
hostapd: Enable WMM by default.
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 23 Aug 2013 15:38:33 +0000 (17:38 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 23 Aug 2013 15:38:33 +0000 (17:38 +0200)
functions.hostapd

index f1a65769e5d3b2ddeaf21c743d28c31648d810c9..1d10b978fff241cd9c1508bef31fc1f143d80a94 100644 (file)
@@ -39,6 +39,7 @@ function hostapd_config_write() {
        local key
        local mode
        local ssid
+       local wmm="1"
 
        while [ $# -gt 0 ]; do
                case "${1}" in
@@ -71,6 +72,14 @@ function hostapd_config_write() {
                        --ssid=*)
                                ssid=$(cli_get_val ${1})
                                ;;
+                       --wmm=*)
+                               local val="$(cli_get_val "${1}")"
+                               if enabled val; then
+                                       wmm="1"
+                               else
+                                       wmm="0"
+                               fi
+                               ;;
                        *)
                                warning_log "Ignoring unknown argument '${1}'."
                                ;;                      
@@ -143,6 +152,9 @@ function hostapd_config_write() {
                        print "ssid=${ssid}"
                fi
 
+               # WMM
+               print "wmm_enabled=${wmm}"
+
                print
        ) >> ${file}