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
This commit is contained in:
Vivek
2017-06-04 23:12:00 +05:30
committed by snandini
parent d9ac9a2abe
commit 57522058e9
9 changed files with 82 additions and 40 deletions

View File

@@ -18,6 +18,7 @@
*/
#include <target_if_son.h>
#include <target_if.h>
#include <wlan_lmac_if_def.h>
#include <wmi_unified_api.h>
#include <cdp_txrx_ctrl.h>
@@ -100,8 +101,8 @@ QDF_STATUS son_ol_send_null(struct wlan_objmgr_pdev *pdev,
param.vdev_id = wlan_vdev_get_id(vdev);
param.stats_id = WMI_HOST_REQUEST_INST_STAT;
return wmi_unified_stats_request_send(psoc->tgt_if_handle,
macaddr, &param);
return wmi_unified_stats_request_send(GET_WMI_HDL_FROM_PSOC(psoc),
macaddr, &param);
}
int son_ol_lmac_create(struct wlan_objmgr_pdev *pdev)