From 9816a252c2c3b34ebf9c94b83c7c9ee2da01c6d6 Mon Sep 17 00:00:00 2001 From: Jeff Johnson Date: Wed, 19 Dec 2018 13:37:07 -0800 Subject: [PATCH] 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 --- core/sme/inc/sme_api.h | 1 - core/sme/src/common/sme_api.c | 28 ---------------------------- 2 files changed, 29 deletions(-) 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