From 9d47304b4f0f5373be6dfd5437269ecda3fda2fb Mon Sep 17 00:00:00 2001 From: Abhinav Kumar Date: Tue, 9 Jul 2019 12:35:33 +0530 Subject: [PATCH] qcacld-3.0: Set neighbor scan channel max time to 40 msec as default Currently, Driver has below configuration: 1. The default value of Neighbor scan channel max time = 30 msec 2. Probe deferral time = 15 msec and 3. The gap between each Probe Request (Probe repeat time) = 20 msec As per above roam scan params, after 15 msec of deferral time STA sends the first probe irrespective of OCE or non-OCE environment. So after the first probe, STA never sends the second probe because 15 msec + 20 msec = 35 msec which is beyond dwell time( 30 msec). Because of lower dwell time, many a time STA is not getting enough time to send the second probe request during a roam scan on the currently associated channel. In case when STA sends only one probe req, there is a lesser chance to receive Probe Response in a semi congested or congested environment. This results in not finding a candidate during a roaming scan. STA should have enough time to send 2 Probe Requests under any condition ( clean or noisy) irrespective of the OCE/non-OCE environment. Fix is to increase the default value of dwell time "gNeighborScanChannelMaxTime" to 40 msec for STA. Change-Id: I1bd52f5efe448ccb4ed4585e98aaf519379dd661 CRs-Fixed: 2467703 --- components/mlme/dispatcher/inc/cfg_mlme_lfr.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/mlme/dispatcher/inc/cfg_mlme_lfr.h b/components/mlme/dispatcher/inc/cfg_mlme_lfr.h index a3405156e6e9..2ba4ee7ea21d 100644 --- a/components/mlme/dispatcher/inc/cfg_mlme_lfr.h +++ b/components/mlme/dispatcher/inc/cfg_mlme_lfr.h @@ -1427,7 +1427,7 @@ * gNeighborScanChannelMaxTime - Set neighbor scan channel max time * @Min: 3 * @Max: 300 - * @Default: 30 + * @Default: 40 * * This ini is used to set the maximum time in secs spent on each * channel in LFR scan inside firmware. @@ -1444,7 +1444,7 @@ "gNeighborScanChannelMaxTime", \ 3, \ 300, \ - 30, \ + 40, \ CFG_VALUE_OR_DEFAULT, \ "Neighbor scan channel max time")