Browse Source

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
Sandeep Puligilla 8 years ago
parent
commit
f852712f1f
3 changed files with 1 additions and 24 deletions
  1. 1 1
      core/hdd/src/wlan_hdd_power.c
  2. 0 1
      core/sme/inc/sme_api.h
  3. 0 22
      core/sme/src/common/sme_api.c

+ 1 - 1
core/hdd/src/wlan_hdd_power.c

@@ -1947,7 +1947,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,

+ 0 - 1
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,

+ 0 - 22
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