qca-wifi: Move to wmi_unified_vdev_tlv cmn
TLV and non-TLV definitions of vdev mgr ops are in component_dev,
they are carved out to a separate file in cmn_dev/wmi for adapting
target_if/vdev mgr component, they are made part of same file
which conflicts tlv design. This change moves redundant definitions
from component_dev to cmn_dev.
Change-Id: Ia47268b4479dba33dc2eceabeadf16224154a6f7
CRs-Fixed: 2517019
diff --git a/wmi/inc/wmi_unified_ap_api.h b/wmi/inc/wmi_unified_ap_api.h
index 8dc898d..b9ef12d 100644
--- a/wmi/inc/wmi_unified_ap_api.h
+++ b/wmi/inc/wmi_unified_ap_api.h
@@ -507,20 +507,6 @@
struct wmi_host_peer_delete_response_event *param);
/**
- * wmi_extract_vdev_peer_delete_all_response_event() -
- * extract vdev id from peer delete all response event
- * @wmi_handle: wmi handle
- * @evt_buf: pointer to event buffer
- * @param: Pointer to hold evt buf
- *
- * Return: QDF_STATUS_SUCCESS for success or error code
- */
-QDF_STATUS wmi_extract_vdev_peer_delete_all_response_event(
- wmi_unified_t wmi_handle,
- uint8_t *evt_buf,
- struct wmi_host_vdev_peer_delete_all_response_event *param);
-
-/**
* wmi_send_bcn_offload_control_cmd - send beacon ofload control cmd to fw
* @wmi_hdl: wmi handle
* @bcn_ctrl_param: pointer to bcn_offload_control param
diff --git a/wmi/src/wmi_unified_ap_api.c b/wmi/src/wmi_unified_ap_api.c
index 5945a87..6fdf4c5 100644
--- a/wmi/src/wmi_unified_ap_api.c
+++ b/wmi/src/wmi_unified_ap_api.c
@@ -64,16 +64,6 @@
return QDF_STATUS_E_FAILURE;
}
-QDF_STATUS wmi_unified_beacon_send_cmd(wmi_unified_t wmi_handle,
- struct beacon_params *param)
-{
- if (wmi_handle->ops->send_beacon_send_cmd)
- return wmi_handle->ops->send_beacon_send_cmd(wmi_handle,
- param);
-
- return QDF_STATUS_E_FAILURE;
-}
-
QDF_STATUS wmi_unified_set_ctl_table_cmd_send(
wmi_unified_t wmi_handle,
struct ctl_table_params *param)
@@ -107,29 +97,6 @@
return QDF_STATUS_E_FAILURE;
}
-QDF_STATUS wmi_unified_vdev_config_ratemask_cmd_send(
- wmi_unified_t wmi_handle,
- struct config_ratemask_params *param)
-{
- if (wmi_handle->ops->send_vdev_config_ratemask_cmd)
- return wmi_handle->ops->send_vdev_config_ratemask_cmd(
- wmi_handle, param);
-
- return QDF_STATUS_E_FAILURE;
-}
-
-QDF_STATUS wmi_unified_vdev_set_neighbour_rx_cmd_send(
- wmi_unified_t wmi_handle,
- uint8_t macaddr[QDF_MAC_ADDR_SIZE],
- struct set_neighbour_rx_params *param)
-{
- if (wmi_handle->ops->send_vdev_set_neighbour_rx_cmd)
- return wmi_handle->ops->send_vdev_set_neighbour_rx_cmd(
- wmi_handle, macaddr, param);
-
- return QDF_STATUS_E_FAILURE;
-}
-
QDF_STATUS wmi_unified_nf_dbr_dbm_info_get_cmd_send(wmi_unified_t wmi_handle,
uint8_t mac_id)
{
@@ -191,28 +158,6 @@
return QDF_STATUS_E_FAILURE;
}
-QDF_STATUS wmi_extract_tbttoffset_num_vdevs(wmi_unified_t wmi_handle,
- void *evt_buf,
- uint32_t *num_vdevs)
-{
- if (wmi_handle->ops->extract_tbttoffset_num_vdevs)
- return wmi_handle->ops->extract_tbttoffset_num_vdevs(
- wmi_handle, evt_buf, num_vdevs);
-
- return QDF_STATUS_E_FAILURE;
-}
-
-QDF_STATUS wmi_extract_ext_tbttoffset_num_vdevs(wmi_unified_t wmi_handle,
- void *evt_buf,
- uint32_t *num_vdevs)
-{
- if (wmi_handle->ops->extract_ext_tbttoffset_num_vdevs)
- return wmi_handle->ops->extract_ext_tbttoffset_num_vdevs(
- wmi_handle, evt_buf, num_vdevs);
-
- return QDF_STATUS_E_FAILURE;
-}
-
QDF_STATUS wmi_extract_tbttoffset_update_params(
wmi_unified_t wmi_handle, void *evt_buf,
uint8_t idx, struct tbttoffset_params *tbtt_param)
@@ -317,18 +262,6 @@
return QDF_STATUS_E_FAILURE;
}
-QDF_STATUS wmi_unified_send_multiple_vdev_restart_req_cmd(
- wmi_unified_t wmi_handle,
- struct multiple_vdev_restart_params *param)
-{
- if (wmi_handle->ops->send_multiple_vdev_restart_req_cmd)
- return wmi_handle->ops->send_multiple_vdev_restart_req_cmd(
- wmi_handle,
- param);
-
- return QDF_STATUS_E_FAILURE;
-}
-
QDF_STATUS wmi_extract_wds_addr_event(
wmi_unified_t wmi_handle, void *evt_buf,
uint16_t len, wds_addr_event_t *wds_ev)
@@ -386,20 +319,6 @@
return QDF_STATUS_E_FAILURE;
}
-QDF_STATUS wmi_extract_vdev_peer_delete_all_response_event(
- wmi_unified_t wmi_handle,
- uint8_t *evt_buf,
- struct wmi_host_vdev_peer_delete_all_response_event *param)
-{
- if (wmi_handle->ops->extract_vdev_peer_delete_all_response_event)
- return
- wmi_handle->ops->extract_vdev_peer_delete_all_response_event(
- wmi_handle,
- evt_buf, param);
-
- return QDF_STATUS_E_FAILURE;
-}
-
QDF_STATUS wmi_unified_peer_ft_roam_send(wmi_unified_t wmi_handle,
uint8_t peer_addr[QDF_MAC_ADDR_SIZE],
uint8_t vdev_id)
@@ -584,39 +503,6 @@
return QDF_STATUS_E_FAILURE;
}
-QDF_STATUS wmi_extract_vdev_start_resp(
- wmi_unified_t wmi_handle, void *evt_buf,
- wmi_host_vdev_start_resp *vdev_rsp)
-{
- if (wmi_handle->ops->extract_vdev_start_resp)
- return wmi_handle->ops->extract_vdev_start_resp(wmi_handle,
- evt_buf, vdev_rsp);
-
- return QDF_STATUS_E_FAILURE;
-}
-
-QDF_STATUS wmi_extract_vdev_delete_resp(
- wmi_unified_t wmi_handle, void *evt_buf,
- struct wmi_host_vdev_delete_resp *delete_rsp)
-{
- if (wmi_handle->ops->extract_vdev_delete_resp)
- return wmi_handle->ops->extract_vdev_delete_resp(wmi_handle,
- evt_buf, delete_rsp);
-
- return QDF_STATUS_E_FAILURE;
-}
-
-QDF_STATUS wmi_extract_vdev_stopped_param(wmi_unified_t wmi_handle,
- void *evt_buf,
- uint32_t *vdev_id)
-{
- if (wmi_handle->ops->extract_vdev_stopped_param)
- return wmi_handle->ops->extract_vdev_stopped_param(wmi_handle,
- evt_buf, vdev_id);
-
- return QDF_STATUS_E_FAILURE;
-}
-
QDF_STATUS wmi_extract_mgmt_tx_compl_param(
wmi_unified_t wmi_handle, void *evt_buf,
wmi_host_mgmt_tx_compl_event *param)
diff --git a/wmi/src/wmi_unified_ap_tlv.c b/wmi/src/wmi_unified_ap_tlv.c
index 6064f3c..d05e57d 100644
--- a/wmi/src/wmi_unified_ap_tlv.c
+++ b/wmi/src/wmi_unified_ap_tlv.c
@@ -201,54 +201,6 @@
return QDF_STATUS_SUCCESS;
}
-static QDF_STATUS send_beacon_send_cmd_tlv(wmi_unified_t wmi_handle,
- struct beacon_params *param)
-{
- QDF_STATUS ret;
- wmi_bcn_send_from_host_cmd_fixed_param *cmd;
- wmi_buf_t wmi_buf;
- qdf_dma_addr_t dma_addr;
- uint32_t dtim_flag = 0;
-
- wmi_buf = wmi_buf_alloc(wmi_handle, sizeof(*cmd));
- if (!wmi_buf) {
- WMI_LOGE("%s : wmi_buf_alloc failed", __func__);
- return QDF_STATUS_E_NOMEM;
- }
- if (param->is_dtim_count_zero) {
- dtim_flag |= WMI_BCN_SEND_DTIM_ZERO;
- if (param->is_bitctl_reqd) {
- /* deliver CAB traffic in next DTIM beacon */
- dtim_flag |= WMI_BCN_SEND_DTIM_BITCTL_SET;
- }
- }
- cmd = (wmi_bcn_send_from_host_cmd_fixed_param *)wmi_buf_data(wmi_buf);
- WMITLV_SET_HDR(&cmd->tlv_header,
- WMITLV_TAG_STRUC_wmi_bcn_send_from_host_cmd_fixed_param,
- WMITLV_GET_STRUCT_TLVLEN
- (wmi_bcn_send_from_host_cmd_fixed_param));
- cmd->vdev_id = param->vdev_id;
- cmd->data_len = qdf_nbuf_len(param->wbuf);
- cmd->frame_ctrl = param->frame_ctrl;
- cmd->dtim_flag = dtim_flag;
- dma_addr = qdf_nbuf_get_frag_paddr(param->wbuf, 0);
- cmd->frag_ptr_lo = qdf_get_lower_32_bits(dma_addr);
-#if defined(HTT_PADDR64)
- cmd->frag_ptr_hi = qdf_get_upper_32_bits(dma_addr) & 0x1F;
-#endif
- cmd->bcn_antenna = param->bcn_txant;
-
- wmi_mtrace(WMI_PDEV_SEND_BCN_CMDID, cmd->vdev_id, 0);
- ret = wmi_unified_cmd_send(wmi_handle,
- wmi_buf, sizeof(*cmd), WMI_PDEV_SEND_BCN_CMDID);
- if (ret != QDF_STATUS_SUCCESS) {
- WMI_LOGE("%s: Failed to send bcn: %d", __func__, ret);
- wmi_buf_free(wmi_buf);
- }
-
- return ret;
-}
-
/**
* send_set_ctl_table_cmd_tlv() - send ctl table cmd to fw
* @wmi_handle: wmi handle
@@ -543,95 +495,6 @@
}
/**
- * send_vdev_config_ratemask_cmd_tlv() - config ratemask param in fw
- * @wmi_handle: wmi handle
- * @param: pointer to hold config ratemask params
- *
- * @return QDF_STATUS_SUCCESS on success and -ve on failure.
- */
-static QDF_STATUS send_vdev_config_ratemask_cmd_tlv(wmi_unified_t wmi_handle,
- struct config_ratemask_params *param)
-{
- wmi_vdev_config_ratemask_cmd_fixed_param *cmd;
- wmi_buf_t buf;
- int32_t len = sizeof(*cmd);
-
- buf = wmi_buf_alloc(wmi_handle, len);
- if (!buf) {
- WMI_LOGE("%s:wmi_buf_alloc failed", __func__);
- return QDF_STATUS_E_FAILURE;
- }
- cmd = (wmi_vdev_config_ratemask_cmd_fixed_param *)wmi_buf_data(buf);
- WMITLV_SET_HDR(&cmd->tlv_header,
- WMITLV_TAG_STRUC_wmi_vdev_config_ratemask_fixed_param,
- WMITLV_GET_STRUCT_TLVLEN(
- wmi_vdev_config_ratemask_cmd_fixed_param));
- cmd->vdev_id = param->vdev_id;
- cmd->type = param->type;
- cmd->mask_lower32 = param->lower32;
- cmd->mask_higher32 = param->higher32;
- cmd->mask_lower32_2 = param->lower32_2;
- WMI_LOGI("Setting vdev ratemask vdev id = 0x%X, type = 0x%X"
- "mask_l32 = 0x%X mask_h32 = 0x%X mask_l32_2 = 0x%X",
- param->vdev_id, param->type, param->lower32,
- param->higher32, param->lower32_2);
-
- wmi_mtrace(WMI_VDEV_RATEMASK_CMDID, cmd->vdev_id, 0);
- if (wmi_unified_cmd_send(wmi_handle, buf, len,
- WMI_VDEV_RATEMASK_CMDID)) {
- WMI_LOGE("Seting vdev ratemask failed");
- wmi_buf_free(buf);
- return QDF_STATUS_E_FAILURE;
- }
-
- return QDF_STATUS_SUCCESS;
-}
-
-/**
- * send_vdev_set_neighbour_rx_cmd_tlv() - set neighbour rx param in fw
- * @wmi_handle: wmi handle
- * @macaddr: vdev mac address
- * @param: pointer to hold neigbour rx param
- *
- * @return QDF_STATUS_SUCCESS on success and -ve on failure.
- */
-static QDF_STATUS send_vdev_set_neighbour_rx_cmd_tlv(wmi_unified_t wmi_handle,
- uint8_t macaddr[QDF_MAC_ADDR_SIZE],
- struct set_neighbour_rx_params *param)
-{
- wmi_vdev_filter_nrp_config_cmd_fixed_param *cmd;
- wmi_buf_t buf;
- int32_t len = sizeof(*cmd);
-
- buf = wmi_buf_alloc(wmi_handle, len);
- if (!buf) {
- WMI_LOGE("%s:wmi_buf_alloc failed", __func__);
- return QDF_STATUS_E_FAILURE;
- }
- cmd = (wmi_vdev_filter_nrp_config_cmd_fixed_param *)wmi_buf_data(buf);
- WMITLV_SET_HDR(&cmd->tlv_header,
- WMITLV_TAG_STRUC_wmi_vdev_filter_nrp_config_cmd_fixed_param,
- WMITLV_GET_STRUCT_TLVLEN(
- wmi_vdev_filter_nrp_config_cmd_fixed_param));
- cmd->vdev_id = param->vdev_id;
- cmd->bssid_idx = param->idx;
- cmd->action = param->action;
- cmd->type = param->type;
- WMI_CHAR_ARRAY_TO_MAC_ADDR(macaddr, &cmd->addr);
- cmd->flag = 0;
-
- wmi_mtrace(WMI_VDEV_FILTER_NEIGHBOR_RX_PACKETS_CMDID, cmd->vdev_id, 0);
- if (wmi_unified_cmd_send(wmi_handle, buf, len,
- WMI_VDEV_FILTER_NEIGHBOR_RX_PACKETS_CMDID)) {
- WMI_LOGE("Failed to set neighbour rx param");
- wmi_buf_free(buf);
- return QDF_STATUS_E_FAILURE;
- }
-
- return QDF_STATUS_SUCCESS;
-}
-
-/**
* send_nf_dbr_dbm_info_get_cmd_tlv() - send request to get nf to fw
* @wmi_handle: wmi handle
* @mac_id: radio context
@@ -941,122 +804,6 @@
}
/**
- * extract_tbttoffset_num_vdevs_tlv() - extract tbtt offset num vdev
- * @wmi_handle: wmi handle
- * @param evt_buf: pointer to event buffer
- * @param num_vdevs: Pointer to hold num vdev
- *
- * Return: QDF_STATUS_SUCCESS for success or error code
- */
-static QDF_STATUS extract_tbttoffset_num_vdevs_tlv(void *wmi_hdl,
- void *evt_buf, uint32_t *num_vdevs)
-{
- WMI_TBTTOFFSET_UPDATE_EVENTID_param_tlvs *param_buf;
- wmi_tbtt_offset_event_fixed_param *tbtt_offset_event;
- uint32_t vdev_map;
-
- param_buf = (WMI_TBTTOFFSET_UPDATE_EVENTID_param_tlvs *)evt_buf;
- if (!param_buf) {
- qdf_print("Invalid tbtt update ext event buffer");
- return QDF_STATUS_E_INVAL;
- }
- tbtt_offset_event = param_buf->fixed_param;
- vdev_map = tbtt_offset_event->vdev_map;
- *num_vdevs = wmi_vdev_map_to_num_vdevs(vdev_map);
-
- return QDF_STATUS_SUCCESS;
-}
-
-/**
- * extract_ext_tbttoffset_num_vdevs_tlv() - extract ext tbtt offset num vdev
- * @wmi_handle: wmi handle
- * @param evt_buf: pointer to event buffer
- * @param num_vdevs: Pointer to hold num vdev
- *
- * Return: QDF_STATUS_SUCCESS for success or error code
- */
-static QDF_STATUS extract_ext_tbttoffset_num_vdevs_tlv(void *wmi_hdl,
- void *evt_buf, uint32_t *num_vdevs)
-{
- WMI_TBTTOFFSET_EXT_UPDATE_EVENTID_param_tlvs *param_buf;
- wmi_tbtt_offset_ext_event_fixed_param *tbtt_offset_ext_event;
-
- param_buf = (WMI_TBTTOFFSET_EXT_UPDATE_EVENTID_param_tlvs *)evt_buf;
- if (!param_buf) {
- qdf_print("Invalid tbtt update ext event buffer");
- return QDF_STATUS_E_INVAL;
- }
- tbtt_offset_ext_event = param_buf->fixed_param;
-
- *num_vdevs = tbtt_offset_ext_event->num_vdevs;
-
- return QDF_STATUS_SUCCESS;
-}
-
-/**
- * extract_tbttoffset_update_params_tlv() - extract tbtt offset param
- * @wmi_handle: wmi handle
- * @param evt_buf: pointer to event buffer
- * @param idx: Index referring to a vdev
- * @param tbtt_param: Pointer to tbttoffset event param
- *
- * Return: QDF_STATUS_SUCCESS for success or error code
- */
-static QDF_STATUS extract_tbttoffset_update_params_tlv(void *wmi_hdl,
- void *evt_buf, uint8_t idx,
- struct tbttoffset_params *tbtt_param)
-{
- WMI_TBTTOFFSET_UPDATE_EVENTID_param_tlvs *param_buf;
- wmi_tbtt_offset_event_fixed_param *tbtt_offset_event;
- uint32_t vdev_map;
-
- param_buf = (WMI_TBTTOFFSET_UPDATE_EVENTID_param_tlvs *) evt_buf;
- if (!param_buf) {
- qdf_print("Invalid tbtt update event buffer");
- return QDF_STATUS_E_INVAL;
- }
-
- tbtt_offset_event = param_buf->fixed_param;
- vdev_map = tbtt_offset_event->vdev_map;
- tbtt_param->vdev_id = wmi_vdev_map_to_vdev_id(vdev_map, idx);
- if (tbtt_param->vdev_id == WLAN_INVALID_VDEV_ID)
- return QDF_STATUS_E_INVAL;
- tbtt_param->tbttoffset =
- param_buf->tbttoffset_list[tbtt_param->vdev_id];
-
- return QDF_STATUS_SUCCESS;
-}
-
-/**
- * extract_ext_tbttoffset_update_params_tlv() - extract ext tbtt offset param
- * @wmi_handle: wmi handle
- * @param evt_buf: pointer to event buffer
- * @param idx: Index referring to a vdev
- * @param tbtt_param: Pointer to tbttoffset event param
- *
- * Return: QDF_STATUS_SUCCESS for success or error code
- */
-static QDF_STATUS extract_ext_tbttoffset_update_params_tlv(void *wmi_hdl,
- void *evt_buf, uint8_t idx,
- struct tbttoffset_params *tbtt_param)
-{
- WMI_TBTTOFFSET_EXT_UPDATE_EVENTID_param_tlvs *param_buf;
- wmi_tbtt_offset_info *tbtt_offset_info;
-
- param_buf = (WMI_TBTTOFFSET_EXT_UPDATE_EVENTID_param_tlvs *)evt_buf;
- if (!param_buf) {
- qdf_print("Invalid tbtt update event buffer");
- return QDF_STATUS_E_INVAL;
- }
- tbtt_offset_info = ¶m_buf->tbtt_offset_info[idx];
-
- tbtt_param->vdev_id = tbtt_offset_info->vdev_id;
- tbtt_param->tbttoffset = tbtt_offset_info->tbttoffset;
-
- return QDF_STATUS_SUCCESS;
-}
-
-/**
* extract_swba_num_vdevs_tlv() - extract swba num vdevs from event
* @wmi_handle: wmi handle
* @param evt_buf: pointer to event buffer
@@ -1602,37 +1349,6 @@
return QDF_STATUS_SUCCESS;
}
-/*
- * extract_vdev_peer_delete_all_response_event_tlv() -
- * extract peer delete all response event
- * @wmi_handle: wmi handle
- * @param evt_buf: pointer to event buffer
- * @param pointer: Pointer to hold vdev_id of peer delete all response
- *
- * Return: QDF_STATUS_SUCCESS for success or error code
- */
-static QDF_STATUS extract_vdev_peer_delete_all_response_event_tlv(
- wmi_unified_t wmi_hdl,
- void *evt_buf,
- struct wmi_host_vdev_peer_delete_all_response_event *param)
-{
- WMI_VDEV_DELETE_ALL_PEER_RESP_EVENTID_param_tlvs *param_buf;
- wmi_vdev_delete_all_peer_resp_event_fixed_param *ev;
-
- param_buf = (WMI_VDEV_DELETE_ALL_PEER_RESP_EVENTID_param_tlvs *)evt_buf;
-
- ev = (wmi_vdev_delete_all_peer_resp_event_fixed_param *) param_buf->fixed_param;
- if (!ev) {
- WMI_LOGE("%s: Invalid peer_delete all response", __func__);
- return QDF_STATUS_E_FAILURE;
- }
-
- param->vdev_id = ev->vdev_id;
- param->status = ev->status;
-
- return QDF_STATUS_SUCCESS;
-}
-
/**
* extract_pdev_tpc_ev_param_tlv() - extract tpc param from event
* @wmi_handle: wmi handle
@@ -2466,114 +2182,6 @@
}
/**
- * extract_vdev_start_resp_tlv() - extract vdev start response
- * @wmi_handle: wmi handle
- * @param evt_buf: pointer to event buffer
- * @param vdev_rsp: Pointer to hold vdev response
- *
- * Return: QDF_STATUS_SUCCESS for success or error code
- */
-static QDF_STATUS extract_vdev_start_resp_tlv(wmi_unified_t wmi_handle,
- void *evt_buf, wmi_host_vdev_start_resp *vdev_rsp)
-{
- WMI_VDEV_START_RESP_EVENTID_param_tlvs *param_buf;
- wmi_vdev_start_response_event_fixed_param *ev;
-
- param_buf = (WMI_VDEV_START_RESP_EVENTID_param_tlvs *) evt_buf;
- if (!param_buf) {
- qdf_print("Invalid start response event buffer");
- return QDF_STATUS_E_INVAL;
- }
-
- ev = param_buf->fixed_param;
- if (!ev) {
- qdf_print("Invalid start response event buffer");
- return QDF_STATUS_E_INVAL;
- }
-
- qdf_mem_zero(vdev_rsp, sizeof(*vdev_rsp));
-
- vdev_rsp->vdev_id = ev->vdev_id;
- vdev_rsp->requestor_id = ev->requestor_id;
- switch (ev->resp_type) {
- case WMI_VDEV_START_RESP_EVENT:
- vdev_rsp->resp_type = WMI_HOST_VDEV_START_RESP_EVENT;
- break;
- case WMI_VDEV_RESTART_RESP_EVENT:
- vdev_rsp->resp_type = WMI_HOST_VDEV_RESTART_RESP_EVENT;
- break;
- default:
- qdf_print("Invalid start response event buffer");
- break;
- };
- vdev_rsp->status = ev->status;
- vdev_rsp->chain_mask = ev->chain_mask;
- vdev_rsp->smps_mode = ev->smps_mode;
- vdev_rsp->mac_id = ev->mac_id;
- vdev_rsp->cfgd_tx_streams = ev->cfgd_tx_streams;
- vdev_rsp->cfgd_rx_streams = ev->cfgd_rx_streams;
-
- return QDF_STATUS_SUCCESS;
-}
-
-/**
- * extract_vdev_delete_resp_tlv() - extract vdev delete response
- * @wmi_handle: wmi handle
- * @param evt_buf: pointer to event buffer
- * @param delete_rsp: Pointer to hold vdev delete response
- *
- * Return: QDF_STATUS_SUCCESS for success or error code
- */
-static QDF_STATUS extract_vdev_delete_resp_tlv(wmi_unified_t wmi_handle,
- void *evt_buf, struct wmi_host_vdev_delete_resp *delete_rsp)
-{
- WMI_VDEV_DELETE_RESP_EVENTID_param_tlvs *param_buf;
- wmi_vdev_delete_resp_event_fixed_param *ev;
-
- param_buf = (WMI_VDEV_DELETE_RESP_EVENTID_param_tlvs *) evt_buf;
- if (!param_buf) {
- WMI_LOGE("Invalid vdev delete response event buffer");
- return QDF_STATUS_E_INVAL;
- }
-
- ev = param_buf->fixed_param;
- if (!ev) {
- WMI_LOGE("Invalid vdev delete response event");
- return QDF_STATUS_E_INVAL;
- }
-
- qdf_mem_zero(delete_rsp, sizeof(*delete_rsp));
- delete_rsp->vdev_id = ev->vdev_id;
-
- return QDF_STATUS_SUCCESS;
-}
-
-/**
- * extract_vdev_stopped_param_tlv() - extract vdev stop param from event
- * @wmi_handle: wmi handle
- * @param evt_buf: pointer to event buffer
- * @param vdev_id: Pointer to hold vdev identifier
- *
- * Return: QDF_STATUS_SUCCESS for success or error code
- */
-static QDF_STATUS extract_vdev_stopped_param_tlv(wmi_unified_t wmi_handle,
- void *evt_buf, uint32_t *vdev_id)
-{
- WMI_VDEV_STOPPED_EVENTID_param_tlvs *param_buf;
- wmi_vdev_stopped_event_fixed_param *resp_event;
-
- param_buf = (WMI_VDEV_STOPPED_EVENTID_param_tlvs *) evt_buf;
- if (!param_buf) {
- WMI_LOGE("Invalid event buffer");
- return QDF_STATUS_E_INVAL;
- }
- resp_event = param_buf->fixed_param;
- *vdev_id = resp_event->vdev_id;
-
- return QDF_STATUS_SUCCESS;
-}
-
-/**
* extract_mgmt_tx_compl_param_tlv() - extract MGMT tx completion event params
* @wmi_handle: wmi handle
* @param evt_buf: pointer to event buffer
@@ -2776,14 +2384,10 @@
ops->send_peer_update_wds_entry_cmd =
send_peer_update_wds_entry_cmd_tlv;
ops->send_pdev_get_tpc_config_cmd = send_pdev_get_tpc_config_cmd_tlv;
- ops->send_beacon_send_cmd = send_beacon_send_cmd_tlv;
ops->send_set_ctl_table_cmd = send_set_ctl_table_cmd_tlv;
ops->send_set_mimogain_table_cmd = send_set_mimogain_table_cmd_tlv;
ops->send_packet_power_info_get_cmd =
send_packet_power_info_get_cmd_tlv;
- ops->send_vdev_config_ratemask_cmd = send_vdev_config_ratemask_cmd_tlv;
- ops->send_vdev_set_neighbour_rx_cmd =
- send_vdev_set_neighbour_rx_cmd_tlv;
ops->send_nf_dbr_dbm_info_get_cmd = send_nf_dbr_dbm_info_get_cmd_tlv;
ops->send_set_ht_ie_cmd = send_set_ht_ie_cmd_tlv;
ops->send_set_vht_ie_cmd = send_set_vht_ie_cmd_tlv;
@@ -2791,14 +2395,6 @@
ops->send_set_bcn_offload_quiet_mode_cmd =
send_set_bcn_offload_quiet_mode_cmd_tlv;
ops->send_bcn_offload_control_cmd = send_bcn_offload_control_cmd_tlv;
- ops->extract_tbttoffset_update_params =
- extract_tbttoffset_update_params_tlv;
- ops->extract_ext_tbttoffset_update_params =
- extract_ext_tbttoffset_update_params_tlv;
- ops->extract_tbttoffset_num_vdevs =
- extract_tbttoffset_num_vdevs_tlv;
- ops->extract_ext_tbttoffset_num_vdevs =
- extract_ext_tbttoffset_num_vdevs_tlv;
ops->extract_swba_num_vdevs = extract_swba_num_vdevs_tlv;
ops->extract_swba_tim_info = extract_swba_tim_info_tlv;
ops->extract_swba_quiet_info = extract_swba_quiet_info_tlv;
@@ -2813,8 +2409,6 @@
ops->extract_dcs_im_tgt_stats = extract_dcs_im_tgt_stats_tlv;
ops->extract_peer_delete_response_event =
extract_peer_delete_response_event_tlv;
- ops->extract_vdev_peer_delete_all_response_event =
- extract_vdev_peer_delete_all_response_event_tlv;
ops->extract_pdev_csa_switch_count_status =
extract_pdev_csa_switch_count_status_tlv;
ops->extract_pdev_tpc_ev_param = extract_pdev_tpc_ev_param_tlv;
@@ -2840,9 +2434,6 @@
ops->send_mcast_group_update_cmd = send_mcast_group_update_cmd_tlv;
ops->send_pdev_qvit_cmd = send_pdev_qvit_cmd_tlv;
ops->send_wmm_update_cmd = send_wmm_update_cmd_tlv;
- ops->extract_vdev_start_resp = extract_vdev_start_resp_tlv;
- ops->extract_vdev_delete_resp = extract_vdev_delete_resp_tlv;
- ops->extract_vdev_stopped_param = extract_vdev_stopped_param_tlv;
ops->extract_mgmt_tx_compl_param = extract_mgmt_tx_compl_param_tlv;
ops->extract_chan_info_event = extract_chan_info_event_tlv;
ops->extract_channel_hopping_event = extract_channel_hopping_event_tlv;
diff --git a/wmi/src/wmi_unified_non_tlv.c b/wmi/src/wmi_unified_non_tlv.c
index a5ea482..af55446 100644
--- a/wmi/src/wmi_unified_non_tlv.c
+++ b/wmi/src/wmi_unified_non_tlv.c
@@ -7394,7 +7394,7 @@
*
* Return: 0 for success or error code
*/
-static QDF_STATUS extract_tbttoffset_num_vdevs_non_tlv(void *wmi_hdl,
+static QDF_STATUS extract_tbttoffset_num_vdevs_non_tlv(wmi_unified_t wmi_hdl,
void *evt_buf,
uint32_t *num_vdevs)
{
@@ -7417,7 +7417,7 @@
*
* Return: 0 for success or error code
*/
-static QDF_STATUS extract_tbttoffset_update_params_non_tlv(void *wmi_hdl,
+static QDF_STATUS extract_tbttoffset_update_params_non_tlv(wmi_unified_t wmi_hdl,
void *evt_buf, uint8_t idx,
struct tbttoffset_params *tbtt_param)
{