From cb5ce20e289081ff3dcaff57fe1c348833446a52 Mon Sep 17 00:00:00 2001 From: gaurank kathpalia Date: Fri, 29 Jun 2018 17:13:41 +0530 Subject: [PATCH] qcacmn: Remove DBS logic from scm_calculate_nss_score Driver calculates nss score for BSS, depending upon the current DBS status. Thus it does not give more preference to 2x2 and considers it the same as 1x1. But the DBS condition can change and driver can move to single mac. Fix to give more preference to 2x2 BSS so that better throughput can be achieved in single mac. Change-Id: Ib684abe423fd21a81cb13db5f741fdfbb750328d CRs-Fixed: 2271976 --- umac/scan/core/src/wlan_scan_bss_score.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/umac/scan/core/src/wlan_scan_bss_score.c b/umac/scan/core/src/wlan_scan_bss_score.c index 01c8b9685083..b71f02c44177 100644 --- a/umac/scan/core/src/wlan_scan_bss_score.c +++ b/umac/scan/core/src/wlan_scan_bss_score.c @@ -556,11 +556,6 @@ static int32_t scm_calculate_nss_score(struct wlan_objmgr_psoc *psoc, uint8_t sta_nss; sta_nss = score_config->nss; - -#ifdef WLAN_POLICY_MGR_ENABLE - if (policy_mgr_is_current_hwmode_dbs(psoc)) - sta_nss--; -#endif nss = ap_nss; if (sta_nss < nss) nss = sta_nss;