diff options
| author | Selvaraj, Sridhar <sselvara@codeaurora.org> | 2017-02-21 10:36:15 +0530 |
|---|---|---|
| committer | qcabuildsw <qcabuildsw@localhost> | 2017-02-24 07:37:15 -0800 |
| commit | c91f39d708547f097f07199e3247500a2229c00d (patch) | |
| tree | 9ac43d7ea09dddb7f284f72fc4bb955b647797d6 | |
| parent | f3d449fbefc6f6de4b073b521eb878759026c24a (diff) | |
qcacld-3.0: Move channel avoidance event setting to hdd_features_init
Currently, enable/disable channel avoidance event based on INI is done
in hdd_wlan_startup. In power save scenarios, where WMI configuration
needs to be sent again to FW, channel avoidance event setting is not
sent.
Move the channel avoidance setting to hdd_features_init so that this
config is set properly to FW in power save cases as well.
Change-Id: I707054c44a882f6dd4a4a9df2b6821b93b724f7a
CRs-Fixed: 2009299
| -rw-r--r-- | core/hdd/src/wlan_hdd_main.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/core/hdd/src/wlan_hdd_main.c b/core/hdd/src/wlan_hdd_main.c index 05c256273b34..01dd9ee43239 100644 --- a/core/hdd/src/wlan_hdd_main.c +++ b/core/hdd/src/wlan_hdd_main.c @@ -7947,6 +7947,14 @@ static int hdd_features_init(hdd_context_t *hdd_ctx, hdd_adapter_t *adapter) goto deregister_cb; } } + if (hdd_ctx->config->goptimize_chan_avoid_event) { + status = sme_enable_disable_chanavoidind_event( + hdd_ctx->hHal, 0); + if (!QDF_IS_STATUS_SUCCESS(status)) { + hdd_err("Failed to disable Chan Avoidance Indication"); + goto deregister_cb; + } + } /* register P2P Listen Offload event callback */ if (wma_is_p2p_lo_capable()) @@ -8487,12 +8495,6 @@ int hdd_wlan_startup(struct device *dev) qdf_mc_timer_start(&hdd_ctx->iface_change_timer, hdd_ctx->config->iface_change_wait_time); - if (hdd_ctx->config->goptimize_chan_avoid_event) { - status = sme_enable_disable_chanavoidind_event( - hdd_ctx->hHal, 0); - if (!QDF_IS_STATUS_SUCCESS(status)) - hdd_err("Failed to disable Chan Avoidance Indication"); - } complete(&wlan_start_comp); goto success; |
