forked from freifunk-franken/firmware
fff-wireless: Use previous HT/VHT mode instead of detecting capabilities
Previously the HT/VHT mode was detected using the output of iw phy. This command erroneously used the $radio variable, which doesn't contain the phy name. Therefore it doesn't work like it is supposed to. As we don't completely configure the wifi-device sections, but only adjust some of OpenWRTs default values, the HT/VHT detection can easily be done by just checking if the previous mode did contain "VHT". Signed-off-by: Fabian Bläse <fabian@blaese.de> Reviewed-by: Christian Dresel <fff@chrisi01.de>
This commit is contained in:
parent
32740ed90c
commit
99bce95f80
|
@ -19,7 +19,7 @@ configWifiDevice() {
|
||||||
|
|
||||||
# detect 802.11ac capable radio and set htmode appropriately
|
# detect 802.11ac capable radio and set htmode appropriately
|
||||||
local htmode="HT20"
|
local htmode="HT20"
|
||||||
iw phy "${radio}" info | grep -q 'VHT Capabilities' && htmode="VHT20"
|
uci -q get wireless.${radio}.htmode | grep VHT && htmode="VHT20"
|
||||||
|
|
||||||
# Comments
|
# Comments
|
||||||
# wXmesh: use 802.11s mesh as "default"
|
# wXmesh: use 802.11s mesh as "default"
|
||||||
|
|
Loading…
Reference in New Issue