qcacmn: Fix for removal of void pointer usage

Add changes to remove usage of void pointer for wmi_handle
Instead use an opaque pointer(set 2)

Change-Id: I06a89adaf15c6b398dbc901518aa83927b7ca16a
CRs-Fixed: 2479298
This commit is contained in:
Akshay Kosigi
2019-06-13 11:37:51 +05:30
committed by nshrivas
parent 0ac9aafb9a
commit c36e354311
8 changed files with 536 additions and 570 deletions

View File

@@ -118,7 +118,7 @@ QDF_STATUS target_if_crypto_set_key(struct wlan_objmgr_vdev *vdev,
struct cdp_peer *peer = NULL;
uint8_t peer_id;
uint8_t def_tx_idx;
void *pdev_wmi_handle;
wmi_unified_t pdev_wmi_handle;
bool pairwise;
QDF_STATUS status;

View File

@@ -285,7 +285,7 @@ static QDF_STATUS target_if_dfs_set_phyerr_filter_offload(
bool dfs_phyerr_filter_offload)
{
QDF_STATUS status;
void *wmi_handle;
wmi_unified_t wmi_handle;
if (!pdev) {
target_if_err("null pdev");

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2017-2018 The Linux Foundation. All rights reserved.
* Copyright (c) 2017-2019 The Linux Foundation. All rights reserved.
*
* Permission to use, copy, modify, and/or distribute this software for
* any purpose with or without fee is hereby granted, provided that the
@@ -140,7 +140,7 @@ QDF_STATUS target_if_green_ap_enable_egap(
struct wlan_green_ap_egap_params *egap_params)
{
struct wlan_pdev_green_ap_ctx *green_ap_ctx;
void *wmi_hdl;
wmi_unified_t wmi_hdl;
if (!pdev) {
green_ap_err("pdev context passed is NULL");
@@ -175,7 +175,7 @@ QDF_STATUS target_if_green_ap_enable_egap(
QDF_STATUS target_if_green_ap_set_ps_on_off(struct wlan_objmgr_pdev *pdev,
bool value, uint8_t pdev_id)
{
void *wmi_hdl;
wmi_unified_t wmi_hdl;
if (!pdev) {
green_ap_err("pdev context passed is NULL");

View File

@@ -117,7 +117,8 @@ int init_deinit_populate_service_bitmap(void *wmi_handle, uint8_t *event,
*
* Return: zero on successful population of fw_version command or failure flag
*/
int init_deinit_populate_fw_version_cmd(void *wmi_handle, uint8_t *event);
int
init_deinit_populate_fw_version_cmd(wmi_unified_t wmi_handle, uint8_t *event);
/**
* init_deinit_populate_target_cap() - populate target cap

View File

@@ -142,7 +142,8 @@ int init_deinit_populate_service_bitmap(void *wmi_handle, uint8_t *event,
return 0;
}
int init_deinit_populate_fw_version_cmd(void *wmi_handle, uint8_t *event)
int init_deinit_populate_fw_version_cmd(wmi_unified_t wmi_handle,
uint8_t *event)
{
QDF_STATUS status;

View File

@@ -269,7 +269,7 @@ static QDF_STATUS wifi_pos_oem_data_req(struct wlan_objmgr_psoc *psoc,
struct oem_data_req *req)
{
QDF_STATUS status;
void *wmi_hdl = GET_WMI_HDL_FROM_PSOC(psoc);
wmi_unified_t wmi_hdl = GET_WMI_HDL_FROM_PSOC(psoc);
target_if_debug("Send oem data req to target");
@@ -564,7 +564,7 @@ static QDF_STATUS target_if_wifi_pos_cfg_fw(struct wlan_objmgr_psoc *psoc,
{
uint8_t i;
QDF_STATUS status;
void *wmi_hdl = GET_WMI_HDL_FROM_PSOC(psoc);
wmi_unified_t wmi_hdl = GET_WMI_HDL_FROM_PSOC(psoc);
wmi_oem_dma_ring_cfg_req_fixed_param cfg = {0};
if (!wmi_hdl) {