openwrt/package
Sultan Alsawaf 97213c7335 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>
(cherry picked from commit f338f76a66)
2022-08-21 15:54:22 +02:00
..
base-files base-files: add mtd_get_mac_encrypted_arcadyan function 2022-08-19 14:44:35 +02:00
boot ramips: add support for MTS WG430223 2022-08-16 15:58:50 +02:00
devel strace: Update to version 5.16 2022-02-01 21:25:02 +01:00
firmware layerscape: update PKG_HASH / PKG_MIRROR_HASH 2022-07-23 00:11:21 +02:00
kernel mac80211: parse the correct set of HE capabilities for AP mode 2022-08-21 15:54:22 +02:00
libs zlib: backport null dereference fix 2022-08-09 08:12:46 +02:00
network odhcp6c: update to git HEAD 2022-08-18 00:16:35 +02:00
system fstools: add uci fstab section to conffiles for package block-mount 2022-08-12 22:46:51 +02:00
utils uencrypt: add package to decrypt WG4хх223 config 2022-08-19 14:44:07 +02:00
Makefile build: fix opkg install step for large package selection 2021-05-12 11:13:53 +02:00