소스 검색

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