diff options
author | Adrian Chadd <adrian@FreeBSD.org> | 2020-06-14 00:23:06 +0000 |
---|---|---|
committer | Adrian Chadd <adrian@FreeBSD.org> | 2020-06-14 00:23:06 +0000 |
commit | e9efad4f9e0752a074356ba3c63719727a5c0d34 (patch) | |
tree | b8bff64c347c1fbd569d0116b39a63700c739965 /sys/net80211/ieee80211_input.h | |
parent | 1209ded2e14c7ca9745b8a674f96a442bf5bd1e6 (diff) | |
download | src-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
Diffstat (limited to 'sys/net80211/ieee80211_input.h')
-rw-r--r-- | sys/net80211/ieee80211_input.h | 3 |
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)); } |