浏览代码

qca-wifi: ignore ack with 0 mac addr

use mac addr compare function with dummy mac addr set to all 0 and dest
mac addr. if they are similar then just ignore frame.

Change-Id: I8c892d0ca4a210865720b94b580b6e24dad0382b
Ruben Columbus 5 年之前
父节点
当前提交
490a45106d
共有 1 个文件被更改,包括 11 次插入0 次删除
  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
 
 /**
@@ -3989,6 +3997,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 =