Преглед изворни кода

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;
 		}