浏览代码

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
Hauke Mehrtens 16 年之前
父节点
当前提交
e2f8f72041
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      package/hostapd/files/hostapd.sh

+ 3 - 0
package/hostapd/files/hostapd.sh

@@ -76,6 +76,9 @@ hostapd_setup_vif() {
 	config_get device "$vif" device
 	config_get device "$vif" device
 	config_get channel "$device" channel
 	config_get channel "$device" channel
 	config_get hwmode "$device" hwmode
 	config_get hwmode "$device" hwmode
+	case "$hwmode" in
+		bg) hwmode=g;;
+	esac
 	config_get country "$device" country
 	config_get country "$device" country
 	[ "$channel" = auto ] && channel=
 	[ "$channel" = auto ] && channel=
 	[ -n "$channel" -a -z "$hwmode" ] && wifi_fixup_hwmode "$device"
 	[ -n "$channel" -a -z "$hwmode" ] && wifi_fixup_hwmode "$device"