Преглед на файлове

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");
 		/*