[hostapd] hostapd only supports either b or g as hwmode configuration variable.
authorhauke <hauke@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Thu, 9 Apr 2009 21:44:30 +0000 (21:44 +0000)
committerhauke <hauke@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Thu, 9 Apr 2009 21:44:30 +0000 (21:44 +0000)
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

package/hostapd/files/hostapd.sh

index 0008a22..a078838 100644 (file)
@@ -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"
This page took 0.035664 seconds and 4 git commands to generate.