qcacld-3.0: Clean up code for sme apis
Clean up code for sme_get_roam_rssi_diff() and sme_get_is_ese_feature_enabled() apis and replace it with ucfg api. Change-Id: I226efbcf8ecd44b08684a3e17e2db987c169946d CRs-Fixed: 3335898
This commit is contained in:

committed by
Madan Koyyalamudi

parent
5afc9f98c7
commit
45eb0c0f4e
@@ -499,7 +499,6 @@ bool csr_roam_is11r_assoc(struct mac_context *mac, uint8_t sessionId);
|
||||
#ifdef FEATURE_WLAN_ESE
|
||||
/* Returns whether the current association is a ESE assoc or not */
|
||||
bool csr_roam_is_ese_assoc(struct mac_context *mac, uint32_t sessionId);
|
||||
bool csr_roam_is_ese_ini_feature_enabled(struct mac_context *mac);
|
||||
QDF_STATUS csr_get_tsm_stats(struct mac_context *mac,
|
||||
tCsrTsmStatsCallback callback,
|
||||
struct qdf_mac_addr bssId,
|
||||
|
@@ -1151,17 +1151,6 @@ QDF_STATUS sme_set_roam_bmiss_first_bcnt(mac_handle_t mac_handle,
|
||||
QDF_STATUS sme_set_roam_bmiss_final_bcnt(mac_handle_t mac_handle,
|
||||
uint8_t sessionId,
|
||||
const uint8_t nRoamBmissFinalBcnt);
|
||||
/**
|
||||
* sme_get_roam_rssi_diff() - get Roam rssi diff
|
||||
* @mac_handle: The handle returned by mac_open
|
||||
* @vdev_id: vdev identifier
|
||||
* @rssi_diff: Buffer to fill the roam RSSI diff.
|
||||
* Valid only if the return status is success.
|
||||
*
|
||||
* Return: QDF_STATUS
|
||||
*/
|
||||
QDF_STATUS sme_get_roam_rssi_diff(mac_handle_t mac_handle, uint8_t vdev_id,
|
||||
uint8_t *rssi_diff);
|
||||
QDF_STATUS sme_change_roam_scan_channel_list(mac_handle_t mac_handle,
|
||||
uint8_t sessionId,
|
||||
uint32_t *channel_freq_list,
|
||||
@@ -1189,7 +1178,6 @@ QDF_STATUS sme_get_roam_scan_channel_list(mac_handle_t mac_handle,
|
||||
uint8_t *pNumChannels,
|
||||
uint8_t sessionId);
|
||||
|
||||
bool sme_get_is_ese_feature_enabled(mac_handle_t mac_handle);
|
||||
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);
|
||||
|
@@ -6942,19 +6942,6 @@ uint16_t sme_get_neighbor_scan_period(mac_handle_t mac_handle,
|
||||
return temp.uint_value;
|
||||
}
|
||||
|
||||
QDF_STATUS sme_get_roam_rssi_diff(mac_handle_t mac_handle, uint8_t vdev_id,
|
||||
uint8_t *rssi_diff)
|
||||
{
|
||||
struct mac_context *mac = MAC_CONTEXT(mac_handle);
|
||||
struct cm_roam_values_copy temp;
|
||||
|
||||
wlan_cm_roam_cfg_get_value(mac->psoc, vdev_id,
|
||||
ROAM_RSSI_DIFF, &temp);
|
||||
*rssi_diff = temp.uint_value;
|
||||
|
||||
return QDF_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
static bool sme_validate_freq_list(mac_handle_t mac_handle,
|
||||
uint32_t *freq_list,
|
||||
uint8_t num_channels)
|
||||
@@ -7121,25 +7108,6 @@ QDF_STATUS sme_get_roam_scan_channel_list(mac_handle_t mac_handle,
|
||||
return status;
|
||||
}
|
||||
|
||||
/*
|
||||
* sme_get_is_ese_feature_enabled() - get ESE feature enabled or not
|
||||
* This is a synchronous call
|
||||
*
|
||||
* mac_handle - The handle returned by mac_open.
|
||||
* Return true (1) - if the ESE feature is enabled
|
||||
* false (0) - if feature is disabled (compile or runtime)
|
||||
*/
|
||||
bool sme_get_is_ese_feature_enabled(mac_handle_t mac_handle)
|
||||
{
|
||||
#ifdef FEATURE_WLAN_ESE
|
||||
struct mac_context *mac = MAC_CONTEXT(mac_handle);
|
||||
|
||||
return csr_roam_is_ese_ini_feature_enabled(mac);
|
||||
#else
|
||||
return false;
|
||||
#endif
|
||||
}
|
||||
|
||||
/*
|
||||
* sme_get_wes_mode() - get WES Mode
|
||||
* This is a synchronous call
|
||||
|
@@ -1521,17 +1521,6 @@ bool csr_roam_is_ese_assoc(struct mac_context *mac_ctx, uint32_t session_id)
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* csr_roam_is_ese_ini_feature_enabled() - is ese feature enabled
|
||||
* @mac_ctx: Global MAC context
|
||||
*
|
||||
* Return: true if ese feature is enabled; false otherwise
|
||||
*/
|
||||
bool csr_roam_is_ese_ini_feature_enabled(struct mac_context *mac)
|
||||
{
|
||||
return mac->mlme_cfg->lfr.ese_enabled;
|
||||
}
|
||||
|
||||
/**
|
||||
* csr_tsm_stats_rsp_processor() - tsm stats response processor
|
||||
* @mac: Global MAC context
|
||||
|
Reference in New Issue
Block a user