diff options
author | Hauke Mehrtens <hauke@openwrt.org> | 2009-04-09 21:44:30 +0000 |
---|---|---|
committer | Hauke Mehrtens <hauke@openwrt.org> | 2009-04-09 21:44:30 +0000 |
commit | c73ea5d9b2bf12985d33dc7cf4ab9a3f1c353a22 (patch) | |
tree | fb49167cabe3297d2dae8ed4b3b87a39b6f8d56b | |
parent | fff08c0fc174caf8d3b77651d2f21c5c5e7ad033 (diff) | |
download | upstream-c73ea5d9b2bf12985d33dc7cf4ab9a3f1c353a22.tar.gz upstream-c73ea5d9b2bf12985d33dc7cf4ab9a3f1c353a22.tar.bz2 upstream-c73ea5d9b2bf12985d33dc7cf4ab9a3f1c353a22.zip |
[hostapd] hostapd only supports either b or g as hwmode configuration variable.
If bg is set the scripts transfers it now to g mode.
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@15182 3c298f89-4303-0410-b956-a3cf2f4a3e73
-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 0008a22fb3..a07883831e 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" |