[Bug 287625] net80211: kernel panic with 11ac support but no 11n
Date: Thu, 19 Jun 2025 01:23:54 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=287625
--- Comment #9 from commit-hook@FreeBSD.org ---
A commit in branch main references this bug:
URL:
https://cgit.FreeBSD.org/src/commit/?id=f51c794cbc80682931d47264e3c18329bae0a2c1
commit f51c794cbc80682931d47264e3c18329bae0a2c1
Author: Bjoern A. Zeeb <bz@FreeBSD.org>
AuthorDate: 2025-06-18 21:58:20 +0000
Commit: Bjoern A. Zeeb <bz@FreeBSD.org>
CommitDate: 2025-06-19 01:23:12 +0000
net80211: in ieee80211_sta_join() only do_ht if HT is avail
In ieee80211_sta_join() there are currently two ways to set
"do_ht": (1) after checking HT IEs are avail, and (2) after
checking VHT IEs are avail and we are not on 2GHz.
In the latter case no one checks that HT IEs are available and
when we hit ieee80211_ht_updateparams_final() htinfo may be NULL
and we panic.
Avoid this by only checking for VHT if do_ht was set.
No VHT without HT IEs.
While here switch do_ht to be a bool.
Sponsored by: The FreeBSD Foundation
MFC after: 3 days
PR: 287625
Fixes: 51172f62a753f
Reviewed by: adrian
Differential Revision: https://reviews.freebsd.org/D50923
sys/net80211/ieee80211_node.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
--
You are receiving this mail because:
You are on the CC list for the bug.