mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-20 22:23:27 +00:00
97213c7335
It is common for 802.11ax NICs to support more than just AP mode, which
results in there being a distinct set of HE capabilities for each mode. As
(bad) luck would have it, iw prints out info for each HE mode in sequential
order according to `enum nl80211_iftype`, and AP mode isn't always first.
As a result, the wrong set of HE capabilities can be parsed if an AP NIC
supports station (managed) mode or any other mode preceding AP mode, since
only the first set of HE capabilities printed by iw is parsed from awk's
output.
This has a noticeable impact on beamforming for example, since managed mode
usually doesn't have beamformer capabilities enabled, while AP mode does.
Hostapd won't be set up with the configs to enable beamformer capabilities
in this scenario, causing hostapd to disable beamforming to HE stations
even when it's supported by the AP.
Always parse the correct set of HE capabilities for AP mode to fix this.
This is achieved by trimming all of iw's output prior to the AP mode
capabilities, which ensures that the first set of HE capabilities are
always for AP mode.
Signed-off-by: Sultan Alsawaf <sultan@kerneltoast.com>
(cherry picked from commit
|
||
---|---|---|
.. | ||
acx-mac80211 | ||
ath10k-ct | ||
bcm27xx-gpu-fw | ||
bcm63xx-cfe | ||
bpf-headers | ||
broadcom-wl | ||
button-hotplug | ||
cryptodev-linux | ||
dtc/patches | ||
gpio-button-hotplug | ||
gpio-nct5104d | ||
hwmon-gsc | ||
ksmbd | ||
lantiq | ||
linux | ||
mac80211 | ||
mt76 | ||
mt7621-qtn-rgmii | ||
mwlwifi | ||
nat46 | ||
rtc-rv5c386a | ||
rtl8812au-ct | ||
trelay |