Skip to content

hostapd: fix null reference errors for 6GHz-only radios (QCN9074) - #1

Open
dastarothx wants to merge 1 commit into
openwrt-25.12from
fix-6ghz-qcn9074
Open

hostapd: fix null reference errors for 6GHz-only radios (QCN9074)#1
dastarothx wants to merge 1 commit into
openwrt-25.12from
fix-6ghz-qcn9074

Conversation

@dastarothx

Copy link
Copy Markdown
Owner

Fix three null reference errors in device_capabilities() and
device_htmode_append() that prevent 6GHz-only PCIe radios (QCN9074)
from initializing on devices like the Linksys MX8500.

Tested on: Linksys MX8500 (qualcommax/ipq807x), OpenWrt 25.12.4,
QCN9074 6GHz radio, HE160 @ channel 33 (6115 MHz).

Fixes openwrt#23488

Fix null reference errors in device_htmode_append() that prevent
6GHz-only PCIe radios (QCN9074/ath11k_pci) from initializing.

he_phy_cap and he_mac_cap remain null when capability bytes are
unavailable, causing null dereferences:

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

Fix: guard with ?? [] so bitwise checks conservatively disable
beamformer features rather than crashing.

Fixes openwrt#23488

Signed-off-by: dastarothx <darkastalier@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant