mirror of
https://github.com/openwrt/openwrt.git
synced 2026-06-17 17:01:44 +04:00
903310097b
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> Link: https://github.com/openwrt/openwrt/pull/23496 Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>