qcacmn: Enable IPA if enabled in platform driver and ini
Enable IPA only if it is enabled from both platform driver and ini file. Change-Id: Ifc4bcd2c5b29b91c0eb72a844906cf11a65686e4 CRs-Fixed: 3148731
This commit is contained in:
@@ -17,6 +17,7 @@
|
||||
* PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
#include "wlan_ipa_ucfg_api.h"
|
||||
#if defined(CONFIG_HL_SUPPORT)
|
||||
#include "wlan_tgt_def_config_hl.h"
|
||||
#else
|
||||
@@ -1719,8 +1720,16 @@ static void
|
||||
wlan_soc_ipa_cfg_attach(struct cdp_ctrl_objmgr_psoc *psoc,
|
||||
struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx)
|
||||
{
|
||||
wlan_cfg_ctx->ipa_enabled = (cfg_get(psoc, CFG_DP_IPA_OFFLOAD_CONFIG) &
|
||||
WLAN_CFG_IPA_ENABLE_MASK);
|
||||
if (ucfg_ipa_get_pld_enable()) {
|
||||
wlan_cfg_ctx->ipa_enabled =
|
||||
(cfg_get(psoc, CFG_DP_IPA_OFFLOAD_CONFIG) &
|
||||
WLAN_CFG_IPA_ENABLE_MASK);
|
||||
dp_info("is IPA enabled from ini: %d",
|
||||
wlan_cfg_ctx->ipa_enabled);
|
||||
} else {
|
||||
wlan_cfg_ctx->ipa_enabled = false;
|
||||
dp_info("IPA disabled from platform driver");
|
||||
}
|
||||
wlan_cfg_ctx->ipa_tx_ring_size =
|
||||
cfg_get(psoc, CFG_DP_IPA_TX_RING_SIZE);
|
||||
wlan_cfg_ctx->ipa_tx_comp_ring_size =
|
||||
@@ -1743,8 +1752,16 @@ static void
|
||||
wlan_soc_ipa_cfg_attach(struct cdp_ctrl_objmgr_psoc *psoc,
|
||||
struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx)
|
||||
{
|
||||
wlan_cfg_ctx->ipa_enabled = (cfg_get(psoc, CFG_DP_IPA_OFFLOAD_CONFIG) &
|
||||
WLAN_CFG_IPA_ENABLE_MASK);
|
||||
if (ucfg_ipa_get_pld_enable()) {
|
||||
wlan_cfg_ctx->ipa_enabled =
|
||||
(cfg_get(psoc, CFG_DP_IPA_OFFLOAD_CONFIG) &
|
||||
WLAN_CFG_IPA_ENABLE_MASK);
|
||||
dp_info("is IPA enabled from ini: %d",
|
||||
wlan_cfg_ctx->ipa_enabled);
|
||||
} else {
|
||||
wlan_cfg_ctx->ipa_enabled = false;
|
||||
dp_info("IPA disabled from platform driver");
|
||||
}
|
||||
wlan_cfg_ctx->ipa_tx_ring_size =
|
||||
cfg_get(psoc, CFG_DP_IPA_TX_RING_SIZE);
|
||||
wlan_cfg_ctx->ipa_tx_comp_ring_size =
|
||||
|
Reference in New Issue
Block a user