mirror of https://github.com/hak5/openwrt-owl.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: 15182owl
parent
4e49486b3c
commit
e2f8f72041
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue