summaryrefslogtreecommitdiff
path: root/package/hostapd/files
diff options
context:
space:
mode:
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2008-10-29 15:52:58 +0000
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2008-10-29 15:52:58 +0000
commitdc7f25c42c6aaf6fbd29f7b2971244d3ed4baa26 (patch)
tree4d9af7bbe67abc153668290ebd288cfb08afdaa6 /package/hostapd/files
parent373de828e2c74da914068b37cd2fd599536ae46d (diff)
fix hostapd a/g mode if only the channel is configured in the config
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@13076 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/hostapd/files')
-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 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 <<EOF
driver=$driver