diff --git a/core/sme/inc/sme_api.h b/core/sme/inc/sme_api.h index 8b9d63cdb1e8..f69d7ad39ceb 100644 --- a/core/sme/inc/sme_api.h +++ b/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, diff --git a/core/sme/src/common/sme_api.c b/core/sme/src/common/sme_api.c index 2d79ea3fd0c4..a3705f167c97 100644 --- a/core/sme/src/common/sme_api.c +++ b/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