qcacmn: Replace void * wmi_hdl with abstract type (8/10)
Replace void * wmi handle with abstract type handles provided by wmi component Change-Id: I96309658dd12964c74062418a2b32deb1e915c10 CRs-Fixed: 2482632
This commit is contained in:
@@ -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
|
||||
@@ -27,14 +27,12 @@
|
||||
#include <wmi_unified_priv.h>
|
||||
#include <wmi_unified_reg_api.h>
|
||||
|
||||
QDF_STATUS wmi_extract_reg_chan_list_update_event(void *wmi_hdl,
|
||||
uint8_t *evt_buf,
|
||||
struct cur_regulatory_info
|
||||
*reg_info,
|
||||
uint32_t len)
|
||||
QDF_STATUS wmi_extract_reg_chan_list_update_event(
|
||||
wmi_unified_t wmi_handle,
|
||||
uint8_t *evt_buf,
|
||||
struct cur_regulatory_info *reg_info,
|
||||
uint32_t len)
|
||||
{
|
||||
struct wmi_unified *wmi_handle = (struct wmi_unified *)wmi_hdl;
|
||||
|
||||
if (wmi_handle && wmi_handle->ops->extract_reg_chan_list_update_event)
|
||||
return wmi_handle->ops->extract_reg_chan_list_update_event
|
||||
(wmi_handle,
|
||||
@@ -80,13 +78,12 @@ QDF_STATUS wmi_unified_send_stop_11d_scan_cmd(wmi_unified_t wmi_handle,
|
||||
}
|
||||
qdf_export_symbol(wmi_unified_send_stop_11d_scan_cmd);
|
||||
|
||||
QDF_STATUS wmi_extract_reg_11d_new_cc_event(void *wmi_hdl,
|
||||
QDF_STATUS wmi_extract_reg_11d_new_cc_event(
|
||||
wmi_unified_t wmi_handle,
|
||||
uint8_t *evt_buf,
|
||||
struct reg_11d_new_country *reg_11d_new_cc,
|
||||
uint32_t len)
|
||||
{
|
||||
struct wmi_unified *wmi_handle = (struct wmi_unified *)wmi_hdl;
|
||||
|
||||
if (wmi_handle && wmi_handle->ops->extract_reg_11d_new_country_event)
|
||||
return wmi_handle->ops->extract_reg_11d_new_country_event(
|
||||
wmi_handle, evt_buf, reg_11d_new_cc, len);
|
||||
@@ -95,11 +92,10 @@ QDF_STATUS wmi_extract_reg_11d_new_cc_event(void *wmi_hdl,
|
||||
}
|
||||
qdf_export_symbol(wmi_extract_reg_11d_new_cc_event);
|
||||
|
||||
QDF_STATUS wmi_unified_set_user_country_code_cmd_send(void *wmi_hdl,
|
||||
QDF_STATUS wmi_unified_set_user_country_code_cmd_send(
|
||||
wmi_unified_t wmi_handle,
|
||||
uint8_t pdev_id, struct cc_regdmn_s *rd)
|
||||
{
|
||||
struct wmi_unified *wmi_handle = (struct wmi_unified *) wmi_hdl;
|
||||
|
||||
if (wmi_handle->ops->send_user_country_code_cmd)
|
||||
return wmi_handle->ops->send_user_country_code_cmd(
|
||||
wmi_handle, pdev_id, rd);
|
||||
@@ -108,13 +104,12 @@ QDF_STATUS wmi_unified_set_user_country_code_cmd_send(void *wmi_hdl,
|
||||
}
|
||||
qdf_export_symbol(wmi_unified_set_user_country_code_cmd_send);
|
||||
|
||||
QDF_STATUS wmi_extract_reg_ch_avoid_event(void *wmi_hdl,
|
||||
QDF_STATUS wmi_extract_reg_ch_avoid_event(
|
||||
wmi_unified_t wmi_handle,
|
||||
uint8_t *evt_buf,
|
||||
struct ch_avoid_ind_type *ch_avoid_ind,
|
||||
uint32_t len)
|
||||
{
|
||||
struct wmi_unified *wmi_handle = (struct wmi_unified *)wmi_hdl;
|
||||
|
||||
if (wmi_handle && wmi_handle->ops->extract_reg_ch_avoid_event)
|
||||
return wmi_handle->ops->extract_reg_ch_avoid_event(
|
||||
wmi_handle, evt_buf, ch_avoid_ind, len);
|
||||
|
Reference in New Issue
Block a user