projects
/
openwrt
/
svn-archive
/
archive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
caf1c64
)
parse the a/g mode setting in /etc/config/wireless when setting up hostapd (instead...
author
Felix Fietkau
<nbd@openwrt.org>
Tue, 23 Sep 2008 18:18:21 +0000
(18:18 +0000)
committer
Felix Fietkau
<nbd@openwrt.org>
Tue, 23 Sep 2008 18:18:21 +0000
(18:18 +0000)
SVN-Revision: 12673
package/hostapd/files/hostapd.sh
patch
|
blob
|
history
diff --git
a/package/hostapd/files/hostapd.sh
b/package/hostapd/files/hostapd.sh
index 49b30cfd57c27b92505d80bbc97837bcb2b9f2d8..7a67cec949c03f72ac0cae27b7c57a2a6088f85a 100644
(file)
--- a/
package/hostapd/files/hostapd.sh
+++ b/
package/hostapd/files/hostapd.sh
@@
-74,10
+74,17
@@
hostapd_setup_vif() {
config_get ssid "$vif" ssid
config_get device "$vif" device
config_get channel "$device" channel
+ config_get agmode "$device" agmode
+ case "$agmode" in
+ 11a) agmode=a;;
+ 11b) agmode=b;;
+ 11g) agmode=g;;
+ *) agmode=;;
+ esac
cat > /var/run/hostapd-$ifname.conf <<EOF
driver=$driver
interface=$ifname
-hw_mode=
g
+hw_mode=
${agmode:-g}
channel=$channel
${bridge:+bridge=$bridge}
ssid=$ssid