summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRajeev Kumar <rajekuma@codeaurora.org>2017-09-05 13:42:41 -0700
committerRajeev Kumar <rajekuma@codeaurora.org>2017-09-05 13:48:43 -0700
commit21b1fa2bc33be3806f49a257c710089bc2649099 (patch)
tree2e61bdff087201711172c7460571056613767a0d
parente69be2a4837e9135d71e725eea1177807c0f73f3 (diff)
qcacld-3.0: Init hdd channel info only after mac context is available
HDD channel info is getting initialized before max context is created and leading to panic. Move HDD channel info initialization after mac context is created during startup. Change-Id: I34f7bdaeda20cfbfbb82c8bd9bd041f06446ac75 CRs-Fixed: 2104621
-rw-r--r--core/hdd/src/wlan_hdd_main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/hdd/src/wlan_hdd_main.c b/core/hdd/src/wlan_hdd_main.c
index 3f7e42124e37..0eea63413beb 100644
--- a/core/hdd/src/wlan_hdd_main.c
+++ b/core/hdd/src/wlan_hdd_main.c
@@ -7834,7 +7834,6 @@ static hdd_context_t *hdd_context_create(struct device *dev)
cds_set_multicast_logging(hdd_ctx->config->multicast_host_fw_msgs);
- wlan_hdd_init_chan_info(hdd_ctx);
ret = wlan_hdd_init_tx_rx_histogram(hdd_ctx);
if (ret)
goto err_deinit_hdd_context;
@@ -9781,6 +9780,8 @@ int hdd_wlan_startup(struct device *dev)
goto err_stop_modules;
}
+ wlan_hdd_init_chan_info(hdd_ctx);
+
ret = hdd_wiphy_init(hdd_ctx);
if (ret) {
hdd_err("Failed to initialize wiphy: %d", ret);