diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2010-03-21 22:35:58 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2010-03-21 22:35:58 +0000 |
commit | 90c566f557cc8541fe05064fe729cab1ee91a31b (patch) | |
tree | ac3faa117fbdb29ed9c784b56f16f831b4e3c72f /package/hostapd/files | |
parent | 4dd46dd8a46cd4cdb22da48b0d390227cbc8058b (diff) | |
download | mtk-20170518-90c566f557cc8541fe05064fe729cab1ee91a31b.zip mtk-20170518-90c566f557cc8541fe05064fe729cab1ee91a31b.tar.gz mtk-20170518-90c566f557cc8541fe05064fe729cab1ee91a31b.tar.bz2 |
hostapd: always strip "11" from hwmode value
SVN-Revision: 20363
Diffstat (limited to 'package/hostapd/files')
-rw-r--r-- | package/hostapd/files/hostapd.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/package/hostapd/files/hostapd.sh b/package/hostapd/files/hostapd.sh index b477cd7..c83c06d 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 |