Page MenuHomeFreeBSD

D50794.id158613.diff
No OneTemporary

D50794.id158613.diff

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

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)

Event Timeline