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)
This commit is contained in:
Krunal Soni 2016-10-27 17:25:23 -07:00 • committed by Gerrit - the friendly Code Review server
commit d292a6b8cd

View file

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