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

gecommit door
Madan Koyyalamudi

bovenliggende
a3a9866f7d
commit
b3021e935e
@@ -442,4 +442,29 @@ ucfg_cm_get_sae_auth_ta(struct wlan_objmgr_pdev *pdev,
|
||||
*/
|
||||
QDF_STATUS
|
||||
ucfg_cm_get_roam_intra_band(struct wlan_objmgr_psoc *psoc, uint16_t *val);
|
||||
|
||||
/**
|
||||
* ucfg_cm_get_roam_rescan_rssi_diff() - gets roam rescan rssi diff
|
||||
* @psoc: pointer to psoc object
|
||||
* @val: value for rescan rssi diff
|
||||
*
|
||||
* Return: QDF_STATUS
|
||||
*/
|
||||
QDF_STATUS
|
||||
ucfg_cm_get_roam_rescan_rssi_diff(struct wlan_objmgr_psoc *psoc, uint8_t *val);
|
||||
|
||||
/**
|
||||
* ucfg_cm_get_neighbor_lookup_rssi_threshold() -
|
||||
* get neighbor lookup rssi threshold
|
||||
* @psoc: pointer to psoc object
|
||||
* @vdev_id: vdev identifier
|
||||
* @lookup_threshold: Buffer to fill the neighbor lookup threshold.
|
||||
* Valid only if the return status is success.
|
||||
*
|
||||
* Return: QDF_STATUS
|
||||
*/
|
||||
QDF_STATUS
|
||||
ucfg_cm_get_neighbor_lookup_rssi_threshold(struct wlan_objmgr_psoc *psoc,
|
||||
uint8_t vdev_id,
|
||||
uint8_t *lookup_threshold);
|
||||
#endif /* _WLAN_CM_ROAM_UCFG_API_H_ */
|
||||
|
@@ -529,3 +529,31 @@ ucfg_cm_get_roam_intra_band(struct wlan_objmgr_psoc *psoc, uint16_t *val)
|
||||
|
||||
return QDF_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
QDF_STATUS
|
||||
ucfg_cm_get_roam_rescan_rssi_diff(struct wlan_objmgr_psoc *psoc, uint8_t *val)
|
||||
{
|
||||
struct wlan_mlme_psoc_ext_obj *mlme_obj;
|
||||
|
||||
mlme_obj = mlme_get_psoc_ext_obj(psoc);
|
||||
if (!mlme_obj)
|
||||
return QDF_STATUS_E_INVAL;
|
||||
|
||||
*val = mlme_obj->cfg.lfr.roam_rescan_rssi_diff;
|
||||
|
||||
return QDF_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
QDF_STATUS
|
||||
ucfg_cm_get_neighbor_lookup_rssi_threshold(struct wlan_objmgr_psoc *psoc,
|
||||
uint8_t vdev_id,
|
||||
uint8_t *lookup_threshold)
|
||||
{
|
||||
struct cm_roam_values_copy temp;
|
||||
|
||||
wlan_cm_roam_cfg_get_value(psoc, vdev_id,
|
||||
NEIGHBOUR_LOOKUP_THRESHOLD, &temp);
|
||||
*lookup_threshold = temp.uint_value;
|
||||
|
||||
return QDF_STATUS_SUCCESS;
|
||||
}
|
||||
|
Verwijs in nieuw issue
Block a user