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
This commit is contained in:

کامیت شده توسط
Madan Koyyalamudi

والد
7c037e6d50
کامیت
091ad81795
@@ -996,18 +996,6 @@ QDF_STATUS sme_get_roam_scan_n_probes(mac_handle_t mac_handle, uint8_t vdev_id,
|
||||
QDF_STATUS sme_update_roam_rssi_diff(mac_handle_t mac_handle, uint8_t vdev_id,
|
||||
uint8_t roam_rssi_diff);
|
||||
|
||||
/**
|
||||
* sme_get_roam_scan_home_away_time() - get Roam scan home away time
|
||||
* @mac_handle: The handle returned by mac_open
|
||||
* @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 sme_get_roam_scan_home_away_time(mac_handle_t mac_handle,
|
||||
uint8_t vdev_id,
|
||||
uint16_t *roam_scan_home_away_time);
|
||||
QDF_STATUS sme_update_wes_mode(mac_handle_t mac_handle, bool isWESModeEnabled,
|
||||
uint8_t sessionId);
|
||||
|
||||
@@ -1046,7 +1034,6 @@ QDF_STATUS sme_set_roam_opportunistic_scan_threshold_diff(
|
||||
mac_handle_t mac_handle,
|
||||
uint8_t sessionId,
|
||||
const uint8_t nOpportunisticThresholdDiff);
|
||||
uint8_t sme_get_roam_opportunistic_scan_threshold_diff(mac_handle_t mac_handle);
|
||||
|
||||
/**
|
||||
* sme_set_neighbor_lookup_rssi_threshold() - update neighbor lookup rssi thr
|
||||
|
@@ -6084,19 +6084,6 @@ QDF_STATUS sme_get_roam_scan_n_probes(mac_handle_t mac_handle, uint8_t vdev_id,
|
||||
return QDF_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
QDF_STATUS sme_get_roam_scan_home_away_time(mac_handle_t mac_handle,
|
||||
uint8_t vdev_id,
|
||||
uint16_t *roam_scan_home_away_time)
|
||||
{
|
||||
struct mac_context *mac = MAC_CONTEXT(mac_handle);
|
||||
struct cm_roam_values_copy temp;
|
||||
|
||||
wlan_cm_roam_cfg_get_value(mac->psoc, vdev_id, SCAN_HOME_AWAY, &temp);
|
||||
*roam_scan_home_away_time = temp.uint_value;
|
||||
|
||||
return QDF_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
QDF_STATUS sme_update_roam_rssi_diff(mac_handle_t mac_handle, uint8_t vdev_id,
|
||||
uint8_t roam_rssi_diff)
|
||||
{
|
||||
@@ -6470,21 +6457,6 @@ QDF_STATUS sme_set_roam_opportunistic_scan_threshold_diff(
|
||||
return status;
|
||||
}
|
||||
|
||||
/*
|
||||
* sme_get_roam_opportunistic_scan_threshold_diff()
|
||||
* gets Opportunistic Scan threshold diff
|
||||
* This is a synchronous call
|
||||
*
|
||||
* mac_handle - The handle returned by mac_open
|
||||
* Return uint8_t - nOpportunisticThresholdDiff
|
||||
*/
|
||||
uint8_t sme_get_roam_opportunistic_scan_threshold_diff(mac_handle_t mac_handle)
|
||||
{
|
||||
struct mac_context *mac = MAC_CONTEXT(mac_handle);
|
||||
|
||||
return mac->mlme_cfg->lfr.opportunistic_scan_threshold_diff;
|
||||
}
|
||||
|
||||
/*
|
||||
* sme_set_roam_rescan_rssi_diff() - Update roam rescan rssi diff
|
||||
* This function is called through dynamic setConfig callback function
|
||||
|
مرجع در شماره جدید
Block a user