From 93d614f015cd949400009bc242602eedbac2fa4c Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Sun, 16 Sep 2012 18:07:15 +0000 Subject: [PATCH] wireless-ap: Add support for 802.11a and 802.11n APs. --- functions.wireless | 13 ++++++++++++- hooks/ports/wireless-ap | 2 +- 2 files changed, 13 insertions(+), 2 deletions(-) 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 <