aboutsummaryrefslogtreecommitdiffstats
path: root/package/hostapd/files
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2010-03-21 22:35:58 +0000
committerJo-Philipp Wich <jow@openwrt.org>2010-03-21 22:35:58 +0000
commitc456468ee357cc13c7489c8238c92146b1234684 (patch)
tree1e5613996ebe76622b5ff5992fcc4104adebece5 /package/hostapd/files
parent2ddaf8e174876f1d5ec4142edb11b9bd5e1c1d04 (diff)
downloadupstream-c456468ee357cc13c7489c8238c92146b1234684.tar.gz
upstream-c456468ee357cc13c7489c8238c92146b1234684.tar.bz2
upstream-c456468ee357cc13c7489c8238c92146b1234684.zip
[package] hostapd: always strip "11" from hwmode value
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20363 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/hostapd/files')
-rw-r--r--package/hostapd/files/hostapd.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/package/hostapd/files/hostapd.sh b/package/hostapd/files/hostapd.sh
index b477cd7737..c83c06df86 100644
--- 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