Bladeren bron

qcacld-3.0: Remove csr_get_infra_session_id()

Change Ib37eff0591d9c043e62883329c12410fcca67223 ("qcacld-3.0: Remove
sme_get_infra_session_id()") removed the only client of
csr_get_infra_session_id(). Since this function is now unused, remove
it.

Change-Id: I32d0875087ad1f55ec8e8ee2985f7397fefb525d
CRs-Fixed: 2371149
Jeff Johnson 6 jaren geleden
bovenliggende
commit
0265e9944f
2 gewijzigde bestanden met toevoegingen van 0 en 17 verwijderingen
  1. 0 1
      core/sme/inc/csr_internal.h
  2. 0 16
      core/sme/src/csr/csr_util.c

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

@@ -1037,7 +1037,6 @@ uint8_t csr_construct_wapi_ie(struct mac_context *mac, uint32_t sessionId,
 void csr_set_cfg_privacy(struct mac_context *mac,
 			 struct csr_roam_profile *pProfile,
 			 bool fPrivacy);
-int8_t csr_get_infra_session_id(struct mac_context *mac);
 uint8_t csr_get_infra_operation_channel(struct mac_context *mac,
 							uint8_t sessionId);
 bool csr_is_session_client_and_connected(struct mac_context *mac,

+ 0 - 16
core/sme/src/csr/csr_util.c

@@ -716,22 +716,6 @@ bool csr_is_any_session_in_connect_state(struct mac_context *mac)
 	return fRc;
 }
 
-int8_t csr_get_infra_session_id(struct mac_context *mac)
-{
-	uint8_t i;
-	int8_t sessionid = -1;
-
-	for (i = 0; i < CSR_ROAM_SESSION_MAX; i++) {
-		if (CSR_IS_SESSION_VALID(mac, i)
-		    && csr_is_conn_state_infra(mac, i)) {
-			sessionid = i;
-			break;
-		}
-	}
-
-	return sessionid;
-}
-
 uint8_t csr_get_infra_operation_channel(struct mac_context *mac, uint8_t sessionId)
 {
 	uint8_t channel;