Commit f3d5cd10 authored by Yingying Tang's avatar Yingying Tang Committed by Madan Mohan Koyyalamudi
Browse files

Qcacld: Add some log to debug a memory corruption problem

Add some debug log between 2 Roam sub state change process.
Check why the normal Roam sub state change process is not
called.

Change-Id: Iac0f9f86e7dccfccda97291810e32205f705d34c
CRs-Fixed: 935062
parent 50a18a2c
......@@ -134,7 +134,7 @@ static eHalStatus sendCfg(tpAniSirGlobal pMac, tHddHandle hHdd, tCfgReq *req, tA
}
else
{
smsLog( pMac, LOGW, FL("failed to allocate memory(len=%d)"), msgLen );
smsLog( pMac, LOGE, FL("failed to allocate memory(len=%d)"), msgLen );
status = eHAL_STATUS_FAILURE;
}
......@@ -269,6 +269,8 @@ static eHalStatus cfgSetSub(tpAniSirGlobal pMac, tHddHandle hHdd, tANI_U32 cfgId
if (pMac->ccm.state == eCCM_STOPPED)
{
status = eHAL_STATUS_FAILURE ;
smsLog(pMac, LOGE,
FL("cfgSetSub failure. ccm.state=eCCM_STOPPED"));
break ;
}
......@@ -276,6 +278,7 @@ static eHalStatus cfgSetSub(tpAniSirGlobal pMac, tHddHandle hHdd, tANI_U32 cfgId
if (req == NULL)
{
status = eHAL_STATUS_FAILED_ALLOC ;
smsLog(pMac, LOGE, FL("cfgSetSub failure. req=NULL"));
break ;
}
......@@ -445,6 +448,9 @@ void ccmCfgCnfMsgHandler(tHalHandle hHal, void *m)
result = pal_be32_to_cpu(msg->data[0]);
cfgId = pal_be32_to_cpu(msg->data[1]);
smsLog(pMac, LOG1, FL("started=%d, cfgId=%d, in_progress=%d"),
pMac->ccm.replay.started, cfgId, pMac->ccm.replay.in_progress);
if (pMac->ccm.replay.started && cfgId == CFG_UPDATE_MAGIC_DWORD)
{
pMac->ccm.replay.in_progress = 1 ;
......
......@@ -8075,7 +8075,7 @@ static void csrRoamingStateConfigCnfProcessor( tpAniSirGlobal pMac, tANI_U32 res
{
if ( CCM_IS_RESULT_SUCCESS(result) )
{
smsLog(pMac, LOG2, "Cfg sequence complete");
smsLog(pMac, LOG1, "Cfg sequence complete");
// Successfully set the configuration parameters for the new Bss. Attempt to
// join the roaming Bss.
if(pCommand->u.roamCmd.pRoamBssEntry)
......@@ -8083,6 +8083,8 @@ static void csrRoamingStateConfigCnfProcessor( tpAniSirGlobal pMac, tANI_U32 res
pScanResult = GET_BASE_ADDR(pCommand->u.roamCmd.pRoamBssEntry, tCsrScanResult, Link);
pBssDesc = &pScanResult->Result.BssDescriptor;
}
smsLog(pMac, LOG1, "BSSType = %d",
pCommand->u.roamCmd.roamProfile.BSSType);
if ( csrIsBssTypeIBSS( pCommand->u.roamCmd.roamProfile.BSSType ) ||
CSR_IS_WDS( &pCommand->u.roamCmd.roamProfile )
|| CSR_IS_INFRA_AP(&pCommand->u.roamCmd.roamProfile)
......@@ -8207,6 +8209,8 @@ static void csrRoamingStateConfigCnfProcessor( tpAniSirGlobal pMac, tANI_U32 res
}//if ( WNI_CFG_SUCCESS == result )
else
{
smsLog(pMac, LOG1,
FL("!CCM_IS_RESULT_SUCCESS result = %d"), result);
// In the event the configuration failed, for infra let the roam processor
//attempt to join something else...
if( pCommand->u.roamCmd.pRoamBssEntry && CSR_IS_INFRASTRUCTURE( &pCommand->u.roamCmd.roamProfile ) )
......
......@@ -313,6 +313,9 @@ void csrLLInsertTail( tDblLinkList *pList, tListElem *pEntry, tANI_BOOLEAN fInte
{
csrLLUnlock(pList);
}
} else {
VOS_TRACE(VOS_MODULE_ID_SME, VOS_TRACE_LEVEL_INFO_HIGH,
"%s: pList->Flag = %d", __func__, pList->Flag);
}
}
......@@ -345,6 +348,9 @@ void csrLLInsertHead( tDblLinkList *pList, tListElem *pEntry, tANI_BOOLEAN fInte
vos_timer_start( pList->cmdTimeoutTimer,
pList->cmdTimeoutDuration);
}
} else {
VOS_TRACE(VOS_MODULE_ID_SME, VOS_TRACE_LEVEL_INFO_HIGH,
"%s: pList->Flag = %d", __func__, pList->Flag);
}
}
......
......@@ -1141,11 +1141,13 @@ sme_process_cmd:
{
//This is odd. Some one else pull off the command.
csrLLUnlock( &pMac->sme.smeCmdActiveList );
smsLog(pMac, LOGE, "Remove entry failed");
}
}
else
{
csrLLUnlock( &pMac->sme.smeCmdActiveList );
smsLog(pMac, LOGE, "Get Pending command failed");
}
}
else
......@@ -1170,10 +1172,12 @@ sme_process_cmd:
csrScanStartIdleScanTimer(pMac, nTime);
}
}
smsLog(pMac, LOGE, "No Pending command waiting");
}
}
else {
csrLLUnlock( &pMac->sme.smeCmdActiveList );
smsLog(pMac, LOGE, "Active list command waiting");
}
 
sme_process_scan_queue:
......@@ -6731,7 +6735,7 @@ eHalStatus sme_OpenSession(tHalHandle hHal, csrRoamCompleteCallback callback,
eHalStatus status;
tpAniSirGlobal pMac = PMAC_STRUCT( hHal );
 
VOS_TRACE( VOS_MODULE_ID_SAP, VOS_TRACE_LEVEL_INFO_HIGH, "%s: type=%d, subType=%d", __func__, type, subType);
VOS_TRACE( VOS_MODULE_ID_SME, VOS_TRACE_LEVEL_INFO_HIGH, "%s: type=%d, subType=%d", __func__, type, subType);
 
if( NULL == pbSessionId )
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment