qcacmn: Remove WMA header file dependency to fix WIN compilation

Remove dependency of WMA header files in common wmi layer.

Change-Id: I705e3b8cbe048f846c819dc028667061a0ce3ce2
CRs-Fixed: 1008872
This commit is contained in:
Govind Singh
2016-06-21 14:33:26 +05:30
committed by Gerrit - the friendly Code Review server
parent 51b7a165a0
commit 224a7313f3
2 changed files with 15 additions and 32 deletions

View File

@@ -34,7 +34,6 @@
#include <osdep.h> #include <osdep.h>
#include "htc_api.h" #include "htc_api.h"
#include "wmi.h" #include "wmi.h"
#include "wma.h"
/* Following macro definitions use OS or platform specific functions */ /* Following macro definitions use OS or platform specific functions */

View File

@@ -28,8 +28,8 @@
#include "wmi_unified_tlv.h" #include "wmi_unified_tlv.h"
#include "wmi_unified_api.h" #include "wmi_unified_api.h"
#include "wmi.h" #include "wmi.h"
#include "wmi_version.h"
#include "wmi_unified_priv.h" #include "wmi_unified_priv.h"
#include "wma.h"
#include "wmi_version_whitelist.h" #include "wmi_version_whitelist.h"
/** /**
@@ -78,7 +78,7 @@ QDF_STATUS send_vdev_create_cmd_tlv(wmi_unified_t wmi_handle,
(num_bands * sizeof(wmi_vdev_txrx_streams))); (num_bands * sizeof(wmi_vdev_txrx_streams)));
buf_ptr += WMI_TLV_HDR_SIZE; buf_ptr += WMI_TLV_HDR_SIZE;
WMA_LOGD("%s: type %d, subtype %d, nss_2g %d, nss_5g %d", __func__, WMI_LOGD("%s: type %d, subtype %d, nss_2g %d, nss_5g %d", __func__,
param->type, param->subtype, param->type, param->subtype,
param->nss_2g, param->nss_5g); param->nss_2g, param->nss_5g);
txrx_streams = (wmi_vdev_txrx_streams *)buf_ptr; txrx_streams = (wmi_vdev_txrx_streams *)buf_ptr;
@@ -1601,7 +1601,6 @@ QDF_STATUS send_mgmt_cmd_tlv(wmi_unified_t wmi_handle,
wmi_mgmt_tx_send_cmd_fixed_param *cmd; wmi_mgmt_tx_send_cmd_fixed_param *cmd;
int32_t cmd_len; int32_t cmd_len;
uint64_t dma_addr; uint64_t dma_addr;
struct wmi_desc_t *wmi_desc = NULL;
void *qdf_ctx = param->qdf_ctx; void *qdf_ctx = param->qdf_ctx;
uint8_t *bufp; uint8_t *bufp;
int32_t bufp_len = (param->frm_len < mgmt_tx_dl_frm_len) ? param->frm_len : int32_t bufp_len = (param->frm_len < mgmt_tx_dl_frm_len) ? param->frm_len :
@@ -1625,16 +1624,7 @@ QDF_STATUS send_mgmt_cmd_tlv(wmi_unified_t wmi_handle,
cmd->vdev_id = param->vdev_id; cmd->vdev_id = param->vdev_id;
wmi_desc = param->wmi_desc; cmd->desc_id = param->desc_id;
if (!wmi_desc) {
WMI_LOGE("%s: Failed to get wmi_desc", __func__);
goto err1;
}
wmi_desc->nbuf = param->tx_frame;
wmi_desc->tx_cmpl_cb = param->tx_complete_cb;
wmi_desc->ota_post_proc_cb = param->tx_ota_post_proc_cb;
cmd->desc_id = wmi_desc->desc_id;
cmd->chanfreq = param->chanfreq; cmd->chanfreq = param->chanfreq;
bufp += sizeof(wmi_mgmt_tx_send_cmd_fixed_param); bufp += sizeof(wmi_mgmt_tx_send_cmd_fixed_param);
WMITLV_SET_HDR(bufp, WMITLV_TAG_ARRAY_BYTE, roundup(bufp_len, WMITLV_SET_HDR(bufp, WMITLV_TAG_ARRAY_BYTE, roundup(bufp_len,
@@ -3229,12 +3219,6 @@ QDF_STATUS send_set_sta_keep_alive_cmd_tlv(wmi_unified_t wmi_handle,
WMI_LOGD("%s: Enter", __func__); WMI_LOGD("%s: Enter", __func__);
if (params->timeperiod > WNI_CFG_INFRA_STA_KEEP_ALIVE_PERIOD_STAMAX) {
WMI_LOGE("Invalid period %d Max limit %d", params->timeperiod,
WNI_CFG_INFRA_STA_KEEP_ALIVE_PERIOD_STAMAX);
return QDF_STATUS_E_FAILURE;
}
len = sizeof(*cmd) + sizeof(*arp_rsp); len = sizeof(*cmd) + sizeof(*arp_rsp);
buf = wmi_buf_alloc(wmi_handle, len); buf = wmi_buf_alloc(wmi_handle, len);
if (!buf) { if (!buf) {
@@ -5103,7 +5087,7 @@ QDF_STATUS wmi_get_buf_extscan_start_cmd(wmi_unified_t wmi_handle,
cmd->base_period = pstart->basePeriod; cmd->base_period = pstart->basePeriod;
cmd->num_buckets = nbuckets; cmd->num_buckets = nbuckets;
cmd->configuration_flags = 0; cmd->configuration_flags = 0;
if (pstart->configuration_flags & EXTSCAN_LP_EXTENDED_BATCHING) if (pstart->configuration_flags & WMI_EXTSCAN_LP_EXTENDED_BATCHING)
cmd->configuration_flags |= WMI_EXTSCAN_EXTENDED_BATCHING_EN; cmd->configuration_flags |= WMI_EXTSCAN_EXTENDED_BATCHING_EN;
WMI_LOGI("%s: configuration_flags: 0x%x", __func__, WMI_LOGI("%s: configuration_flags: 0x%x", __func__,
cmd->configuration_flags); cmd->configuration_flags);
@@ -7345,7 +7329,7 @@ QDF_STATUS send_aggr_qos_cmd_tlv(wmi_unified_t wmi_handle,
(wmi_vdev_wmm_addts_cmd_fixed_param)); (wmi_vdev_wmm_addts_cmd_fixed_param));
cmd->vdev_id = aggr_qos_rsp_msg->sessionId; cmd->vdev_id = aggr_qos_rsp_msg->sessionId;
cmd->ac = cmd->ac =
TID_TO_WME_AC(aggr_qos_rsp_msg->tspec[i].tsinfo. WMI_TID_TO_AC(aggr_qos_rsp_msg->tspec[i].tsinfo.
traffic.userPrio); traffic.userPrio);
cmd->medium_time_us = cmd->medium_time_us =
aggr_qos_rsp_msg->tspec[i].mediumTime * 32; aggr_qos_rsp_msg->tspec[i].mediumTime * 32;
@@ -7586,8 +7570,7 @@ QDF_STATUS send_add_clear_mcbc_filter_cmd_tlv(wmi_unified_t wmi_handle,
} }
WMI_LOGD("Action:%d; vdev_id:%d; clearList:%d", WMI_LOGD("Action:%d; vdev_id:%d; clearList:%d",
cmd->action, vdev_id, clearList); cmd->action, vdev_id, clearList);
WMI_LOGD("MCBC MAC Addr: "MAC_ADDRESS_STR, WMI_LOGD("MCBC MAC Addr: %pM", multicast_addr.bytes);
MAC_ADDR_ARRAY(multicast_addr.bytes));
return 0; return 0;
} }
@@ -8669,7 +8652,7 @@ QDF_STATUS send_process_fw_mem_dump_cmd_tlv(wmi_unified_t wmi_handle,
{ {
wmi_get_fw_mem_dump_fixed_param *cmd; wmi_get_fw_mem_dump_fixed_param *cmd;
wmi_fw_mem_dump *dump_params; wmi_fw_mem_dump *dump_params;
struct fw_dump_seg_req *seg_req; struct wmi_fw_dump_seg_req *seg_req;
int32_t len; int32_t len;
wmi_buf_t buf; wmi_buf_t buf;
u_int8_t *buf_ptr; u_int8_t *buf_ptr;
@@ -8712,7 +8695,7 @@ QDF_STATUS send_process_fw_mem_dump_cmd_tlv(wmi_unified_t wmi_handle,
WMI_LOGI(FL("request_id:%d num_seg:%d"), WMI_LOGI(FL("request_id:%d num_seg:%d"),
mem_dump_req->request_id, mem_dump_req->num_seg); mem_dump_req->request_id, mem_dump_req->num_seg);
for (loop = 0; loop < cmd->num_fw_mem_dump_segs; loop++) { for (loop = 0; loop < cmd->num_fw_mem_dump_segs; loop++) {
seg_req = (struct fw_dump_seg_req *) seg_req = (struct wmi_fw_dump_seg_req *)
((uint8_t *)(mem_dump_req->segment) + ((uint8_t *)(mem_dump_req->segment) +
loop * sizeof(*seg_req)); loop * sizeof(*seg_req));
WMITLV_SET_HDR(&dump_params->tlv_header, WMITLV_SET_HDR(&dump_params->tlv_header,
@@ -9326,7 +9309,7 @@ QDF_STATUS send_enable_specific_fw_logs_cmd_tlv(wmi_unified_t wmi_handle,
cmd_args = (uint32_t *) (buf_ptr + WMI_TLV_HDR_SIZE); cmd_args = (uint32_t *) (buf_ptr + WMI_TLV_HDR_SIZE);
if (start_log->verbose_level >= LOG_LEVEL_ACTIVE) if (start_log->verbose_level >= WMI_LOG_LEVEL_ACTIVE)
log_level = 1; log_level = 1;
else else
log_level = 0; log_level = 0;
@@ -9652,7 +9635,7 @@ QDF_STATUS send_enable_arp_ns_offload_cmd_tlv(wmi_unified_t wmi_handle,
/* Fill data only for NS offload in the first ARP tuple for LA */ /* Fill data only for NS offload in the first ARP tuple for LA */
if (!arp_only && if (!arp_only &&
((param->enableOrDisable & SIR_OFFLOAD_ENABLE))) { ((param->enableOrDisable & WMI_OFFLOAD_ENABLE))) {
ns_tuple->flags |= WMI_NSOFF_FLAGS_VALID; ns_tuple->flags |= WMI_NSOFF_FLAGS_VALID;
#ifdef WLAN_NS_OFFLOAD #ifdef WLAN_NS_OFFLOAD
@@ -9697,13 +9680,13 @@ QDF_STATUS send_enable_arp_ns_offload_cmd_tlv(wmi_unified_t wmi_handle,
WMITLV_GET_STRUCT_TLVLEN(WMI_ARP_OFFLOAD_TUPLE)); WMITLV_GET_STRUCT_TLVLEN(WMI_ARP_OFFLOAD_TUPLE));
/* Fill data for ARP and NS in the first tupple for LA */ /* Fill data for ARP and NS in the first tupple for LA */
if ((wmi_handle->arp_info.enableOrDisable & SIR_OFFLOAD_ENABLE) if ((wmi_handle->arp_info.enableOrDisable & WMI_OFFLOAD_ENABLE)
&& (i == 0)) { && (i == 0)) {
/*Copy the target ip addr and flags */ /*Copy the target ip addr and flags */
arp_tuple->flags = WMI_ARPOFF_FLAGS_VALID; arp_tuple->flags = WMI_ARPOFF_FLAGS_VALID;
A_MEMCPY(&arp_tuple->target_ipaddr, A_MEMCPY(&arp_tuple->target_ipaddr,
wmi_handle->arp_info.params.hostIpv4Addr, wmi_handle->arp_info.params.hostIpv4Addr,
SIR_IPV4_ADDR_LEN); WMI_IPV4_ADDR_LEN);
WMI_LOGD("ARPOffload IP4 address: %pI4", WMI_LOGD("ARPOffload IP4 address: %pI4",
wmi_handle->arp_info.params.hostIpv4Addr); wmi_handle->arp_info.params.hostIpv4Addr);
} }
@@ -9724,7 +9707,8 @@ QDF_STATUS send_enable_arp_ns_offload_cmd_tlv(wmi_unified_t wmi_handle,
/* Fill data only for NS offload in the first ARP tuple for LA */ /* Fill data only for NS offload in the first ARP tuple for LA */
if (!arp_only && if (!arp_only &&
((param->enableOrDisable & SIR_OFFLOAD_ENABLE))) { ((param->enableOrDisable &
WMI_OFFLOAD_ENABLE))) {
ns_tuple->flags |= WMI_NSOFF_FLAGS_VALID; ns_tuple->flags |= WMI_NSOFF_FLAGS_VALID;
#ifdef WLAN_NS_OFFLOAD #ifdef WLAN_NS_OFFLOAD
/*Copy the target/solicitation/remote ip addr */ /*Copy the target/solicitation/remote ip addr */
@@ -10226,7 +10210,7 @@ QDF_STATUS send_roam_scan_offload_chan_list_cmd_tlv(wmi_unified_t wmi_handle,
(wmi_roam_chan_list_fixed_param)); (wmi_roam_chan_list_fixed_param));
chan_list_fp->vdev_id = vdev_id; chan_list_fp->vdev_id = vdev_id;
chan_list_fp->num_chan = chan_count; chan_list_fp->num_chan = chan_count;
if (chan_count > 0 && list_type == CHANNEL_LIST_STATIC) { if (chan_count > 0 && list_type == WMI_CHANNEL_LIST_STATIC) {
/* external app is controlling channel list */ /* external app is controlling channel list */
chan_list_fp->chan_list_type = chan_list_fp->chan_list_type =
WMI_ROAM_SCAN_CHAN_LIST_TYPE_STATIC; WMI_ROAM_SCAN_CHAN_LIST_TYPE_STATIC;