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> |
||
|---|---|---|
| .. | ||
| config | ||
| ipv6 | ||
| services | ||
| utils | ||