summaryrefslogtreecommitdiffstats
path: root/package/hostapd/files/hostapd.sh
diff options
context:
space:
mode:
Diffstat (limited to 'package/hostapd/files/hostapd.sh')
-rw-r--r--package/hostapd/files/hostapd.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/package/hostapd/files/hostapd.sh b/package/hostapd/files/hostapd.sh
index 7a67cec94..1159c3b15 100644
--- a/package/hostapd/files/hostapd.sh
+++ b/package/hostapd/files/hostapd.sh
@@ -79,7 +79,10 @@ hostapd_setup_vif() {
11a) agmode=a;;
11b) agmode=b;;
11g) agmode=g;;
- *) agmode=;;
+ *)
+ agmode=
+ [ "$channel" -gt 14 ] && agmode=a
+ ;;
esac
cat > /var/run/hostapd-$ifname.conf <<EOF
driver=$driver