diff options
| author | Sandeep Puligilla <spuligil@codeaurora.org> | 2016-11-16 18:35:16 -0800 |
|---|---|---|
| committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2016-11-18 17:02:58 -0800 |
| commit | 2996cb1ede142e2a5d84a470c96a8bac5386a063 (patch) | |
| tree | b9696f9d581d55c8045f65f0728ccb45c9a89132 | |
| parent | ad2b5865be7fe1b08416f7b1fe513c431df4239c (diff) | |
qcacld-3.0: Remove duplicate api to get roaming status
SessionId validation check is not present in the
sme_sta_in_middle_of_roaming.
Remove duplicate sme_sta_in_middle_of_roaming API to
get roaming status instead use sme_neighbor_middle_of_roaming
API.
Change-Id: Ia8d02f93630297239454bfac37e902eccb92d761
CRs-Fixed: 1091051
| -rw-r--r-- | core/hdd/src/wlan_hdd_power.c | 2 | ||||
| -rw-r--r-- | core/sme/inc/sme_api.h | 1 | ||||
| -rw-r--r-- | core/sme/src/common/sme_api.c | 22 |
3 files changed, 1 insertions, 24 deletions
diff --git a/core/hdd/src/wlan_hdd_power.c b/core/hdd/src/wlan_hdd_power.c index f056d383937a..301ffc747ce1 100644 --- a/core/hdd/src/wlan_hdd_power.c +++ b/core/hdd/src/wlan_hdd_power.c @@ -1942,7 +1942,7 @@ next_adapter: pAdapter = pAdapterNode->pAdapter; pScanInfo = &pAdapter->scan_info; - if (sme_sta_in_middle_of_roaming + if (sme_neighbor_middle_of_roaming (pHddCtx->hHal, pAdapter->sessionId)) { hdd_err("Roaming in progress, do not allow suspend"); wlan_hdd_inc_suspend_stats(pHddCtx, diff --git a/core/sme/inc/sme_api.h b/core/sme/inc/sme_api.h index fbfad7d234a8..d2c73626e0ff 100644 --- a/core/sme/inc/sme_api.h +++ b/core/sme/inc/sme_api.h @@ -826,7 +826,6 @@ QDF_STATUS sme_update_dfs_scan_mode(tHalHandle hHal, uint8_t sessionId, uint8_t allowDFSChannelRoam); uint8_t sme_get_dfs_scan_mode(tHalHandle hHal); -bool sme_sta_in_middle_of_roaming(tHalHandle hHal, uint8_t sessionId); #ifdef FEATURE_WLAN_EXTSCAN QDF_STATUS sme_get_valid_channels_by_band(tHalHandle hHal, uint8_t wifiBand, diff --git a/core/sme/src/common/sme_api.c b/core/sme/src/common/sme_api.c index 741ae26eb185..0d5c1489edf8 100644 --- a/core/sme/src/common/sme_api.c +++ b/core/sme/src/common/sme_api.c @@ -13286,28 +13286,6 @@ QDF_STATUS sme_update_add_ie(tHalHandle hHal, return status; } -/* --------------------------------------------------------------------------- - \fn sme_sta_in_middle_of_roaming - \brief This function returns true if STA is in the middle of roaming state - \param hHal - HAL handle for device - \param sessionId - Session Identifier - \- return true or false - -------------------------------------------------------------------------*/ -bool sme_sta_in_middle_of_roaming(tHalHandle hHal, uint8_t sessionId) -{ - tpAniSirGlobal pMac = PMAC_STRUCT(hHal); - QDF_STATUS status = QDF_STATUS_SUCCESS; - bool ret = false; - - status = sme_acquire_global_lock(&pMac->sme); - if (QDF_IS_STATUS_SUCCESS(status)) { - ret = csr_neighbor_middle_of_roaming(hHal, sessionId); - sme_release_global_lock(&pMac->sme); - } - return ret; -} - - /** * sme_update_dsc_pto_up_mapping() * @hHal: HAL context |
