浏览代码

qca-wifi: fix deauth in tx capture on peer filter

deauth frames are treated as speacial frame where peer id
point to bss peer id but payload RA points to station
mac address. Peer filter is done based on payload.

Change-Id: I4238a108a62accbf3a53f74332a10377675870b8
CRs-Fixed: 2692363
nobelj 5 年之前
父节点
当前提交
c01e229231
共有 1 个文件被更改,包括 4 次插入2 次删除
  1. 4 2
      dp/wifi3.0/dp_tx_capture.c

+ 4 - 2
dp/wifi3.0/dp_tx_capture.c

@@ -3643,7 +3643,8 @@ dp_check_mgmt_ctrl_ppdu(struct dp_pdev *pdev,
 			dp_tx_cap_peer_unref_del(peer);
 		if (!(type == IEEE80211_FC0_TYPE_MGT &&
 		    (subtype == MGMT_SUBTYPE_PROBE_RESP >> 4 ||
-		     subtype == MGMT_SUBTYPE_DISASSOC >> 4))) {
+		     subtype == MGMT_SUBTYPE_DISASSOC >> 4 ||
+		     subtype == MGMT_SUBTYPE_DEAUTH >> 4))) {
 			if (!dp_peer_or_pdev_tx_cap_enabled(pdev, NULL,
 							    ppdu_desc->user[0]
 							    .mac_addr)) {
@@ -3831,7 +3832,8 @@ insert_mgmt_buf_to_queue:
 
 			if (type == IEEE80211_FC0_TYPE_MGT &&
 			    (subtype == MGMT_SUBTYPE_PROBE_RESP >> 4 ||
-			     subtype == MGMT_SUBTYPE_DISASSOC >> 4)) {
+			     subtype == MGMT_SUBTYPE_DISASSOC >> 4 ||
+			     subtype == MGMT_SUBTYPE_DEAUTH >> 4)) {
 				if (!dp_peer_or_pdev_tx_cap_enabled(pdev,
 								    NULL,
 								    wh->i_addr1