forked from freifunk-franken/firmware
fff-wireless: Set htmode to VHT for 802.11ac capable radios
To make use of MCS 8 and 9 which have been introduced with 802.11ac, htmode has to be set to VHTxx. By checking if the radio supports it, the htmode is configured to the appropriate HT/VHT setting. Fixes: #130 Signed-off-by: Fabian Bläse <fabian@blaese.de> Reviewed-by: Christian Dresel <fff@chrisi01.de>
This commit is contained in:
parent
c39de8f7d5
commit
d718d0faa9
|
@ -1,7 +1,7 @@
|
||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=fff-wireless
|
PKG_NAME:=fff-wireless
|
||||||
PKG_RELEASE:=12
|
PKG_RELEASE:=13
|
||||||
|
|
||||||
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
|
||||||
|
|
||||||
|
|
|
@ -17,11 +17,15 @@ configWifiDevice() {
|
||||||
|
|
||||||
[ "$freq" = "2" ] && uci set "wireless.${radio}.legacy_rates=0"
|
[ "$freq" = "2" ] && uci set "wireless.${radio}.legacy_rates=0"
|
||||||
|
|
||||||
|
# detect 802.11ac capable radio and set htmode appropriately
|
||||||
|
local htmode="HT20"
|
||||||
|
iw phy "${radio}" info | grep -q 'VHT Capabilities' && htmode="VHT20"
|
||||||
|
|
||||||
# Comments
|
# Comments
|
||||||
# wXmesh: use 802.11s mesh as "default"
|
# wXmesh: use 802.11s mesh as "default"
|
||||||
|
|
||||||
uci batch <<-__EOF__
|
uci batch <<-__EOF__
|
||||||
set wireless.${radio}.htmode='HT20'
|
set wireless.${radio}.htmode='${htmode}'
|
||||||
set wireless.${radio}.country='DE'
|
set wireless.${radio}.country='DE'
|
||||||
set wireless.${radio}.disabled='0'
|
set wireless.${radio}.disabled='0'
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue