projects
/
openwrt
/
staging
/
nbd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4dd46dd
)
hostapd: always strip "11" from hwmode value
author
Jo-Philipp Wich
<jow@openwrt.org>
Sun, 21 Mar 2010 22:35:58 +0000
(22:35 +0000)
committer
Jo-Philipp Wich
<jow@openwrt.org>
Sun, 21 Mar 2010 22:35:58 +0000
(22:35 +0000)
SVN-Revision: 20363
package/hostapd/files/hostapd.sh
patch
|
blob
|
history
diff --git
a/package/hostapd/files/hostapd.sh
b/package/hostapd/files/hostapd.sh
index b477cd7737b54ba974e44d5667faf8c672bcea89..c83c06df8654da399b2a117f4946ff38c337e7dd 100644
(file)
--- a/
package/hostapd/files/hostapd.sh
+++ b/
package/hostapd/files/hostapd.sh
@@
-119,7
+119,7
@@
hostapd_setup_vif() {
config_get channel "$device" channel
config_get hwmode "$device" hwmode
case "$hwmode" in
- bg) hwmode=g;;
+
*
bg) hwmode=g;;
esac
[ "$channel" = auto ] && channel=
[ -n "$channel" -a -z "$hwmode" ] && wifi_fixup_hwmode "$device"
@@
-127,7
+127,7
@@
hostapd_setup_vif() {
ctrl_interface=/var/run/hostapd-$ifname
driver=$driver
interface=$ifname
-${hwmode:+hw_mode=$
hwmode
}
+${hwmode:+hw_mode=$
{hwmode#11}
}
${channel:+channel=$channel}
$hostapd_cfg
EOF