mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-25 22:23:14 -04:00
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
This commit is contained in:
parent
867c89d833
commit
9816a252c2
2 changed files with 0 additions and 29 deletions
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue