qcacld-3.0: Rename nEmptyScanRefreshPeriod
The Linux Coding Style frowns upon mixed-case names and so-called Hungarian notation, so rename nEmptyScanRefreshPeriod to be compliant. Change-Id: Iaf3d2ea3dc66c79c7e0e9f5ec42f013efd95f938 CRs-Fixed: 2408523
This commit is contained in:

committed by
nshrivas

orang tua
30192416af
melakukan
9625945e77
@@ -3056,7 +3056,7 @@ static int drv_cmd_get_roam_scan_period(struct hdd_adapter *adapter,
|
||||
struct hdd_priv_data *priv_data)
|
||||
{
|
||||
int ret = 0;
|
||||
uint16_t nEmptyScanRefreshPeriod =
|
||||
uint16_t empty_scan_refresh_period =
|
||||
sme_get_empty_scan_refresh_period(hdd_ctx->mac_handle);
|
||||
char extra[32];
|
||||
uint8_t len;
|
||||
@@ -3064,11 +3064,11 @@ static int drv_cmd_get_roam_scan_period(struct hdd_adapter *adapter,
|
||||
qdf_mtrace(QDF_MODULE_ID_HDD, QDF_MODULE_ID_HDD,
|
||||
TRACE_CODE_HDD_GETROAMSCANPERIOD_IOCTL,
|
||||
adapter->vdev_id,
|
||||
nEmptyScanRefreshPeriod);
|
||||
empty_scan_refresh_period);
|
||||
|
||||
len = scnprintf(extra, sizeof(extra), "%s %d",
|
||||
"GETROAMSCANPERIOD",
|
||||
(nEmptyScanRefreshPeriod / 1000));
|
||||
(empty_scan_refresh_period / 1000));
|
||||
/* Returned value is in units of seconds */
|
||||
len = QDF_MIN(priv_data->total_len, len + 1);
|
||||
if (copy_to_user(priv_data->buf, &extra, len)) {
|
||||
|
@@ -807,7 +807,7 @@ QDF_STATUS sme_set_neighbor_scan_refresh_period(mac_handle_t mac_handle,
|
||||
uint16_t sme_get_neighbor_scan_refresh_period(mac_handle_t mac_handle);
|
||||
uint16_t sme_get_empty_scan_refresh_period(mac_handle_t mac_handle);
|
||||
QDF_STATUS sme_update_empty_scan_refresh_period(mac_handle_t mac_handle,
|
||||
uint8_t sessionId, uint16_t nEmptyScanRefreshPeriod);
|
||||
uint8_t sessionId, uint16_t empty_scan_refresh_period);
|
||||
QDF_STATUS sme_set_neighbor_scan_min_chan_time(mac_handle_t mac_handle,
|
||||
const uint16_t nNeighborScanMinChanTime,
|
||||
uint8_t sessionId);
|
||||
|
@@ -6671,21 +6671,21 @@ uint16_t sme_get_empty_scan_refresh_period(mac_handle_t mac_handle)
|
||||
|
||||
/*
|
||||
* sme_update_empty_scan_refresh_period
|
||||
* Update nEmptyScanRefreshPeriod
|
||||
* Update empty_scan_refresh_period
|
||||
* This function is called through dynamic setConfig callback function
|
||||
* to configure nEmptyScanRefreshPeriod
|
||||
* to configure empty_scan_refresh_period
|
||||
* Usage: adb shell iwpriv wlan0 setConfig
|
||||
* nEmptyScanRefreshPeriod=[0 .. 60]
|
||||
* empty_scan_refresh_period=[0 .. 60]
|
||||
*
|
||||
* mac_handle: Opaque handle to the global MAC context
|
||||
* sessionId - Session Identifier
|
||||
* nEmptyScanRefreshPeriod - scan period following empty scan results.
|
||||
* empty_scan_refresh_period - scan period following empty scan results.
|
||||
* Return Success or failure
|
||||
*/
|
||||
|
||||
QDF_STATUS sme_update_empty_scan_refresh_period(mac_handle_t mac_handle,
|
||||
uint8_t sessionId, uint16_t
|
||||
nEmptyScanRefreshPeriod)
|
||||
empty_scan_refresh_period)
|
||||
{
|
||||
struct mac_context *mac = MAC_CONTEXT(mac_handle);
|
||||
QDF_STATUS status = QDF_STATUS_SUCCESS;
|
||||
@@ -6702,16 +6702,16 @@ QDF_STATUS sme_update_empty_scan_refresh_period(mac_handle_t mac_handle,
|
||||
pNeighborRoamInfo = &mac->roam.neighborRoamInfo[sessionId];
|
||||
QDF_TRACE(QDF_MODULE_ID_SME, QDF_TRACE_LEVEL_DEBUG,
|
||||
"LFR runtime successfully set roam scan period to %d -old value is %d - roam state is %s",
|
||||
nEmptyScanRefreshPeriod,
|
||||
empty_scan_refresh_period,
|
||||
mac->mlme_cfg->lfr.empty_scan_refresh_period,
|
||||
mac_trace_get_neighbour_roam_state(mac->roam.
|
||||
neighborRoamInfo
|
||||
[sessionId].
|
||||
neighborRoamState));
|
||||
mac->mlme_cfg->lfr.empty_scan_refresh_period =
|
||||
nEmptyScanRefreshPeriod;
|
||||
empty_scan_refresh_period;
|
||||
pNeighborRoamInfo->cfgParams.emptyScanRefreshPeriod =
|
||||
nEmptyScanRefreshPeriod;
|
||||
empty_scan_refresh_period;
|
||||
|
||||
if (mac->mlme_cfg->lfr.roam_scan_offload_enabled) {
|
||||
csr_roam_offload_scan(mac, sessionId,
|
||||
|
Reference in New Issue
Block a user