summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CORE/MAC/src/pe/lim/limLinkMonitoringAlgo.c3
-rw-r--r--CORE/MAC/src/pe/lim/limProcessSmeReqMessages.c5
2 files changed, 3 insertions, 5 deletions
diff --git a/CORE/MAC/src/pe/lim/limLinkMonitoringAlgo.c b/CORE/MAC/src/pe/lim/limLinkMonitoringAlgo.c
index 5ccec8dae06f..dcdcd63836ef 100644
--- a/CORE/MAC/src/pe/lim/limLinkMonitoringAlgo.c
+++ b/CORE/MAC/src/pe/lim/limLinkMonitoringAlgo.c
@@ -348,7 +348,8 @@ limTriggerSTAdeletion(tpAniSirGlobal pMac, tpDphHashNode pStaDs, tpPESession pse
msgLength += sizeof(tSirMacAddr);
//reasonCode
- limCopyU16((tANI_U8*)pBuf, (tANI_U16)eLIM_LINK_MONITORING_DISASSOC);
+ limCopyU16((tANI_U8*)pBuf,
+ (tANI_U16)eSIR_MAC_DISASSOC_DUE_TO_INACTIVITY_REASON);
pBuf += sizeof(tANI_U16);
msgLength += sizeof(tANI_U16);
diff --git a/CORE/MAC/src/pe/lim/limProcessSmeReqMessages.c b/CORE/MAC/src/pe/lim/limProcessSmeReqMessages.c
index 2cda88e0f832..61531908d6b0 100644
--- a/CORE/MAC/src/pe/lim/limProcessSmeReqMessages.c
+++ b/CORE/MAC/src/pe/lim/limProcessSmeReqMessages.c
@@ -2862,18 +2862,15 @@ __limProcessSmeDisassocReq(tpAniSirGlobal pMac, tANI_U32 *pMsgBuf)
goto sendDisassoc;
} // end switch (pMac->lim.gLimSystemRole)
- if (smeDisassocReq.reasonCode == eLIM_LINK_MONITORING_DISASSOC)
+ if (smeDisassocReq.reasonCode == eSIR_MAC_DISASSOC_DUE_TO_INACTIVITY_REASON)
{
/// Disassociation is triggered by Link Monitoring
limLog(pMac, LOG1, FL("**** Lost link with AP ****"));
disassocTrigger = eLIM_LINK_MONITORING_DISASSOC;
- reasonCode = eSIR_MAC_DISASSOC_DUE_TO_INACTIVITY_REASON;
}
else
- {
disassocTrigger = eLIM_HOST_DISASSOC;
reasonCode = smeDisassocReq.reasonCode;
- }
if (smeDisassocReq.doNotSendOverTheAir)
{