prima: Fix to not increment sessions
Currently, Host increments sessions when reassociation is issued
to same AP. Sessions are incremented only when ft_carrier_on is
FALSE. Fix this by checking whether reassoc is to to same AP or
not.
Change-Id: I2f726cfa773654db95c6e0350eefc3790f5954f5
CRs-Fixed: 763758
diff --git a/CORE/HDD/src/wlan_hdd_assoc.c b/CORE/HDD/src/wlan_hdd_assoc.c
index 3caba64..18d8afc 100644
--- a/CORE/HDD/src/wlan_hdd_assoc.c
+++ b/CORE/HDD/src/wlan_hdd_assoc.c
@@ -642,7 +642,7 @@
* decrease count for Active sessions. We should not increase active
* active session in case of roaming.
*/
- if(pHddStaCtx->ft_carrier_on == FALSE)
+ if((pHddStaCtx->ft_carrier_on == FALSE) && !pCsrRoamInfo->fReassocReq)
{
wlan_hdd_incr_active_session(pHddCtx, pAdapter->device_mode);
}