From 8773696a276824f3cf1b6180c7e8de6c496ca4d8 Mon Sep 17 00:00:00 2001 From: Naveen Rawat Date: Tue, 29 Dec 2015 08:43:28 -0800 Subject: [PATCH] qcacld-3.0: Use assoc req len from roam sync msg in if condition Use assoc req from roam_sync_ind_ptr instead of ft_session_ptr in condition statement. assoc req from ft_session_ptr is not populated yet and hence will be 0 when the condition is invoked. This will cause if block to never execute. Change-Id: I9cd758674d13603087de013a0aea751032bc8603 CRs-Fixed: 957591 --- core/mac/src/pe/lim/lim_api.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/mac/src/pe/lim/lim_api.c b/core/mac/src/pe/lim/lim_api.c index bd221069ef..f516859e09 100644 --- a/core/mac/src/pe/lim/lim_api.c +++ b/core/mac/src/pe/lim/lim_api.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2011-2015 The Linux Foundation. All rights reserved. + * Copyright (c) 2011-2016 The Linux Foundation. All rights reserved. * * Previously licensed under the ISC license by Qualcomm Atheros, Inc. * @@ -2037,7 +2037,7 @@ void lim_roam_offload_synch_ind(tpAniSirGlobal pMac, tpSirMsgQ pMsg) /* Prepare the session right now with as much as possible */ lim_fill_ft_session(pMac, bss_desc_ptr, ft_session_ptr, session_ptr); - if (ft_session_ptr->assocReqLen) { + if (roam_sync_ind_ptr->reassoc_req_length) { /* * For LFR3 the Assoc Request frame was sent by firmware, hence * pe session struct does not have corresponding IEs. Firmware