Jelajahi Sumber

qcacld-3.0: Clear g_ipa_pld_enable if IPA disabled from pld

Enable IPA only if it is enabled in both platform driver
and ini file.
Clear g_ipa_pld_enable if disabled from pld.

Change-Id: I1bd4e03eadf420f736bb91478b0f2e04bcd60ebd
CRs-Fixed: 3148820
Ananya Gupta 3 tahun lalu
induk
melakukan
4231010286
1 mengubah file dengan 3 tambahan dan 0 penghapusan
  1. 3 0
      core/hdd/src/wlan_hdd_main.c

+ 3 - 0
core/hdd/src/wlan_hdd_main.c

@@ -4631,6 +4631,9 @@ int hdd_wlan_start_modules(struct hdd_context *hdd_ctx, bool reinit)
 			break;
 		}
 
+		if (pld_is_ipa_offload_disabled(qdf_dev->dev))
+			ucfg_ipa_set_pld_enable(false);
+
 		ucfg_ipa_component_config_update(hdd_ctx->psoc);
 
 		hdd_update_cds_ac_specs_params(hdd_ctx);