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
This commit is contained in:
Tiger Yu 2017-11-20 16:33:43 +08:00 • committed by snandini
commit 086b6995fe

View file

@ -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 =