Эх сурвалжийг харах

qcacld-3.0: Move cfg ini based WMI command to hdd_wlan_start_modules

Move cfg ini based WMI pktlog enable command from hdd_wlan_startup
to hdd_wlan_start_modules during DRIVER_MODULES_OPENED state.
After hdd_wlan_startup, host starts the interface timer and if this
timer gets expired, then driver closes all the modules and cut down
the power to the chip.
On iface up, power on happens and modules are started again, and all
WMI configuration needs to be sent again to FW which happends as part
of hdd_wlan_start_modules.

CRs-Fixed: 2009995
Change-Id: I6d72e896532a6443150b1754d93ae06bf2edc3b3
Poddar, Siddarth 8 жил өмнө
parent
commit
66a4659be2

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

@@ -8029,6 +8029,9 @@ static int hdd_features_init(hdd_context_t *hdd_ctx, hdd_adapter_t *adapter)
 		goto deregister_frames;
 	}
 
+	if (cds_is_packet_log_enabled())
+		hdd_pktlog_enable_disable(hdd_ctx, true, 0, 0);
+
 	hddtxlimit.txPower2g = hdd_ctx->config->TxPower2g;
 	hddtxlimit.txPower5g = hdd_ctx->config->TxPower5g;
 	status = sme_txpower_limit(hdd_ctx->hHal, &hddtxlimit);
@@ -8489,10 +8492,6 @@ int hdd_wlan_startup(struct device *dev)
 	if (hdd_ctx->rps)
 		hdd_set_rps_cpu_mask(hdd_ctx);
 
-
-	if (cds_is_packet_log_enabled())
-		hdd_pktlog_enable_disable(hdd_ctx, true, 0, 0);
-
 	ret = hdd_register_notifiers(hdd_ctx);
 	if (ret)
 		goto err_close_adapters;

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

@@ -1563,9 +1563,6 @@ QDF_STATUS hdd_wlan_re_init(void)
 	if (QDF_IS_STATUS_ERROR(qdf_status))
 		goto err_cds_disable;
 
-	if (cds_is_packet_log_enabled())
-		hdd_pktlog_enable_disable(pHddCtx, true, 0, 0);
-
 	hdd_err("WLAN host driver reinitiation completed!");
 	goto success;