qcacld-3.0: Add WMI reference in PSOC and PSoc reference in WMI
Add WMI reference in PSOC and PSoc reference in WMI. Change-Id: Ib5bb685039162fe84bac8ed6c98f848f8c7460b7 CRs-Fixed: 2002028
This commit is contained in:
@@ -1924,7 +1924,7 @@ QDF_STATUS wma_open(struct wlan_objmgr_psoc *psoc, void *cds_context,
|
||||
ops.wma_process_fw_event_handler_cbk = wma_process_fw_event_handler;
|
||||
/* attach the wmi */
|
||||
wmi_handle = wmi_unified_attach(wma_handle, NULL,
|
||||
WMI_TLV_TARGET, use_cookie, &ops);
|
||||
WMI_TLV_TARGET, use_cookie, &ops, psoc);
|
||||
if (!wmi_handle) {
|
||||
WMA_LOGP("%s: failed to attach WMI", __func__);
|
||||
qdf_status = QDF_STATUS_E_NOMEM;
|
||||
@@ -1932,6 +1932,12 @@ QDF_STATUS wma_open(struct wlan_objmgr_psoc *psoc, void *cds_context,
|
||||
}
|
||||
|
||||
WMA_LOGA("WMA --> wmi_unified_attach - success");
|
||||
|
||||
/* set the wmi handle (as tgt_if_handle) in psoc */
|
||||
wlan_psoc_obj_lock(psoc);
|
||||
wlan_psoc_set_tgt_if_handle(psoc, wmi_handle);
|
||||
wlan_psoc_obj_unlock(psoc);
|
||||
|
||||
wmi_unified_register_event_handler(wmi_handle,
|
||||
WMI_SERVICE_READY_EVENTID,
|
||||
wma_rx_service_ready_event,
|
||||
|
Reference in New Issue
Block a user