mirror of https://github.com/hak5/openwrt.git
parent
6c07306d32
commit
38b256105d
|
@ -134,7 +134,8 @@ hostapd_setup_vif() {
|
||||||
config_get channel "$device" channel
|
config_get channel "$device" channel
|
||||||
config_get hwmode "$device" hwmode
|
config_get hwmode "$device" hwmode
|
||||||
case "$hwmode" in
|
case "$hwmode" in
|
||||||
*bg) hwmode=g;;
|
*bg|*gdt|*gst|*fh) hwmode=g;;
|
||||||
|
*adt|*ast) hwmode=a;;
|
||||||
esac
|
esac
|
||||||
[ "$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