Quellcode durchsuchen

qcacld-3.0: Remove sme_get_infra_operation_channel()

Function sme_get_infra_operation_channel() is unused, so remove it.

Change-Id: I5b2a6e8c3c38c751e5b4f826b8329d34095e18be
CRs-Fixed: 2371147
Jeff Johnson vor 6 Jahren
Ursprung
Commit
ba4fd18cba
2 geänderte Dateien mit 0 neuen und 29 gelöschten Zeilen
  1. 0 2
      core/sme/inc/sme_api.h
  2. 0 27
      core/sme/src/common/sme_api.c

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

@@ -688,8 +688,6 @@ 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_infra_operation_channel(mac_handle_t mac_handle,
-					uint8_t sessionId);
 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,

+ 0 - 27
core/sme/src/common/sme_api.c

@@ -5155,33 +5155,6 @@ int8_t sme_get_infra_session_id(mac_handle_t mac_handle)
 	return sessionid;
 }
 
-/*
- * sme_get_infra_operation_channel() -
- * To get the operating channel for infra session, if connected
- *   This is a synchronous API.
- *
- * mac_handle - The handle returned by mac_open.
- * sessionId - the sessionId returned by sme_open_session.
- * Return operating channel, 0 if infra session is not connected
- */
-uint8_t sme_get_infra_operation_channel(mac_handle_t mac_handle,
-					uint8_t sessionId)
-{
-	QDF_STATUS status = QDF_STATUS_E_FAILURE;
-	struct mac_context *mac = MAC_CONTEXT(mac_handle);
-	uint8_t channel = 0;
-
-	status = sme_acquire_global_lock(&mac->sme);
-	if (QDF_IS_STATUS_SUCCESS(status)) {
-
-		channel = csr_get_infra_operation_channel(mac, sessionId);
-
-		sme_release_global_lock(&mac->sme);
-	}
-
-	return channel;
-}
-
 /* This routine will return poerating 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