diff options
| author | Felix Fietkau <nbd@openwrt.org> | 2008-10-29 15:52:58 +0000 |
|---|---|---|
| committer | Felix Fietkau <nbd@openwrt.org> | 2008-10-29 15:52:58 +0000 |
| commit | a3dae311fd51f6c35d5355d2fc6c31e6cdb138e0 (patch) | |
| tree | 4d9af7bbe67abc153668290ebd288cfb08afdaa6 | |
| parent | 1d9daa849b10a649f48f5f8c70312d806e867ac6 (diff) | |
| download | upstream-a3dae311fd51f6c35d5355d2fc6c31e6cdb138e0.tar.gz upstream-a3dae311fd51f6c35d5355d2fc6c31e6cdb138e0.tar.bz2 upstream-a3dae311fd51f6c35d5355d2fc6c31e6cdb138e0.zip | |
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
| -rw-r--r-- | package/hostapd/files/hostapd.sh | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/package/hostapd/files/hostapd.sh b/package/hostapd/files/hostapd.sh index 7a67cec949c..1159c3b1564 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 |
