Sfoglia il codice sorgente

qcacld-3.0: Remove sme_get_infra_session_id()

Function sme_get_infra_session_id() is unused, so remove it.

Change-Id: Ib37eff0591d9c043e62883329c12410fcca67223
CRs-Fixed: 2371148
Jeff Johnson 6 anni fa
parent
commit
cb62be3384
2 ha cambiato i file con 1 aggiunte e 27 eliminazioni
  1. 0 1
      core/sme/inc/sme_api.h
  2. 1 26
      core/sme/src/common/sme_api.c

+ 0 - 1
core/sme/inc/sme_api.h

@@ -687,7 +687,6 @@ QDF_STATUS sme_configure_app_type1_params(mac_handle_t mac_handle,
 QDF_STATUS sme_configure_app_type2_params(mac_handle_t mac_handle,
 		tpSirAppType2Params wlanAppType2Params);
 #endif
-int8_t sme_get_infra_session_id(mac_handle_t mac_handle);
 uint8_t sme_get_concurrent_operation_channel(mac_handle_t mac_handle);
 #ifdef FEATURE_WLAN_MCC_TO_SCC_SWITCH
 uint16_t sme_check_concurrent_channel_overlap(mac_handle_t mac_handle,

+ 1 - 26
core/sme/src/common/sme_api.c

@@ -5130,32 +5130,7 @@ QDF_STATUS sme_configure_app_type2_params(mac_handle_t mac_handle,
 }
 #endif
 
-/*
- * sme_get_infra_session_id
- * To get the session ID for infra session, if connected
- *   This is a synchronous API.
- *
- * mac_handle - The handle returned by mac_open.
- * sessionid, -1 if infra session is not connected
- */
-int8_t sme_get_infra_session_id(mac_handle_t mac_handle)
-{
-	QDF_STATUS status = QDF_STATUS_E_FAILURE;
-	int8_t sessionid = -1;
-	struct mac_context *mac = MAC_CONTEXT(mac_handle);
-
-	status = sme_acquire_global_lock(&mac->sme);
-	if (QDF_IS_STATUS_SUCCESS(status)) {
-
-		sessionid = csr_get_infra_session_id(mac);
-
-		sme_release_global_lock(&mac->sme);
-	}
-
-	return sessionid;
-}
-
-/* This routine will return poerating channel on which other BSS is operating
+/* This routine will return operating channel on which other BSS is operating
  * to be used for concurrency mode. If other BSS is not up or not connected it
  * will return 0
  */