svn commit: r362162 - head/sys/net80211

Adrian Chadd adrian at FreeBSD.org
Sun Jun 14 00:23:07 UTC 2020


Author: adrian
Date: Sun Jun 14 00:23:06 2020
New Revision: 362162
URL: https://svnweb.freebsd.org/changeset/base/362162

Log:
  [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.

Modified:
  head/sys/net80211/ieee80211_input.h

Modified: head/sys/net80211/ieee80211_input.h
==============================================================================
--- head/sys/net80211/ieee80211_input.h	Sun Jun 14 00:21:48 2020	(r362161)
+++ head/sys/net80211/ieee80211_input.h	Sun Jun 14 00:23:06 2020	(r362162)
@@ -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));
 }
 


More information about the svn-src-head mailing list