From 9161a7023556a0db76e3d56fde12bc8b3c30a3e1 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Wed, 29 Oct 2008 15:52:58 +0000 Subject: fix hostapd a/g mode if only the channel is configured in the config SVN-Revision: 13076 --- package/hostapd/files/hostapd.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'package/hostapd/files/hostapd.sh') diff --git a/package/hostapd/files/hostapd.sh b/package/hostapd/files/hostapd.sh index 7a67cec949..1159c3b156 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 <