From e41d01d66722e96c4871605dd3ab7f519c70c014 Mon Sep 17 00:00:00 2001 From: Srinivas Dasari Date: Tue, 17 Sep 2019 15:31:38 +0530 Subject: [PATCH] qcacld-3.0: Update scan max chan time and period to roam info only Currently, neighbor scan max chan time and neighbor scan timer period are updated to global mac ctx when it's updated through DRIVER command. But the update should happen only to the neighbor roam info of the corresponding vdev. Change-Id: I264cf9ac7a1c7bf8c4fde25ad134993419db6052 CRs-Fixed: 2530337 --- core/sme/src/common/sme_api.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/core/sme/src/common/sme_api.c b/core/sme/src/common/sme_api.c index 1955a3946697..35fdc5d96af6 100644 --- a/core/sme/src/common/sme_api.c +++ b/core/sme/src/common/sme_api.c @@ -7018,13 +7018,11 @@ QDF_STATUS sme_set_neighbor_scan_max_chan_time(mac_handle_t mac_handle, QDF_TRACE(QDF_MODULE_ID_SME, QDF_TRACE_LEVEL_DEBUG, "LFR runtime successfully set channel max dwell time to %d - old value is %d - roam state is %s", nNeighborScanMaxChanTime, - mac->mlme_cfg->lfr.neighbor_scan_max_chan_time, + pNeighborRoamInfo->cfgParams.maxChannelScanTime, mac_trace_get_neighbour_roam_state(mac->roam. neighborRoamInfo [sessionId]. neighborRoamState)); - mac->mlme_cfg->lfr.neighbor_scan_max_chan_time = - nNeighborScanMaxChanTime; pNeighborRoamInfo->cfgParams.maxChannelScanTime = nNeighborScanMaxChanTime; if (mac->mlme_cfg->lfr.roam_scan_offload_enabled) { @@ -7247,13 +7245,11 @@ QDF_STATUS sme_set_neighbor_scan_period(mac_handle_t mac_handle, QDF_TRACE(QDF_MODULE_ID_SME, QDF_TRACE_LEVEL_DEBUG, "LFR runtime successfully set neighbor scan period to %d - old value is %d - roam state is %s", nNeighborScanPeriod, - mac->mlme_cfg->lfr.neighbor_scan_timer_period, + pNeighborRoamInfo->cfgParams.neighborScanPeriod, mac_trace_get_neighbour_roam_state(mac->roam. neighborRoamInfo [sessionId]. neighborRoamState)); - mac->mlme_cfg->lfr.neighbor_scan_timer_period = - nNeighborScanPeriod; pNeighborRoamInfo->cfgParams.neighborScanPeriod = nNeighborScanPeriod;