summaryrefslogtreecommitdiff
path: root/package/hostapd/files
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@hauke-m.de>2009-04-09 21:44:30 +0000
committerHauke Mehrtens <hauke@hauke-m.de>2009-04-09 21:44:30 +0000
commite2f8f72041757098c1986eceedd583e1191a6a2d (patch)
treefde67ff230d338c1cce9580082fd742717ba54ed /package/hostapd/files
parent4e49486b3cc6a4bb92c8762f0999c827393c00fb (diff)
downloadmtk-20170518-e2f8f72041757098c1986eceedd583e1191a6a2d.zip
mtk-20170518-e2f8f72041757098c1986eceedd583e1191a6a2d.tar.gz
mtk-20170518-e2f8f72041757098c1986eceedd583e1191a6a2d.tar.bz2
hostapd only supports either b or g as hwmode configuration variable. If bg is set the scripts transfers it now to g mode.
SVN-Revision: 15182
Diffstat (limited to 'package/hostapd/files')
-rw-r--r--package/hostapd/files/hostapd.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/package/hostapd/files/hostapd.sh b/package/hostapd/files/hostapd.sh
index 0008a22..a078838 100644
--- a/package/hostapd/files/hostapd.sh
+++ b/package/hostapd/files/hostapd.sh
@@ -76,6 +76,9 @@ hostapd_setup_vif() {
config_get device "$vif" device
config_get channel "$device" channel
config_get hwmode "$device" hwmode
+ case "$hwmode" in
+ bg) hwmode=g;;
+ esac
config_get country "$device" country
[ "$channel" = auto ] && channel=
[ -n "$channel" -a -z "$hwmode" ] && wifi_fixup_hwmode "$device"