From d292a6b8cd843b8b09bbc9a1335dd626b879f99e Mon Sep 17 00:00:00 2001 From: Krunal Soni Date: Thu, 27 Oct 2016 17:25:23 -0700 Subject: [PATCH] qcacld-3.0: Enable Rx LDPC when DBS is disabled from INI As per new requirement, when DBS is disabled from INI, driver needs to enable Rx LDPC for all persona if it is supported by hardware and enabled from INI. CRs-Fixed: 1083379 Change-Id: I803ffd2c8035bd2604db7189f3d0734816c80d3f (cherry picked from commit 284064f72ae7a421a6d870c5c29d496fea23353f) --- core/sme/src/csr/csr_api_roam.c | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/core/sme/src/csr/csr_api_roam.c b/core/sme/src/csr/csr_api_roam.c index 0c784ba5b0a8..d9bbd0bda24d 100644 --- a/core/sme/src/csr/csr_api_roam.c +++ b/core/sme/src/csr/csr_api_roam.c @@ -14301,10 +14301,11 @@ QDF_STATUS csr_send_join_req_msg(tpAniSirGlobal pMac, uint32_t sessionId, } /* * If RX LDPC has been disabled for 2.4GHz channels and enabled - * for 5Ghz for STA like persona here is how to handle those - * cases here (by now channel has been decided). + * for 5Ghz for STA like persona then here is how to handle + * those cases (by now channel has been decided). */ - if (eSIR_INFRASTRUCTURE_MODE == csr_join_req->bsstype) + if (eSIR_INFRASTRUCTURE_MODE == csr_join_req->bsstype || + !wma_is_dbs_enable()) csr_set_ldpc_exception(pMac, pSession, pBssDescription->channelId, pMac->roam.configParam.rxLdpcEnable); @@ -15119,7 +15120,12 @@ QDF_STATUS csr_send_mb_start_bss_req_msg(tpAniSirGlobal pMac, uint32_t sessionId qdf_mem_copy(&pMsg->extendedRateSet, &pParam->extendedRateSet, sizeof(tSirMacRateSet)); - if (eSIR_IBSS_MODE == pMsg->bssType) + /* + * If RX LDPC has been disabled for 2.4GHz channels and enabled + * for 5Ghz for STA like persona then here is how to handle + * those cases (by now channel has been decided). + */ + if (eSIR_IBSS_MODE == pMsg->bssType || !wma_is_dbs_enable()) csr_set_ldpc_exception(pMac, pSession, pMsg->channelId, pMac->roam.configParam.rxLdpcEnable);