浏览代码

qcacld-3.0: notify TKIP mic failure to upper layer under fragement case

It's also needed to notify supplicant when TKIP michael mic failure was
detected under fragement case, so supplicat can start 60s protect policy
for association.

Change-Id: I9383d653ac957425e09a60a2f495e575741d073a
CRs-Fixed: 2942680
Qun Zhang 3 年之前
父节点
当前提交
086ebbc79e
共有 1 个文件被更改,包括 3 次插入2 次删除
  1. 3 2
      core/dp/txrx/ol_rx_defrag.c

+ 3 - 2
core/dp/txrx/ol_rx_defrag.c

@@ -794,10 +794,11 @@ ol_rx_defrag(ol_txrx_pdev_handle pdev,
 			     peer->security[index].michael_key,
 			     sizeof(peer->security[index].michael_key));
 		if (!ol_rx_frag_tkip_demic(pdev, key, msdu, hdr_space)) {
-			htt_rx_desc_frame_free(htt_pdev, msdu);
+			uint64_t pn = 0;
 			ol_rx_err(pdev->ctrl_pdev,
 				  vdev->vdev_id, peer->mac_addr.raw, tid, 0,
-				  OL_RX_DEFRAG_ERR, msdu, NULL, 0);
+				  OL_RX_ERR_TKIP_MIC, msdu, &pn, 0);
+			htt_rx_desc_frame_free(htt_pdev, msdu);
 			ol_txrx_err("TKIP demic failed");
 			return;
 		}