Explorar el Código

qcacld-3.0: Remove csr_is_infra_connected()

Change I2b469c6cb2e6bdfc735b04e9bd6f12ba0d41fea4 ("qcacld-3.0: Remove
sme_is_sta_p2p_client_connected()") removed the last client of
csr_is_infra_connected().  Since the function is now obsolete, remove
it.

Change-Id: I5a71cad7414aee56a981e640ef66687fe0433b4f
CRs-Fixed: 2371135
Jeff Johnson hace 6 años
padre
commit
5721ab88f7
Se han modificado 2 ficheros con 0 adiciones y 17 borrados
  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

@@ -988,7 +988,6 @@ bool csr_is_any_session_in_connect_state(struct mac_context *mac);
 bool csr_is_all_session_disconnected(struct mac_context *mac);
 bool csr_is_sta_session_connected(struct mac_context *mac);
 bool csr_is_p2p_session_connected(struct mac_context *mac);
-bool csr_is_infra_connected(struct mac_context *mac);
 
 /**
  * csr_get_connected_infra() - get the session id of the connected infra

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

@@ -1235,22 +1235,6 @@ bool csr_is_p2p_session_connected(struct mac_context *mac)
 	return false;
 }
 
-bool csr_is_infra_connected(struct mac_context *mac)
-{
-	uint32_t i;
-	bool fRc = false;
-
-	for (i = 0; i < CSR_ROAM_SESSION_MAX; i++) {
-		if (CSR_IS_SESSION_VALID(mac, i)
-		    && csr_is_conn_state_connected_infra(mac, i)) {
-			fRc = true;
-			break;
-		}
-	}
-
-	return fRc;
-}
-
 uint8_t csr_get_connected_infra(struct mac_context *mac_ctx)
 {
 	uint32_t i;