From d282e614b7facd11d0712e8efe0eedb65faaa145 Mon Sep 17 00:00:00 2001 From: "Chandrasekaran, Manishekar" Date: Thu, 18 Sep 2014 13:13:13 +0530 Subject: qcacld: Populate connected profile info during connect During JOIN, the connected profile info is not being populated. But, this info being accessed in the callback functions and this is leading to crash. This is fixed. Change-Id: I0fa0d8baed7824fd303331fb044b2df9db51faff CRs-Fixed: 725314 --- CORE/SME/src/csr/csrApiRoam.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CORE/SME/src/csr/csrApiRoam.c b/CORE/SME/src/csr/csrApiRoam.c index 8dfd3df22cae..15ec5eee47b1 100644 --- a/CORE/SME/src/csr/csrApiRoam.c +++ b/CORE/SME/src/csr/csrApiRoam.c @@ -4558,6 +4558,12 @@ static eCsrJoinState csrRoamJoinNextBss( tpAniSirGlobal pMac, tSmeCmd *pCommand, } } } + + if (!pRoamInfo) + pRoamInfo = &roamInfo; + + pRoamInfo->u.pConnectedProfile = &pSession->connectedProfile; + //We have something to roam, tell HDD when it is infra. //For IBSS, the indication goes back to HDD via eCSR_ROAM_IBSS_IND //For WDS, the indication is eCSR_ROAM_WDS_IND -- cgit v1.2.3