Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6c7d2c96 authored by Ananya Gupta's avatar Ananya Gupta Committed by Madan Koyyalamudi
Browse files

qcacld-3.0: Enable global IPA struct if enabled in pld and ini

Enable global IPA structure, g_ipa_config only if it is
enabled in both platform driver and ini file.

Change-Id: I1bd4e03eadf420f736bb91478b0f2e04bcd60ebd
CRs-Fixed: 3148820
parent 5d3540b3
Loading
Loading
Loading
Loading
+11 −3
Original line number Diff line number Diff line
/*
 * Copyright (c) 2018-2021 The Linux Foundation. All rights reserved.
 *
 * Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved.
 * Permission to use, copy, modify, and/or distribute this software for
 * any purpose with or without fee is hereby granted, provided that the
 * above copyright notice and this permission notice appear in all
@@ -754,6 +754,7 @@ void ipa_fw_rejuvenate_send_msg(struct wlan_objmgr_pdev *pdev)

void ipa_component_config_update(struct wlan_objmgr_psoc *psoc)
{
	struct device *dev = wlan_psoc_get_qdf_dev(psoc)->dev;
	QDF_STATUS status;

	status = ipa_config_mem_alloc();
@@ -762,8 +763,15 @@ void ipa_component_config_update(struct wlan_objmgr_psoc *psoc)
		return;
	}

	if (!pld_is_ipa_offload_disabled(dev)) {
		g_ipa_config->ipa_config =
			cfg_get(psoc, CFG_DP_IPA_OFFLOAD_CONFIG);
		ipa_info("IPA ini configuration: 0x%x",
			 g_ipa_config->ipa_config);
	} else {
		g_ipa_config->ipa_config = 0;
		ipa_info("IPA disabled from platform driver");
	}
	g_ipa_config->desc_size =
		cfg_get(psoc, CFG_DP_IPA_DESC_SIZE);
	g_ipa_config->txbuf_count =