Przeglądaj źródła

Merge "qca-wifi: ignore ack with 0 mac addr"

Linux Build Service Account 5 lat temu
rodzic
commit
d035dfef20
1 zmienionych plików z 11 dodań i 0 usunięć
  1. 11 0
      dp/wifi3.0/dp_tx_capture.c

+ 11 - 0
dp/wifi3.0/dp_tx_capture.c

@@ -100,6 +100,14 @@
 /* Schedule id counter mask in ppdu_id */
 #define SCH_ID_MASK 0xFF
 
+#define IEEE80211_IS_ZERO(_a)				\
+	((_a)[0] == 0x00 &&				\
+	 (_a)[1] == 0x00 &&				\
+	 (_a)[2] == 0x00 &&				\
+	 (_a)[3] == 0x00 &&				\
+	 (_a)[4] == 0x00 &&				\
+	 (_a)[5] == 0x00)
+
 #ifdef WLAN_TX_PKT_CAPTURE_ENH
 
 /**
@@ -3992,6 +4000,9 @@ void dp_send_usr_ack_frm_to_stack(struct dp_soc *soc,
 						    NULL, ptr_mac_addr))
 			return;
 
+		if (IEEE80211_IS_ZERO(ppdu_info->nac_info.mac_addr2))
+			return;
+
 		set_mpdu_info(&tx_capture_info,
 			      rx_status, rx_user_status);
 		tx_capture_info.mpdu_nbuf =