From: Michael Tremer Date: Sun, 16 Sep 2012 18:07:15 +0000 (+0000) Subject: wireless-ap: Add support for 802.11a and 802.11n APs. X-Git-Tag: 005~34 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=93d614f015cd949400009bc242602eedbac2fa4c;p=network.git wireless-ap: Add support for 802.11a and 802.11n APs. --- diff --git a/functions.wireless b/functions.wireless index 3ad0677c..22477a05 100644 --- a/functions.wireless +++ b/functions.wireless @@ -196,6 +196,16 @@ function hostapd_config_write() { ignore_broadcast_ssid="1" fi + local hw_mode ieee80211n="0" + if [ "${mode}" = "n" ]; then + if [ ${channel} -le 15 ]; then + hw_mode="g" + else + hw_mode="a" + fi + ieee80211n="1" + fi + cat <