From 5efa73bb9795b3e9b64417a73033325c8a1269c4 Mon Sep 17 00:00:00 2001 From: gaurank kathpalia Date: Fri, 29 Dec 2017 10:55:16 +0530 Subject: [PATCH] qcacld-3.0: Enable bss scoring logic for STA mode only In Api csr_prepare_scan_filter , set bss_scoring_required for only STA mode to sort the APs according to the scoring logic applied to Aps in scan results . Change-Id: Id85b046d3d4c9c54db928ad689418efc963303f8 CRs-Fixed: 2165464 --- core/sme/src/csr/csr_api_scan.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/core/sme/src/csr/csr_api_scan.c b/core/sme/src/csr/csr_api_scan.c index 67141e3dbd58..dfa298de6169 100644 --- a/core/sme/src/csr/csr_api_scan.c +++ b/core/sme/src/csr/csr_api_scan.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2011-2017 The Linux Foundation. All rights reserved. + * Copyright (c) 2011-2018 The Linux Foundation. All rights reserved. * * Previously licensed under the ISC license by Qualcomm Atheros, Inc. * @@ -86,7 +86,6 @@ #define PCL_ADVANTAGE 30 #define PCL_RSSI_THRESHOLD -75 - #define CSR_SCAN_IS_OVER_BSS_LIMIT(pMac) \ ((pMac)->scan.nBssLimit <= (csr_ll_count(&(pMac)->scan.scanResultList))) @@ -5311,6 +5310,11 @@ static QDF_STATUS csr_prepare_scan_filter(tpAniSirGlobal mac_ctx, filter->dot11_mode = pFilter->phyMode; + // enable bss scoring for only STA mode + if (pFilter->csrPersona == QDF_STA_MODE) + filter->bss_scoring_required = true; + else + filter->bss_scoring_required = false; if (!pFilter->BSSIDs.numOfBSSIDs) { if (policy_mgr_map_concurrency_mode( &pFilter->csrPersona, &new_mode)) {