浏览代码

qcacld-3.0: Process deauth frame for PMF session

Currently, for PMF session, when it receives an unprotected deauth
frame from AP and 11w offload is enabled at same time, it drops
the deauth frame. This causes issue during auth/assoc process,
because the connection has not created yet.

Change-Id: I2d51b120fdf5ab90471bf1958071e55d2e23da28
CRs-Fixed: 2818626
Paul Zhang 4 年之前
父节点
当前提交
9228504068
共有 1 个文件被更改,包括 3 次插入2 次删除
  1. 3 2
      core/mac/src/pe/lim/lim_process_deauth_frame.c

+ 3 - 2
core/mac/src/pe/lim/lim_process_deauth_frame.c

@@ -119,8 +119,9 @@ lim_process_deauth_frame(struct mac_context *mac, uint8_t *pRxPacketInfo,
 	}
 #ifdef WLAN_FEATURE_11W
 	/* PMF: If this session is a PMF session, then ensure that this frame was protected */
-	if (pe_session->limRmfEnabled
-	    && (WMA_GET_RX_DPU_FEEDBACK(pRxPacketInfo) &
+	if (pe_session->limRmfEnabled &&
+	    pe_session->is_key_installed &&
+	    (WMA_GET_RX_DPU_FEEDBACK(pRxPacketInfo) &
 		DPU_FEEDBACK_UNPROTECTED_ERROR)) {
 		pe_debug("received an unprotected deauth from AP");
 		/*