Revert "qcacmn: Remove WMA header file dependency to fix WIN compilation"
This change reverts Change-Id: I48978e51ca6bd4416420ee66746d5bfe7adae3c9 Change-Id: I8113e233b3477c7b35a5c35a1a1c6f5f32936d8c CRs-Fixed: 1008872
This commit is contained in:

committed by
Vishwajith Upendra

parent
8330485de6
commit
d5320a9658
@@ -71,8 +71,6 @@
|
|||||||
#define WMI_NOISE_FLOOR_DBM_DEFAULT (-96)
|
#define WMI_NOISE_FLOOR_DBM_DEFAULT (-96)
|
||||||
#define WMI_MAC_IPV6_ADDR_LEN 16
|
#define WMI_MAC_IPV6_ADDR_LEN 16
|
||||||
#ifdef WLAN_NS_OFFLOAD
|
#ifdef WLAN_NS_OFFLOAD
|
||||||
#define WMI_OFFLOAD_DISABLE 0
|
|
||||||
#define WMI_OFFLOAD_ENABLE 1
|
|
||||||
/* support only one IPv6 offload */
|
/* support only one IPv6 offload */
|
||||||
#define WMI_MAC_NS_OFFLOAD_SIZE 1
|
#define WMI_MAC_NS_OFFLOAD_SIZE 1
|
||||||
/* Number of target IP V6 addresses for NS offload */
|
/* Number of target IP V6 addresses for NS offload */
|
||||||
@@ -263,17 +261,6 @@ typedef enum {
|
|||||||
|
|
||||||
#define MAX_NUM_CHAN 128
|
#define MAX_NUM_CHAN 128
|
||||||
|
|
||||||
/* WME stream classes */
|
|
||||||
#define WMI_AC_BE 0 /* best effort */
|
|
||||||
#define WMI_AC_BK 1 /* background */
|
|
||||||
#define WMI_AC_VI 2 /* video */
|
|
||||||
#define WMI_AC_VO 3 /* voice */
|
|
||||||
#define WMI_TID_TO_AC(_tid) (\
|
|
||||||
(((_tid) == 0) || ((_tid) == 3)) ? WMI_AC_BE : \
|
|
||||||
(((_tid) == 1) || ((_tid) == 2)) ? WMI_AC_BK : \
|
|
||||||
(((_tid) == 4) || ((_tid) == 5)) ? WMI_AC_VI : \
|
|
||||||
WMI_AC_VO)
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* struct vdev_create_params - vdev create cmd parameter
|
* struct vdev_create_params - vdev create cmd parameter
|
||||||
* @if_id: interface id
|
* @if_id: interface id
|
||||||
@@ -1150,7 +1137,14 @@ struct wmi_mgmt_params {
|
|||||||
void *pdata;
|
void *pdata;
|
||||||
uint16_t desc_id;
|
uint16_t desc_id;
|
||||||
uint8_t *macaddr;
|
uint8_t *macaddr;
|
||||||
|
#ifndef WMI_NON_TLV_SUPPORT
|
||||||
|
/* Following elements should be moved to WMA
|
||||||
|
*/
|
||||||
|
void *tx_complete_cb;
|
||||||
|
void *tx_ota_post_proc_cb;
|
||||||
|
struct wmi_desc_t *wmi_desc;
|
||||||
void *qdf_ctx;
|
void *qdf_ctx;
|
||||||
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -1668,14 +1662,6 @@ enum {
|
|||||||
WMI_STA_RX_DATA_OFFLOAD = 0x01,
|
WMI_STA_RX_DATA_OFFLOAD = 0x01,
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
|
||||||
* enum extscan_configuration_flags - extscan config flags
|
|
||||||
* @WMI_EXTSCAN_LP_EXTENDED_BATCHING: extended batching
|
|
||||||
*/
|
|
||||||
enum wmi_extscan_configuration_flags {
|
|
||||||
WMI_EXTSCAN_LP_EXTENDED_BATCHING = 0x00000001,
|
|
||||||
};
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* enum extscan_report_events_type - extscan report events type
|
* enum extscan_report_events_type - extscan report events type
|
||||||
* @EXTSCAN_REPORT_EVENTS_BUFFER_FULL: report only when scan history is % full
|
* @EXTSCAN_REPORT_EVENTS_BUFFER_FULL: report only when scan history is % full
|
||||||
@@ -2012,14 +1998,6 @@ struct wifi_scan_cmd_req_params {
|
|||||||
};
|
};
|
||||||
|
|
||||||
#define WMI_CFG_VALID_CHANNEL_LIST_LEN 100
|
#define WMI_CFG_VALID_CHANNEL_LIST_LEN 100
|
||||||
/* Occupied channel list remains static */
|
|
||||||
#define WMI_CHANNEL_LIST_STATIC 1
|
|
||||||
/* Occupied channel list can be learnt after init */
|
|
||||||
#define WMI_CHANNEL_LIST_DYNAMIC_INIT 2
|
|
||||||
/* Occupied channel list can be learnt after flush */
|
|
||||||
#define WMI_CHANNEL_LIST_DYNAMIC_FLUSH 3
|
|
||||||
/* Occupied channel list can be learnt after update */
|
|
||||||
#define WMI_CHANNEL_LIST_DYNAMIC_UPDATE 4
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* struct plm_req_params - plm req parameter
|
* struct plm_req_params - plm req parameter
|
||||||
@@ -6325,47 +6303,5 @@ struct wmi_power_dbg_params {
|
|||||||
uint32_t args[WMI_MAX_POWER_DBG_ARGS];
|
uint32_t args[WMI_MAX_POWER_DBG_ARGS];
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
|
||||||
* struct wmi_fw_dump_seg_req - individual segment details
|
|
||||||
* @seg_id - segment id.
|
|
||||||
* @seg_start_addr_lo - lower address of the segment.
|
|
||||||
* @seg_start_addr_hi - higher address of the segment.
|
|
||||||
* @seg_length - length of the segment.
|
|
||||||
* @dst_addr_lo - lower address of the destination buffer.
|
|
||||||
* @dst_addr_hi - higher address of the destination buffer.
|
|
||||||
*
|
|
||||||
* This structure carries the information to firmware about the
|
|
||||||
* individual segments. This structure is part of firmware memory
|
|
||||||
* dump request.
|
|
||||||
*/
|
|
||||||
struct wmi_fw_dump_seg_req {
|
|
||||||
uint8_t seg_id;
|
|
||||||
uint32_t seg_start_addr_lo;
|
|
||||||
uint32_t seg_start_addr_hi;
|
|
||||||
uint32_t seg_length;
|
|
||||||
uint32_t dst_addr_lo;
|
|
||||||
uint32_t dst_addr_hi;
|
|
||||||
};
|
|
||||||
|
|
||||||
/**
|
|
||||||
* enum wmi_userspace_log_level - Log level at userspace
|
|
||||||
* @WMI_LOG_LEVEL_NO_COLLECTION: verbose_level 0 corresponds to no collection
|
|
||||||
* @WMI_LOG_LEVEL_NORMAL_COLLECT: verbose_level 1 correspond to normal log
|
|
||||||
* level with minimal user impact. This is the default value.
|
|
||||||
* @WMI_LOG_LEVEL_ISSUE_REPRO: verbose_level 2 are enabled when user is lazily
|
|
||||||
* trying to reproduce a problem, wifi performances and power can be impacted
|
|
||||||
* but device should not otherwise be significantly impacted
|
|
||||||
* @WMI_LOG_LEVEL_ACTIVE: verbose_level 3+ are used when trying to
|
|
||||||
* actively debug a problem
|
|
||||||
*
|
|
||||||
* Various log levels defined in the userspace for logging applications
|
|
||||||
*/
|
|
||||||
enum wmi_userspace_log_level {
|
|
||||||
WMI_LOG_LEVEL_NO_COLLECTION,
|
|
||||||
WMI_LOG_LEVEL_NORMAL_COLLECT,
|
|
||||||
WMI_LOG_LEVEL_ISSUE_REPRO,
|
|
||||||
WMI_LOG_LEVEL_ACTIVE,
|
|
||||||
};
|
|
||||||
|
|
||||||
#endif /* _WMI_UNIFIED_PARAM_H_ */
|
#endif /* _WMI_UNIFIED_PARAM_H_ */
|
||||||
|
|
||||||
|
@@ -34,6 +34,7 @@
|
|||||||
#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 */
|
||||||
|
@@ -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"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -1573,6 +1573,7 @@ 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 :
|
||||||
@@ -1596,7 +1597,16 @@ QDF_STATUS send_mgmt_cmd_tlv(wmi_unified_t wmi_handle,
|
|||||||
|
|
||||||
cmd->vdev_id = param->vdev_id;
|
cmd->vdev_id = param->vdev_id;
|
||||||
|
|
||||||
cmd->desc_id = param->desc_id;
|
wmi_desc = param->wmi_desc;
|
||||||
|
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,
|
||||||
@@ -3126,6 +3136,12 @@ 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) {
|
||||||
@@ -4931,7 +4947,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 & WMI_EXTSCAN_LP_EXTENDED_BATCHING)
|
if (pstart->configuration_flags & 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);
|
||||||
@@ -7169,7 +7185,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 =
|
||||||
WMI_TID_TO_AC(aggr_qos_rsp_msg->tspec[i].tsinfo.
|
TID_TO_WME_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;
|
||||||
@@ -7410,7 +7426,8 @@ 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: %pM", multicast_addr.bytes);
|
WMI_LOGD("MCBC MAC Addr: "MAC_ADDRESS_STR,
|
||||||
|
MAC_ADDR_ARRAY(multicast_addr.bytes));
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
@@ -8492,7 +8509,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 wmi_fw_dump_seg_req *seg_req;
|
struct 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;
|
||||||
@@ -8535,7 +8552,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 wmi_fw_dump_seg_req *)
|
seg_req = (struct 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,
|
||||||
@@ -9149,7 +9166,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 >= WMI_LOG_LEVEL_ACTIVE)
|
if (start_log->verbose_level >= LOG_LEVEL_ACTIVE)
|
||||||
log_level = 1;
|
log_level = 1;
|
||||||
else
|
else
|
||||||
log_level = 0;
|
log_level = 0;
|
||||||
@@ -9475,7 +9492,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 & WMI_OFFLOAD_ENABLE))) {
|
((param->enableOrDisable & SIR_OFFLOAD_ENABLE))) {
|
||||||
ns_tuple->flags |= WMI_NSOFF_FLAGS_VALID;
|
ns_tuple->flags |= WMI_NSOFF_FLAGS_VALID;
|
||||||
|
|
||||||
#ifdef WLAN_NS_OFFLOAD
|
#ifdef WLAN_NS_OFFLOAD
|
||||||
@@ -9520,13 +9537,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 & WMI_OFFLOAD_ENABLE)
|
if ((wmi_handle->arp_info.enableOrDisable & SIR_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,
|
||||||
WMI_IPV4_ADDR_LEN);
|
SIR_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);
|
||||||
}
|
}
|
||||||
@@ -9547,8 +9564,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 &
|
((param->enableOrDisable & SIR_OFFLOAD_ENABLE))) {
|
||||||
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 */
|
||||||
@@ -10050,7 +10066,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 == WMI_CHANNEL_LIST_STATIC) {
|
if (chan_count > 0 && list_type == 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;
|
||||||
|
Reference in New Issue
Block a user