qcacld-3.0: Update fixes in restructured legacy code for policy manager

Update fixes in restructured legacy code for policy manager:
1.Handle disconnect requests during LFR3 roaming

CRs-Fixed: 2009818
Change-Id: I2d9cbe0478090d56f22447478b33ca0de22f47c4
This commit is contained in:
Archana Ramachandran 2017-03-24 14:46:32 -07:00 • committed by Sandeep Puligilla
commit 62886cea31
2 changed files with 11 additions and 6 deletions

View file

@ -4826,7 +4826,7 @@ hdd_sme_roam_callback(void *pContext, tCsrRoamInfo *pRoamInfo, uint32_t roamId,
{
hdd_info("****eCSR_ROAM_DISASSOCIATED****");
hdd_napi_serialize(0);
cds_set_connection_in_progress(false);
hdd_set_connection_in_progress(false);
hdd_set_roaming_in_progress(false);
pAdapter->defer_disconnect = 0;

View file

@ -858,7 +858,7 @@ static void hdd_update_hw_dbs_capable(hdd_context_t *hdd_ctx)
uint8_t hw_dbs_capable = 0;
if ((!cfg_ini->dual_mac_feature_disable)
&& wma_is_hw_dbs_capable())
&& policy_mgr_is_hw_dbs_capable(hdd_ctx->hdd_psoc))
hw_dbs_capable = 1;
sme_update_hw_dbs_capable(hdd_ctx->hHal, hw_dbs_capable);
@ -11013,10 +11013,15 @@ bool hdd_is_connection_in_progress(uint8_t *session_id,
}
return true;
}
if ((QDF_STA_MODE == adapter->device_mode) &&
sme_neighbor_middle_of_roaming(
WLAN_HDD_GET_HAL_CTX(adapter),
adapter->sessionId)) {
/*
* sme_neighbor_middle_of_roaming is for LFR2
* hdd_is_roaming_in_progress is for LFR3
*/
if (((QDF_STA_MODE == adapter->device_mode) &&
sme_neighbor_middle_of_roaming(
WLAN_HDD_GET_HAL_CTX(adapter),
adapter->sessionId)) ||
hdd_is_roaming_in_progress(adapter)) {
hdd_err("%p(%d) Reassociation in progress",
WLAN_HDD_GET_STATION_CTX_PTR(adapter),
adapter->sessionId);