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
This commit is contained in:
gaurank kathpalia 2017-12-29 10:55:16 +05:30 • committed by snandini
commit 5efa73bb97

View file

@ -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)) {