mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-12-25 03:01:09 +02:00
[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
This commit is contained in:
parent
f72958df29
commit
c8a61e1e0b
@ -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"
|
||||||
|
Loading…
Reference in New Issue
Block a user