openwrt/package/kernel/mac80211
Sultan Alsawaf f338f76a66 mac80211: parse the correct set of HE capabilities for AP mode
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>
2022-08-20 12:33:50 +02:00
..
files mac80211: parse the correct set of HE capabilities for AP mode 2022-08-20 12:33:50 +02:00
patches mac80211: backport upstream fix for unitialized lock usage 2022-08-08 15:37:34 +02:00
scripts mac80211: replace backticks by $(...) 2020-05-13 19:01:23 +02:00
ath.mk ath10k: enable encapsulation offload by default 2022-06-27 21:33:16 +02:00
broadcom.mk mac80211: enable CONFIG_BRCMFMAC_SDIO for imx/cortexa7 2022-07-11 14:18:40 +02:00
intel.mk mac80211: Add DRIVER_11AX_SUPPORT dependency to mac80211-hwsim and iwlwifi 2022-07-03 20:48:44 +02:00
Makefile base-files: wifi: add random MAC support for wifi-iface 2022-08-11 12:56:15 +02:00
marvell.mk kernel: Remove support for kernel 3.18 2019-05-03 22:41:38 +02:00
ralink.mk treewide: nuke DRIVER_11W_SUPPORT 2020-12-23 16:36:08 +01:00
realtek.mk mac80211: add debug compile option for rtw88 devices 2022-02-20 14:26:40 +01:00