qcacld-3.0: Clean up code for sme apis
Clean up code for sme_get_roam_opportunistic_scan_threshold_diff() and sme_get_roam_scan_home_away_time() apis and replace it with ucfg api. Change-Id: I7de3bf3faff990cbf667cb8106044a33f16f3a46 CRs-Fixed: 3335898
Šī revīzija ir iekļauta:

revīziju iesūtīja
Madan Koyyalamudi

vecāks
7c037e6d50
revīzija
091ad81795
@@ -578,4 +578,31 @@ bool ucfg_cm_get_is_lfr_feature_enabled(struct wlan_objmgr_psoc *psoc);
|
||||
*/
|
||||
bool ucfg_cm_get_is_ft_feature_enabled(struct wlan_objmgr_psoc *psoc);
|
||||
|
||||
/**
|
||||
* ucfg_cm_get_roam_scan_home_away_time() - Get Roam scan home away time
|
||||
* @psoc: Pointer to psoc
|
||||
* @vdev_id: vdev identifier
|
||||
* @roam_scan_home_away_time: Buffer to fill the roam scan home away time.
|
||||
* Valid only if the return status is success.
|
||||
*
|
||||
* Return: QDF_STATUS
|
||||
*/
|
||||
QDF_STATUS
|
||||
ucfg_cm_get_roam_scan_home_away_time(struct wlan_objmgr_psoc *psoc,
|
||||
uint8_t vdev_id,
|
||||
uint16_t *roam_scan_home_away_time);
|
||||
/**
|
||||
* ucfg_cm_get_roam_opportunistic_scan_threshold_diff() -
|
||||
* get Opportunistic Scan threshold diff.
|
||||
* This is a synchronous call
|
||||
* @psoc: Pointer to psoc
|
||||
* @val: Opportunistic Scan threshold diff.
|
||||
*
|
||||
* Return: QDF_STATUS
|
||||
*/
|
||||
QDF_STATUS
|
||||
ucfg_cm_get_roam_opportunistic_scan_threshold_diff(
|
||||
struct wlan_objmgr_psoc *psoc,
|
||||
int8_t *val);
|
||||
|
||||
#endif /* _WLAN_CM_ROAM_UCFG_API_H_ */
|
||||
|
@@ -665,3 +665,33 @@ bool ucfg_cm_get_is_ft_feature_enabled(struct wlan_objmgr_psoc *psoc)
|
||||
|
||||
return mlme_obj->cfg.lfr.fast_transition_enabled;
|
||||
}
|
||||
|
||||
QDF_STATUS
|
||||
ucfg_cm_get_roam_scan_home_away_time(struct wlan_objmgr_psoc *psoc,
|
||||
uint8_t vdev_id,
|
||||
uint16_t *roam_scan_home_away_time)
|
||||
{
|
||||
struct cm_roam_values_copy temp;
|
||||
|
||||
wlan_cm_roam_cfg_get_value(psoc, vdev_id, SCAN_HOME_AWAY, &temp);
|
||||
|
||||
*roam_scan_home_away_time = temp.uint_value;
|
||||
|
||||
return QDF_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
QDF_STATUS
|
||||
ucfg_cm_get_roam_opportunistic_scan_threshold_diff(
|
||||
struct wlan_objmgr_psoc *psoc,
|
||||
int8_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.opportunistic_scan_threshold_diff;
|
||||
|
||||
return QDF_STATUS_SUCCESS;
|
||||
}
|
||||
|
Atsaukties uz šo jaunā problēmā
Block a user