projects
/
15.05
/
openwrt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1d9daa8
)
fix hostapd a/g mode if only the channel is configured in the config
author
Felix Fietkau
<nbd@openwrt.org>
Wed, 29 Oct 2008 15:52:58 +0000
(15:52 +0000)
committer
Felix Fietkau
<nbd@openwrt.org>
Wed, 29 Oct 2008 15:52:58 +0000
(15:52 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@13076
3c298f89
-4303-0410-b956-
a3cf2f4a3e73
package/hostapd/files/hostapd.sh
patch
|
blob
|
history
diff --git
a/package/hostapd/files/hostapd.sh
b/package/hostapd/files/hostapd.sh
index
7a67cec
..
1159c3b
100644
(file)
--- 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