Fix for teardown of link on wrong session in Activmode offload context
In Active mode offload context when both P2P and STA links are present,
the heartbeatfailure on one session results in link loss on the other
session.handle missed beacon indication using the bssIdx passed by
firmware
Change-Id: Ie3208b18dc35685cae6499eba081195d7d4d4fea
CRs-fixed: 457247,454235
diff --git a/CORE/MAC/src/pe/lim/limTimerUtils.c b/CORE/MAC/src/pe/lim/limTimerUtils.c
index c64fdab..eb582c1 100644
--- a/CORE/MAC/src/pe/lim/limTimerUtils.c
+++ b/CORE/MAC/src/pe/lim/limTimerUtils.c
@@ -2346,7 +2346,7 @@
* @return None
*/
void
-limMissedBeaconInActiveMode(void *pMacGlobal)
+limMissedBeaconInActiveMode(void *pMacGlobal, tpPESession psessionEntry)
{
tANI_U32 statusCode;
tSirMsgQ msg;
@@ -2356,7 +2356,7 @@
if(IS_ACTIVEMODE_OFFLOAD_FEATURE_ENABLE)
{
msg.type = (tANI_U16) SIR_LIM_HEART_BEAT_TIMEOUT;
- msg.bodyptr = NULL;
+ msg.bodyptr = psessionEntry;
msg.bodyval = 0;
limLog(pMac, LOGE,
FL("Heartbeat failure from Riva\n"));