hostapd: fix null reference errors for 6GHz-only radios (QCN9074) - #1
Open
dastarothx wants to merge 1 commit into
Open
hostapd: fix null reference errors for 6GHz-only radios (QCN9074)#1dastarothx wants to merge 1 commit into
dastarothx wants to merge 1 commit into
Conversation
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>
dastarothx
force-pushed
the
fix-6ghz-qcn9074
branch
from
May 23, 2026 18:43
b2c8a09 to
2452e22
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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