1
1
openwrt/package/network
dastarothx 54cced5b2f
wifi-scripts: ucode: fix null dereference for 6GHz-only radios
he_phy_cap and he_mac_cap in phy_capabilities are only populated inside
the iftype_data loop. On 6GHz-only radios (e.g. QCN9074/ath11k_pci),
when capability bytes are unavailable they remain null, causing null
dereferences in device_htmode_append():

  Reference error: left-hand side expression is null
  if (!(he_phy_cap[3] & 0x80))

Initialise both to [] before the loop and guard the consumer side with
?? [] so bitwise checks conservatively disable beamformer/beamformee/twt
features rather than crashing.

Link: https://github.com/openwrt/openwrt/issues/23488
Signed-off-by: dastarothx <darkastalier@gmail.com>
(cherry picked from commit feca0b4507b9175b95a59701462d550eb0b855c0)
Link: https://github.com/openwrt/openwrt/pull/23503
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2026-05-24 13:12:19 +02:00
..
config wifi-scripts: ucode: fix null dereference for 6GHz-only radios 2026-05-24 13:12:19 +02:00
ipv6 6rd: add CPPFLAGS 2026-02-17 22:30:21 +01:00
services dnsmasq: apply six CVE-fix upstream patches to 2.91 2026-05-13 01:54:08 +02:00
utils xdp-tools: fix musl build issues 2026-04-20 16:43:23 +02:00