Kaynağa Gözat

qcacld-3.0: Fix to honor try again later value only if conn is pmf

qcacld-2.0 to qcacld-3.0 propagation

Current driver is honoring association response with try again later
as reason code without connection being PMF. Driver has been designed
to handle try again later reason only for PMF connection. For non-pmf
case it should report as failure to upper layer just like any other
failures.

To fix this situation, honor try again later reason code only if the
connection is PMF.

Change-Id: I4b37d072bc92e003fcfe62ffe8f93f7c185eb6c7
CRs-Fixed: 919203
Krunal Soni 9 yıl önce
ebeveyn
işleme
3b7f733ea6

+ 4 - 2
core/mac/src/pe/lim/lim_process_assoc_rsp_frame.c

@@ -795,7 +795,8 @@ lim_process_assoc_rsp_frame(tpAniSirGlobal mac_ctx,
 
 	if (assoc_rsp->statusCode != eSIR_MAC_SUCCESS_STATUS
 #ifdef WLAN_FEATURE_11W
-		&& assoc_rsp->statusCode != eSIR_MAC_TRY_AGAIN_LATER
+		&& (session_entry->limRmfEnabled ||
+			assoc_rsp->statusCode != eSIR_MAC_TRY_AGAIN_LATER)
 #endif
 	    ) {
 		/*
@@ -838,7 +839,8 @@ lim_process_assoc_rsp_frame(tpAniSirGlobal mac_ctx,
 	 * lim_process_mlm_assoc_req
 	 */
 #ifdef WLAN_FEATURE_11W
-	if (assoc_rsp->statusCode == eSIR_MAC_TRY_AGAIN_LATER) {
+	if (session_entry->limRmfEnabled &&
+		assoc_rsp->statusCode == eSIR_MAC_TRY_AGAIN_LATER) {
 		if (assoc_rsp->TimeoutInterval.present &&
 		(assoc_rsp->TimeoutInterval.timeoutType ==
 			SIR_MAC_TI_TYPE_ASSOC_COMEBACK)) {