diff options
author | Hauke Mehrtens <hauke@hauke-m.de> | 2009-04-09 21:44:30 +0000 |
---|---|---|
committer | Hauke Mehrtens <hauke@hauke-m.de> | 2009-04-09 21:44:30 +0000 |
commit | e2f8f72041757098c1986eceedd583e1191a6a2d (patch) | |
tree | fde67ff230d338c1cce9580082fd742717ba54ed /package/hostapd/files | |
parent | 4e49486b3cc6a4bb92c8762f0999c827393c00fb (diff) | |
download | mtk-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.sh | 3 |
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" |