فهرست منبع

qcacld-3.0: Remove sme_is_sta_smps_allowed()

Change Ifff2ef2c8790994a68e676b8bba2fb03c21370d4 ("qcacld-3.0: Enable
station SMPS only if the session supported NSS > 1") introduced
function sme_is_sta_smps_allowed(). However this function has
subsequently never been used, so remove it.

Change-Id: I0a4d134986dd3a03d12e907f6df6ecb29b268eb3
CRs-Fixed: 2371155
Jeff Johnson 6 سال پیش
والد
کامیت
9816a252c2
2فایلهای تغییر یافته به همراه0 افزوده شده و 29 حذف شده
  1. 0 1
      core/sme/inc/sme_api.h
  2. 0 28
      core/sme/src/common/sme_api.c

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

@@ -1601,7 +1601,6 @@ QDF_STATUS sme_update_mimo_power_save(mac_handle_t mac_handle,
 				      uint8_t ht_smps_mode,
 				      bool send_smps_action);
 
-bool sme_is_sta_smps_allowed(mac_handle_t mac_handle, uint8_t session_id);
 QDF_STATUS sme_add_beacon_filter(mac_handle_t mac_handle,
 				 uint32_t session_id, uint32_t *ie_map);
 QDF_STATUS sme_remove_beacon_filter(mac_handle_t mac_handle,

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

@@ -13082,34 +13082,6 @@ QDF_STATUS sme_update_mimo_power_save(mac_handle_t mac_handle,
 	return QDF_STATUS_SUCCESS;
 }
 
-/**
- * sme_is_sta_smps_allowed() - check if the supported nss for
- * the session is greater than 1x1 to enable sta SMPS
- * @mac_handle: The handle returned by macOpen
- * @session_id: session id
- *
- * Return: bool returns true if supported nss is greater than
- * 1x1 else false
- */
-bool sme_is_sta_smps_allowed(mac_handle_t mac_handle, uint8_t session_id)
-{
-	struct mac_context *mac_ctx = MAC_CONTEXT(mac_handle);
-	struct csr_roam_session *csr_session;
-
-	csr_session = CSR_GET_SESSION(mac_ctx, session_id);
-	if (NULL == csr_session) {
-		sme_err("SME session not valid: %d", session_id);
-		return false;
-	}
-
-	if (!CSR_IS_SESSION_VALID(mac_ctx, session_id)) {
-		sme_err("CSR session not valid: %d", session_id);
-		return false;
-	}
-
-	return (csr_session->supported_nss_1x1 == true) ? false : true;
-}
-
 /**
  * sme_add_beacon_filter() - set the beacon filter configuration
  * @mac_handle: The handle returned by macOpen