aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian Chadd <adrian@FreeBSD.org>2020-06-14 00:23:06 +0000
committerAdrian Chadd <adrian@FreeBSD.org>2020-06-14 00:23:06 +0000
commite9efad4f9e0752a074356ba3c63719727a5c0d34 (patch)
treeb8bff64c347c1fbd569d0116b39a63700c739965
parent1209ded2e14c7ca9745b8a674f96a442bf5bd1e6 (diff)
downloadsrc-e9efad4f9e0752a074356ba3c63719727a5c0d34.tar.gz
src-e9efad4f9e0752a074356ba3c63719727a5c0d34.zip
[net80211] Treat frames without an rx status as not a decap'ed A-MSDU.
Drivers for NICs which do A-MSDU decap in hardware / driver will need to set the rx status, so if it's missing then treat it as not a decap'ed A-MSDU.
Notes
Notes: svn path=/head/; revision=362162
-rw-r--r--sys/net80211/ieee80211_input.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/net80211/ieee80211_input.h b/sys/net80211/ieee80211_input.h
index 2f3afc3b7e41..810dcbde7978 100644
--- a/sys/net80211/ieee80211_input.h
+++ b/sys/net80211/ieee80211_input.h
@@ -136,7 +136,8 @@ ishtinfooui(const uint8_t *frm)
static __inline int
ieee80211_check_rxseq_amsdu(const struct ieee80211_rx_stats *rxs)
{
-
+ if (rxs == NULL)
+ return 0;
return (!! (rxs->c_pktflags & IEEE80211_RX_F_AMSDU));
}