qcacld-3.0: Check gIPAConfig before setting ipa flag to fw

Currently if kernel enable CONFIG_IPA3, wlan driver will directly
send IPA enabling flag to firmware, not checking gIPAConfig.
It lead to IPA disabled in driver but enabled in fw, causing fw crash
for some target like Genoa. 

Correct logic is to check gIPAConfig before configure firmware.

Change-Id: I6e85c6bf3831029826bf279237eac2cc3a1ff07f
CRs-Fixed: 2698953
This commit is contained in:
ngong
2020-06-01 14:12:11 +08:00
committed by nshrivas
parent e9d4b3c893
commit 9d23242e68

View File

@@ -103,6 +103,7 @@
#include "wlan_policy_mgr_i.h"
#include "target_if_psoc_timer_tx_ops.h"
#include <ftm_time_sync_ucfg_api.h>
#include "wlan_ipa_ucfg_api.h"
#ifdef DIRECT_BUF_RX_ENABLE
#include <target_if_direct_buf_rx_api.h>
@@ -234,7 +235,7 @@ static void wma_set_ipa_disable_config(
static void wma_set_ipa_disable_config(
target_resource_config *tgt_cfg)
{
tgt_cfg->ipa_disable = false;
tgt_cfg->ipa_disable = ucfg_ipa_is_enabled() ? false : true;
}
#endif