From 086b6995fe60c3a28e4282522a56d153cdae0164 Mon Sep 17 00:00:00 2001 From: Tiger Yu Date: Mon, 20 Nov 2017 16:33:43 +0800 Subject: [PATCH] qcacld-3.0: Fix target_type is incorrect in the hdd_context The target_type is incorrect in the hdd_context. Call hdd_wlan_update_target_info after calling bmi_download_firmware, which will get target_info from the target. Change-Id: I0fa9834f4adb1fccfbb0d450e2026188bc2be942 CRs-Fixed: 2146174 --- core/cds/src/cds_api.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/cds/src/cds_api.c b/core/cds/src/cds_api.c index 4931fdca714e..933d39b6c4f2 100644 --- a/core/cds/src/cds_api.c +++ b/core/cds/src/cds_api.c @@ -520,7 +520,6 @@ QDF_STATUS cds_open(struct wlan_objmgr_psoc *psoc) } hdd_enable_fastpath(hdd_ctx->config, scn); - hdd_wlan_update_target_info(hdd_ctx, scn); /* Initialize BMI and Download firmware */ ol_ctx = cds_get_context(QDF_MODULE_ID_BMI); @@ -530,6 +529,9 @@ QDF_STATUS cds_open(struct wlan_objmgr_psoc *psoc) "BMI FIALED status:%d", status); goto err_bmi_close; } + + hdd_wlan_update_target_info(hdd_ctx, scn); + htcInfo.pContext = ol_ctx; htcInfo.TargetFailure = ol_target_failure; htcInfo.TargetSendSuspendComplete =