Quellcode durchsuchen

qcacld-3.0: Fix LFR2 roam on same channel fail

When LFR2 roaming on same channel, after pre-auth resp received,
A new PE session is created, currentOperChannel is 0 before
lim_fill_ft_session, not same as currentOperChannel of original
session, so lim_is_in_mcc return true, pre-auth auth result is
not sent to SME/CSR for lim_ft_process_pre_auth_result isn't
called in lim_handle_ft_pre_auth_rsp

Change-Id: If8686c7f73c76655f7ab69c23fb97a7bb540732f
CRs-Fixed: 2195749
Zhu Jianmin vor 7 Jahren
Ursprung
Commit
439682ddbd
1 geänderte Dateien mit 3 neuen und 1 gelöschten Zeilen
  1. 3 1
      core/mac/src/pe/lim/lim_session_utils.c

+ 3 - 1
core/mac/src/pe/lim/lim_session_utils.c

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2011-2017 The Linux Foundation. All rights reserved.
+ * Copyright (c) 2011-2018 The Linux Foundation. All rights reserved.
  *
  * Previously licensed under the ISC license by Qualcomm Atheros, Inc.
  *
@@ -115,6 +115,8 @@ uint8_t lim_is_in_mcc(tpAniSirGlobal mac_ctx)
 		if ((mac_ctx->lim.gpSession[i].valid)) {
 			curr_oper_channel =
 				mac_ctx->lim.gpSession[i].currentOperChannel;
+			if (curr_oper_channel == 0)
+				continue;
 			if (chan == 0)
 				chan = curr_oper_channel;
 			else if (chan != curr_oper_channel)