Эх сурвалжийг харах

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
Tiger Yu 7 жил өмнө
parent
commit
086b6995fe

+ 3 - 1
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 =