qcacld-3.0: Clean up code for sme apis

Clean up code for sme_get_empty_scan_refresh_period_global() and
sme_get_neighbor_scan_refresh_period() apis
and replace it with ucfg api.

Change-Id: Iaa511024467f45dc408da3db202b25f9b5276453
CRs-Fixed: 3335898
这个提交包含在:
Krupali Dhanvijay
2022-11-14 16:44:13 +05:30
提交者 Madan Koyyalamudi
父节点 091ad81795
当前提交 3ecc75ecc3
修改 6 个文件,包含 61 行新增36 行删除

查看文件

@@ -605,4 +605,29 @@ ucfg_cm_get_roam_opportunistic_scan_threshold_diff(
struct wlan_objmgr_psoc *psoc,
int8_t *val);
/**
* ucfg_cm_get_neighbor_scan_refresh_period() - Get neighbor scan results
* refresh period.
* This is a synchronous call
* @psoc: pointer to psoc object
* @value: value for scan results refresh period
*
* Return: QDF_STATUS
*/
QDF_STATUS
ucfg_cm_get_neighbor_scan_refresh_period(struct wlan_objmgr_psoc *psoc,
uint16_t *value);
/**
* ucfg_cm_get_empty_scan_refresh_period_global() - Get global scan
* refresh period
* @psoc: pointer to psoc object
* @roam_scan_period_global: value for empty scan refresh period
*
* Return: QDF_STATUS
*/
QDF_STATUS
ucfg_cm_get_empty_scan_refresh_period_global(struct wlan_objmgr_psoc *psoc,
uint16_t *roam_scan_period_global);
#endif /* _WLAN_CM_ROAM_UCFG_API_H_ */

查看文件

@@ -695,3 +695,34 @@ ucfg_cm_get_roam_opportunistic_scan_threshold_diff(
return QDF_STATUS_SUCCESS;
}
QDF_STATUS
ucfg_cm_get_neighbor_scan_refresh_period(struct wlan_objmgr_psoc *psoc,
uint16_t *value)
{
struct wlan_mlme_psoc_ext_obj *mlme_obj;
mlme_obj = mlme_get_psoc_ext_obj(psoc);
if (!mlme_obj)
return QDF_STATUS_E_INVAL;
*value = mlme_obj->cfg.lfr.neighbor_scan_results_refresh_period;
return QDF_STATUS_SUCCESS;
}
QDF_STATUS
ucfg_cm_get_empty_scan_refresh_period_global(struct wlan_objmgr_psoc *psoc,
uint16_t *roam_scan_period_global)
{
struct wlan_mlme_psoc_ext_obj *mlme_obj;
mlme_obj = mlme_get_psoc_ext_obj(psoc);
if (!mlme_obj)
return QDF_STATUS_E_INVAL;
*roam_scan_period_global =
mlme_obj->cfg.lfr.empty_scan_refresh_period;
return QDF_STATUS_SUCCESS;
}