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
这个提交包含在:
@@ -493,4 +493,37 @@ ucfg_cm_get_empty_scan_refresh_period(struct wlan_objmgr_psoc *psoc,
|
||||
uint16_t
|
||||
ucfg_cm_get_neighbor_scan_min_chan_time(struct wlan_objmgr_psoc *psoc,
|
||||
uint8_t session_id);
|
||||
|
||||
/**
|
||||
* ucfg_cm_get_roam_rssi_diff() - Get Roam rssi diff
|
||||
* @psoc: pointer to psoc object
|
||||
* @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
|
||||
ucfg_cm_get_roam_rssi_diff(struct wlan_objmgr_psoc *psoc, uint8_t vdev_id,
|
||||
uint8_t *rssi_diff);
|
||||
|
||||
#ifdef FEATURE_WLAN_ESE
|
||||
/**
|
||||
* ucfg_cm_get_is_ese_feature_enabled() - Get ESE feature enabled or not
|
||||
* This is a synchronous call
|
||||
* @psoc: pointer to psoc object
|
||||
*
|
||||
* Return true (1) - if the ESE feature is enabled
|
||||
* false (0) - if feature is disabled (compile or runtime)
|
||||
*/
|
||||
bool
|
||||
ucfg_cm_get_is_ese_feature_enabled(struct wlan_objmgr_psoc *psoc);
|
||||
#else
|
||||
static inline bool
|
||||
ucfg_cm_get_is_ese_feature_enabled(struct wlan_objmgr_psoc *psoc)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* _WLAN_CM_ROAM_UCFG_API_H_ */
|
||||
|
@@ -583,3 +583,29 @@ ucfg_cm_get_neighbor_scan_min_chan_time(struct wlan_objmgr_psoc *psoc,
|
||||
|
||||
return temp.uint_value;
|
||||
}
|
||||
|
||||
QDF_STATUS
|
||||
ucfg_cm_get_roam_rssi_diff(struct wlan_objmgr_psoc *psoc, uint8_t vdev_id,
|
||||
uint8_t *rssi_diff)
|
||||
{
|
||||
struct cm_roam_values_copy temp;
|
||||
|
||||
wlan_cm_roam_cfg_get_value(psoc, vdev_id,
|
||||
ROAM_RSSI_DIFF, &temp);
|
||||
*rssi_diff = temp.uint_value;
|
||||
|
||||
return QDF_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
#ifdef FEATURE_WLAN_ESE
|
||||
bool ucfg_cm_get_is_ese_feature_enabled(struct wlan_objmgr_psoc *psoc)
|
||||
{
|
||||
struct wlan_mlme_psoc_ext_obj *mlme_obj;
|
||||
|
||||
mlme_obj = mlme_get_psoc_ext_obj(psoc);
|
||||
if (!mlme_obj)
|
||||
return false;
|
||||
|
||||
return mlme_obj->cfg.lfr.ese_enabled;
|
||||
}
|
||||
#endif
|
||||
|
在新工单中引用
屏蔽一个用户