From 5144a63d0df42ccaa8e2de6918da83ffdba801fe Mon Sep 17 00:00:00 2001 From: "Kanchanapally, Vidyullatha" Date: Fri, 1 Aug 2014 17:57:44 +0530 Subject: qcacld: Decrement no. of active sessions after successful 11r roaming After 11r roaming is completed, active session count is incremented as a part of connect indication but effectively the active session count should have been the same. As a result this, after few roams the number of active sessions increments to a large value preventing a subsequent fresh association. Fix this by decrementing the number of active sessions after successful 11r roaming. Change-Id: I72cf83fe14aa2bab6e82c48a5c53f209fbe3833a CRs-Fixed: 703262 --- CORE/HDD/src/wlan_hdd_assoc.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/CORE/HDD/src/wlan_hdd_assoc.c b/CORE/HDD/src/wlan_hdd_assoc.c index a16e5a560245..7e9c869c280d 100644 --- a/CORE/HDD/src/wlan_hdd_assoc.c +++ b/CORE/HDD/src/wlan_hdd_assoc.c @@ -1579,6 +1579,14 @@ static eHalStatus hdd_AssociationCompletionHandler( hdd_adapter_t *pAdapter, tCs { if ( !hddDisconInProgress ) { + /* After roaming is completed, active session count is + * incremented as a part of connect indication but + * effectively the active session count should still + * be the same and hence upon successful reassoc + * decrement the active session count here */ + wlan_hdd_decr_active_session(pHddCtx, + pAdapter->device_mode); + hddLog(LOG1, "%s ft_carrier_on is %d, sending roamed " "indication", __FUNCTION__, ft_carrier_on); chan = ieee80211_get_channel(pAdapter->wdev.wiphy, -- cgit v1.2.3