From 21b1fa2bc33be3806f49a257c710089bc2649099 Mon Sep 17 00:00:00 2001 From: Rajeev Kumar Date: Tue, 5 Sep 2017 13:42:41 -0700 Subject: 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 --- core/hdd/src/wlan_hdd_main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); -- cgit v1.2.3