lede/package/kernel
Sultan Alsawaf 944cb3db09 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-23 22:54:48 +08:00
..
acx-mac80211 x64: fix grub2 booting 2021-06-15 17:58:07 +08:00
ath10k-ct ath10k-ct/mt76: bump to latest 5.15 git HEAD 2022-03-29 15:09:55 +08:00
bcm27xx-gpu-fw bcm27xx: sync upstream source code (#6435) 2021-02-25 15:44:46 +08:00
bcm63xx-cfe add kernel 5.10 support and sync with upstream 2021-06-14 18:30:08 +08:00
bpf-headers toolchain: add llvm-bpf 2022-04-07 01:01:05 +08:00
broadcom-wl x64: fix grub2 booting 2021-06-15 17:58:07 +08:00
button-hotplug x64: fix grub2 booting 2021-06-15 17:58:07 +08:00
cryptodev-linux cryptodev-linux: update to 1.12 2021-09-30 16:18:17 +08:00
dtc/patches Merge branch 'master' of https://github.com/lede-project/source 2018-01-09 14:38:15 +08:00
gpio-button-hotplug x64: fix grub2 booting 2021-06-15 17:58:07 +08:00
gpio-nct5104d gpio-nct5104d: simplified makefile 2022-06-15 22:50:05 +08:00
gpio-nxp-74hc153 x64: fix grub2 booting 2021-06-15 17:58:07 +08:00
hwmon-gsc kernel: update dependencies after 'imx6' -> 'imx' rename 2022-01-06 09:57:20 +08:00
ksmbd ksmbd: fixes build on kernel 5.15.52+ 2022-07-05 15:19:00 +08:00
lantiq x64: fix grub2 booting 2021-06-15 17:58:07 +08:00
linux kernel: modules: cleanup 5.18 (#9946) 2022-08-16 10:54:57 +08:00
mac80211 mac80211: parse the correct set of HE capabilities for AP mode 2022-08-23 22:54:48 +08:00
mt76 mt76: mt7921e: fix crash in chip reset fail on rockchip 5.19 kernel 2022-08-17 23:45:26 +08:00
mt7621-qtn-rgmii x64: fix grub2 booting 2021-06-15 17:58:07 +08:00
mtk-eip93 ramips: add Mediatek EIP93 Crypto driver for MT7621 2022-07-08 11:07:52 +08:00
mwlwifi x64: fix grub2 booting 2021-06-15 17:58:07 +08:00
nat46 add kernel 5.10 support and sync with upstream 2021-06-14 18:30:08 +08:00
om-watchdog x64: fix grub2 booting 2021-06-15 17:58:07 +08:00
rtc-rv5c386a Sync to snapshot kernel 5.4 version 2020-07-02 23:30:56 +08:00
rtl8812au-ct rtl8812au-ct: update driver to be ready for 5.15 2022-04-25 16:38:16 +08:00
trelay x64: fix grub2 booting 2021-06-15 17:58:07 +08:00
xr-usb-serial add support for XR21V141x usb serial chip (#9514) 2022-06-12 03:29:12 +08:00