hostapd: always strip "11" from hwmode value
SVN-Revision: 20363
This commit is contained in:
parent
4dd46dd8a4
commit
90c566f557
1 changed files with 2 additions and 2 deletions
|
@ -119,7 +119,7 @@ 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) hwmode=g;;
|
||||||
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"
|
||||||
|
@ -127,7 +127,7 @@ hostapd_setup_vif() {
|
||||||
ctrl_interface=/var/run/hostapd-$ifname
|
ctrl_interface=/var/run/hostapd-$ifname
|
||||||
driver=$driver
|
driver=$driver
|
||||||
interface=$ifname
|
interface=$ifname
|
||||||
${hwmode:+hw_mode=$hwmode}
|
${hwmode:+hw_mode=${hwmode#11}}
|
||||||
${channel:+channel=$channel}
|
${channel:+channel=$channel}
|
||||||
$hostapd_cfg
|
$hostapd_cfg
|
||||||
EOF
|
EOF
|
||||||
|
|
Loading…
Reference in a new issue