Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F135493879
D50794.id158613.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
890 B
Referenced Files
None
Subscribers
None
D50794.id158613.diff
View Options
diff --git a/sys/net80211/ieee80211_ht.c b/sys/net80211/ieee80211_ht.c
--- a/sys/net80211/ieee80211_ht.c
+++ b/sys/net80211/ieee80211_ht.c
@@ -1951,6 +1951,11 @@
(vap->iv_vht_flags & IEEE80211_FVHT_VHT) == 0)
_RETURN_CHAN_BITS(0);
+ /*
+ * TODO: should we bail out if there's no htinfo?
+ * Or just treat it as if we can't do the HT20/HT40 check?
+ */
+
/*
* The original code was based on
* 802.11ac-2013, Table 8-183x-VHT Operation Information subfields.
@@ -1962,8 +1967,12 @@
*/
htinfo = (const struct ieee80211_ie_htinfo *)ni->ni_ies.htinfo_ie;
- ht40 = ((htinfo->hi_byte1 & IEEE80211_HTINFO_TXWIDTH) ==
- IEEE80211_HTINFO_TXWIDTH_2040);
+ if (htinfo != NULL)
+ ht40 = ((htinfo->hi_byte1 & IEEE80211_HTINFO_TXWIDTH) ==
+ IEEE80211_HTINFO_TXWIDTH_2040);
+ else
+ ht40 = false;
+
can_vht160 = can_vht80p80 = can_vht80 = false;
/* 20 Mhz */
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Nov 11, 7:37 AM (15 h, 38 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
25148128
Default Alt Text
D50794.id158613.diff (890 B)
Attached To
Mode
D50794: net80211: don't dereference a NULL HTINFO IE if it's presented
Attached
Detach File
Event Timeline
Log In to Comment