From: Hauke Mehrtens Date: Thu, 9 Apr 2009 21:44:30 +0000 (+0000) Subject: hostapd only supports either b or g as hwmode configuration variable. If bg is set... X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=e2f8f72041757098c1986eceedd583e1191a6a2d;p=librecmc%2Flibrecmc.git 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 --- 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"