summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPoddar, Siddarth <siddpodd@codeaurora.org>2017-02-22 11:44:44 +0530
committerqcabuildsw <qcabuildsw@localhost>2017-02-23 02:33:41 -0800
commitd37ad761c3c4f2d8834ed4f012c6ea6979c30a04 (patch)
tree3e23403281e5802c4c2978ba2c99b0d20df6e597
parentd2c83bfe1c37d817bc567d559759f7c26321bc6d (diff)
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
-rw-r--r--core/hdd/src/wlan_hdd_main.c7
-rw-r--r--core/hdd/src/wlan_hdd_power.c3
2 files changed, 3 insertions, 7 deletions
diff --git a/core/hdd/src/wlan_hdd_main.c b/core/hdd/src/wlan_hdd_main.c
index 8e48cd95e11f..225d2cad9fe0 100644
--- a/core/hdd/src/wlan_hdd_main.c
+++ b/core/hdd/src/wlan_hdd_main.c
@@ -7918,6 +7918,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);
@@ -8453,10 +8456,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;
diff --git a/core/hdd/src/wlan_hdd_power.c b/core/hdd/src/wlan_hdd_power.c
index 7e43dfffd10e..087eb16e1946 100644
--- a/core/hdd/src/wlan_hdd_power.c
+++ b/core/hdd/src/wlan_hdd_power.c
@@ -1654,9 +1654,6 @@ QDF_STATUS hdd_wlan_re_init(void)
hdd_lpass_notify_start(pHddCtx);
- if (cds_is_packet_log_enabled())
- hdd_pktlog_enable_disable(pHddCtx, true, 0, 0);
-
hdd_err("WLAN host driver reinitiation completed!");
goto success;