From 97d14e4122677fa0f69fb029d0f7e53ea3d5ba5b Mon Sep 17 00:00:00 2001 From: Vivek Date: Sun, 4 Jun 2017 23:12:00 +0530 Subject: [PATCH] qcacmn: Add target information details to target_iflayer Add a new target_psoc_info structure in the target if layer with the following members wmi_handle target_type target_version target_revision Also update the psoc data member tgt_if_handle to point to target_psoc_info instead of pointing to WMI handle directly. Updated all calls to psoc_get_tgt_if_handle to target_if_get_wmi_handle which inturn calls psoc_get_tgt_if_handle and getting the tgt_if_handle returns the WMI handle CRs-Fixed: 2048277 Change-Id: Icb02d5f3c09f7f9bb7eff4d814ef3ce90ddb84bd --- src/target_if_tdls.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/target_if_tdls.c b/src/target_if_tdls.c index 9f304f2bf2b8..af4255be5d71 100644 --- a/src/target_if_tdls.c +++ b/src/target_if_tdls.c @@ -91,7 +91,7 @@ target_if_tdls_update_fw_state(struct wlan_objmgr_psoc *psoc, else tdls_state = WMI_TDLS_DISABLE; - status = wmi_unified_update_fw_tdls_state_cmd(psoc->tgt_if_handle, + status = wmi_unified_update_fw_tdls_state_cmd(GET_WMI_HDL_FROM_PSOC(psoc), param, tdls_state); target_if_debug("vdev_id %d", param->vdev_id); @@ -111,7 +111,7 @@ target_if_tdls_set_offchan_mode(struct wlan_objmgr_psoc *psoc, { QDF_STATUS status; - status = wmi_unified_set_tdls_offchan_mode_cmd(psoc->tgt_if_handle, + status = wmi_unified_set_tdls_offchan_mode_cmd(GET_WMI_HDL_FROM_PSOC(psoc), params); return status; @@ -131,7 +131,7 @@ target_if_tdls_set_uapsd(struct wlan_objmgr_psoc *psoc, params->vdevid); return QDF_STATUS_SUCCESS; } - ret = wmi_unified_set_sta_uapsd_auto_trig_cmd(psoc->tgt_if_handle, + ret = wmi_unified_set_sta_uapsd_auto_trig_cmd(GET_WMI_HDL_FROM_PSOC(psoc), params); if (QDF_IS_STATUS_ERROR(ret)) @@ -144,7 +144,7 @@ QDF_STATUS target_if_tdls_register_event_handler(struct wlan_objmgr_psoc *psoc, void *arg) { - return wmi_unified_register_event(psoc->tgt_if_handle, + return wmi_unified_register_event(GET_WMI_HDL_FROM_PSOC(psoc), wmi_tdls_peer_event_id, target_if_tdls_event_handler); } @@ -153,7 +153,7 @@ QDF_STATUS target_if_tdls_unregister_event_handler(struct wlan_objmgr_psoc *psoc, void *arg) { - return wmi_unified_unregister_event(psoc->tgt_if_handle, + return wmi_unified_unregister_event(GET_WMI_HDL_FROM_PSOC(psoc), wmi_tdls_peer_event_id); }