qcacld-3.0: Clean up code for sme apis

Clean up code for sme_get_wes_mode(), sme_get_is_lfr_feature_enabled()
and sme_get_is_ft_feature_enabled() apis and
replace it with ucfg api.

Change-Id: I7715ba361264fcb2c0c93d8d073813538347dd31
CRs-Fixed: 3335898
This commit is contained in:
Krupali Dhanvijay
2022-11-16 14:53:22 +05:30
committed by Madan Koyyalamudi
parent 2c38836b37
commit 7c037e6d50
5 changed files with 75 additions and 62 deletions

View File

@@ -1174,9 +1174,6 @@ QDF_STATUS sme_get_roam_scan_channel_list(mac_handle_t mac_handle,
uint8_t *pNumChannels,
uint8_t sessionId);
bool sme_get_wes_mode(mac_handle_t mac_handle);
bool sme_get_is_lfr_feature_enabled(mac_handle_t mac_handle);
bool sme_get_is_ft_feature_enabled(mac_handle_t mac_handle);
bool sme_is_feature_supported_by_fw(enum cap_bitmap feature);
QDF_STATUS sme_set_phy_mode(mac_handle_t mac_handle, eCsrPhyMode phyMode);

View File

@@ -7069,49 +7069,6 @@ QDF_STATUS sme_get_roam_scan_channel_list(mac_handle_t mac_handle,
return status;
}
/*
* sme_get_wes_mode() - get WES Mode
* This is a synchronous call
*
* mac_handle - The handle returned by mac_open
* Return uint8_t - WES Mode Enabled(1)/Disabled(0)
*/
bool sme_get_wes_mode(mac_handle_t mac_handle)
{
struct mac_context *mac = MAC_CONTEXT(mac_handle);
return mac->mlme_cfg->lfr.wes_mode_enabled;
}
/*
* sme_get_is_lfr_feature_enabled() - get LFR feature enabled or not
* This is a synchronous call
* mac_handle - The handle returned by mac_open.
* Return true (1) - if the feature is enabled
* false (0) - if feature is disabled (compile or runtime)
*/
bool sme_get_is_lfr_feature_enabled(mac_handle_t mac_handle)
{
struct mac_context *mac = MAC_CONTEXT(mac_handle);
return mac->mlme_cfg->lfr.lfr_enabled;
}
/*
* sme_get_is_ft_feature_enabled() - get FT feature enabled or not
* This is a synchronous call
*
* mac_handle - The handle returned by mac_open.
* Return true (1) - if the feature is enabled
* false (0) - if feature is disabled (compile or runtime)
*/
bool sme_get_is_ft_feature_enabled(mac_handle_t mac_handle)
{
struct mac_context *mac = MAC_CONTEXT(mac_handle);
return mac->mlme_cfg->lfr.fast_transition_enabled;
}
/**
* sme_is_feature_supported_by_fw() - check if feature is supported by FW
* @feature: enum value of requested feature.