opnsense-src/sys/net80211
Adrian Chadd 33e8fc370c net80211: don't dereference a NULL HTINFO IE if it's presented
ieee80211_vht_get_vhtflags() is checking the htinfo IE for the
20/40MHz flag as part of deciding valid channel widths.

However, in the hostapd path, the ASSOC_REQ/REASSOC_REQ path
will parse the IEs, do some HT/VHT setup, then call
ieee80211_ht_updatehtcap_final().  In a HT ASSOC/REASSOC request
there won't be a HTINFO IE, however ieee80211_vht_get_vhtflags()
still checks for it, leading to a panic.

Instead, treat it as if we don't yet know if it's HT40 or not.
I'm not sure if we should do that or have it just do
_RETURN_CHAN_BITS(0).

Differential Revision:	https://reviews.freebsd.org/D50794
2025-07-16 08:12:11 -07:00
..
_ieee80211.h net80211; LinuxKPI 802.11: introduce IEEE80211_RX_F_ICV_STRIP 2025-04-22 20:03:30 +00:00
ieee80211.c machine/stdarg.h -> sys/stdarg.h 2025-06-11 17:39:02 +01:00
ieee80211.h net80211: LinuxKPI: migrate HE defines to net80211, put correct values 2025-06-09 21:44:26 +00:00
ieee80211_acl.c
ieee80211_action.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
ieee80211_action.h
ieee80211_adhoc.c net80211: remove if_private.h from code that doesn't require it 2025-06-03 20:35:15 -07:00
ieee80211_adhoc.h
ieee80211_ageq.c
ieee80211_ageq.h
ieee80211_alq.c net80211: migrate direct printf() to net80211_printf() 2025-06-03 20:34:35 -07:00
ieee80211_alq.h
ieee80211_amrr.c net80211: migrate if_printf() -> net80211_vap_printf() 2025-06-03 20:34:12 -07:00
ieee80211_amrr.h net80211: add VHT MCS in AMRR rate control 2025-02-26 11:31:24 -08:00
ieee80211_crypto.c net80211: migrate direct printf() to net80211_printf() 2025-06-03 20:34:35 -07:00
ieee80211_crypto.h net80211: refactor out the AAD init code shared between GCMP and CCMP 2025-04-07 18:35:21 -07:00
ieee80211_crypto_ccmp.c net80211: refactor out the AAD init code shared between GCMP and CCMP 2025-04-07 18:35:21 -07:00
ieee80211_crypto_gcm.c net80211: add initial AES-GCMP crypto support 2025-03-12 17:02:27 -07:00
ieee80211_crypto_gcm.h net80211: add initial AES-GCMP crypto support 2025-03-12 17:02:27 -07:00
ieee80211_crypto_gcmp.c net80211: refactor out the AAD init code shared between GCMP and CCMP 2025-04-07 18:35:21 -07:00
ieee80211_crypto_none.c
ieee80211_crypto_tkip.c net80211: fix TKIP trailer trimming w/ no rx parameters given 2025-06-02 17:11:59 -07:00
ieee80211_crypto_wep.c
ieee80211_ddb.c net80211: add AES-GCM in ddb output 2025-03-01 17:35:23 -08:00
ieee80211_dfs.c net80211: migrate if_printf() -> net80211_vap_printf() 2025-06-03 20:34:12 -07:00
ieee80211_dfs.h
ieee80211_freebsd.c machine/stdarg.h -> sys/stdarg.h 2025-06-11 17:39:02 +01:00
ieee80211_freebsd.h net80211: create net80211_vap_printf() / net80211_ic_printf() for printing 2025-06-03 20:33:33 -07:00
ieee80211_hostap.c net80211: fix VHT node setup in hostap mode 2025-07-16 08:12:03 -07:00
ieee80211_hostap.h
ieee80211_ht.c net80211: don't dereference a NULL HTINFO IE if it's presented 2025-07-16 08:12:11 -07:00
ieee80211_ht.h net80211: HT: add missing bit descriptions for IEEE80211_AGGR_BITS 2024-12-08 20:59:15 +00:00
ieee80211_hwmp.c net80211: migrate direct printf() to net80211_printf() 2025-06-03 20:34:35 -07:00
ieee80211_input.c machine/stdarg.h -> sys/stdarg.h 2025-06-11 17:39:02 +01:00
ieee80211_input.h
ieee80211_ioctl.c net80211: migrate direct printf() to net80211_printf() 2025-06-03 20:34:35 -07:00
ieee80211_ioctl.h net80211: fail setting a key if the cipher isn't HW/SW supported 2025-04-07 18:35:22 -07:00
ieee80211_mesh.c net80211: convert ieee80211_mesh.c to not require if_private.h 2025-06-03 20:35:00 -07:00
ieee80211_mesh.h
ieee80211_monitor.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
ieee80211_monitor.h
ieee80211_node.c net80211: update ieee80211_output_seqno_assign() to 802.11-2020 2025-07-08 12:37:03 -07:00
ieee80211_node.h net80211: update ieee80211_output_seqno_assign() to 802.11-2020 2025-07-08 12:37:03 -07:00
ieee80211_output.c net80211: update ieee80211_output_seqno_assign() to 802.11-2020 2025-07-08 12:37:03 -07:00
ieee80211_phy.c net80211: add ieee80211_phy_vht_get_mcs_kbit() 2025-02-26 11:31:25 -08:00
ieee80211_phy.h net80211: add ieee80211_phy_vht_get_mcs_kbit() 2025-02-26 11:31:25 -08:00
ieee80211_power.c net80211: migrate direct printf() to net80211_printf() 2025-06-03 20:34:35 -07:00
ieee80211_power.h
ieee80211_proto.c net80211: migrate direct printf() to net80211_printf() 2025-06-03 20:34:35 -07:00
ieee80211_proto.h net80211: refactor sequence number assignment code 2025-05-15 19:33:27 -07:00
ieee80211_radiotap.c net80211: migrate direct printf() to net80211_printf() 2025-06-03 20:34:35 -07:00
ieee80211_radiotap.h net8011: radiotap: add more EHT constants 2024-04-14 23:09:09 +00:00
ieee80211_ratectl.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
ieee80211_ratectl.h net80211: change ieee80211_ratectl_rate() to not return a rix 2025-02-26 11:29:36 -08:00
ieee80211_ratectl_none.c net80211: remove direct use of ni->ni_txrate, add indirection methods 2025-02-26 11:29:09 -08:00
ieee80211_regdomain.c
ieee80211_regdomain.h
ieee80211_rssadapt.c net80211: migrate if_printf() -> net80211_vap_printf() 2025-06-03 20:34:12 -07:00
ieee80211_rssadapt.h
ieee80211_scan.c net80211: remove if_private.h from code that doesn't require it 2025-06-03 20:35:15 -07:00
ieee80211_scan.h net80211: scan/internal: change boolean argument from int to bool 2024-07-26 11:07:39 +00:00
ieee80211_scan_sta.c net80211: migrate direct printf() to net80211_printf() 2025-06-03 20:34:35 -07:00
ieee80211_scan_sw.c net80211: remove if_private.h from code that doesn't require it 2025-06-03 20:35:15 -07:00
ieee80211_scan_sw.h
ieee80211_sta.c net80211: remove if_private.h from code that doesn't require it 2025-06-03 20:35:15 -07:00
ieee80211_sta.h
ieee80211_superg.c net80211: migrate direct printf() to net80211_printf() 2025-06-03 20:34:35 -07:00
ieee80211_superg.h
ieee80211_tdma.c net80211: migrate direct printf() to net80211_printf() 2025-06-03 20:34:35 -07:00
ieee80211_tdma.h
ieee80211_var.h net80211: create net80211_vap_printf() / net80211_ic_printf() for printing 2025-06-03 20:33:33 -07:00
ieee80211_vht.c net80211: fix VHT node setup in hostap mode 2025-07-16 08:12:03 -07:00
ieee80211_vht.h net80211: fix VHT node setup in hostap mode 2025-07-16 08:12:03 -07:00
ieee80211_wds.c net80211: remove if_private.h from code that doesn't require it 2025-06-03 20:35:15 -07:00
ieee80211_wds.h
ieee80211_wps.h
ieee80211_xauth.c