Commit 4ee23fd7 authored by Sanjay Devnani's avatar Sanjay Devnani Committed by Madan Mohan Koyyalamudi
Browse files

qcacld-2.0: CL 1398795 - update fw common interface files

add WMI cmd WMI_WOW_HOSTWAKEUP_PIN_PATTERN_CONFIG_CMDID

Change-Id: If9d15429b8171b402374fa999db91affe83be753
CRs-Fixed: 865207
parent f267b64c
......@@ -596,6 +596,7 @@ typedef enum {
WMITLV_TAG_STRUC_wmi_nlo_configure_mawc_cmd_fixed_param,
WMITLV_TAG_STRUC_wmi_extscan_configure_mawc_cmd_fixed_param,
WMITLV_TAG_STRUC_wmi_peer_assoc_conf_event_fixed_param,
WMITLV_TAG_STRUC_wmi_wow_hostwakeup_gpio_pin_pattern_config_cmd_fixed_param,
} WMITLV_TAG_ID;
/*
......@@ -830,7 +831,8 @@ typedef enum {
OP(WMI_MAWC_SENSOR_REPORT_IND_CMDID) \
OP(WMI_ROAM_CONFIGURE_MAWC_CMDID) \
OP(WMI_NLO_CONFIGURE_MAWC_CMDID) \
OP(WMI_EXTSCAN_CONFIGURE_MAWC_CMDID)
OP(WMI_EXTSCAN_CONFIGURE_MAWC_CMDID) \
OP(WMI_WOW_HOSTWAKEUP_GPIO_PIN_PATTERN_CONFIG_CMDID)
/*
* IMPORTANT: Please add _ALL_ WMI Events Here.
* Otherwise, these WMI TLV Functions will be process them.
......@@ -1365,6 +1367,13 @@ WMITLV_CREATE_PARAM_STRUC(WMI_WOW_DEL_WAKE_PATTERN_CMDID);
WMITLV_ELEM(id,op,buf,len, WMITLV_TAG_ARRAY_BYTE, A_UINT8, response, WMITLV_SIZE_VAR)
WMITLV_CREATE_PARAM_STRUC(WMI_WOW_UDP_SVC_OFLD_CMDID);
#define WMITLV_TABLE_WMI_WOW_HOSTWAKEUP_GPIO_PIN_PATTERN_CONFIG_CMDID(id,op,buf,len) \
WMITLV_ELEM(id, op, buf, len,\
WMITLV_TAG_STRUC_wmi_wow_hostwakeup_gpio_pin_pattern_config_cmd_fixed_param,\
WMI_WOW_HOSTWAKEUP_GPIO_PIN_PATTERN_CONFIG_CMD_fixed_param, fixed_param,\
WMITLV_SIZE_FIX)
WMITLV_CREATE_PARAM_STRUC(WMI_WOW_HOSTWAKEUP_GPIO_PIN_PATTERN_CONFIG_CMDID);
/* Wow enable/disable wake up Cmd */
#define WMITLV_TABLE_WMI_WOW_ENABLE_DISABLE_WAKE_EVENT_CMDID(id,op,buf,len) \
WMITLV_ELEM(id,op,buf,len, WMITLV_TAG_STRUC_WMI_WOW_ADD_DEL_EVT_CMD_fixed_param, WMI_WOW_ADD_DEL_EVT_CMD_fixed_param, fixed_param, WMITLV_SIZE_FIX)
......
......@@ -547,10 +547,13 @@ typedef enum {
*/
WMI_WOW_UDP_SVC_OFLD_CMDID,
/* configure WOW host wakeup PIN pattern */
WMI_WOW_HOSTWAKEUP_GPIO_PIN_PATTERN_CONFIG_CMDID,
/* RTT measurement related cmd */
/** reques to make an RTT measurement */
/** request to make an RTT measurement */
WMI_RTT_MEASREQ_CMDID=WMI_CMD_GRP_START_ID(WMI_GRP_RTT),
/** reques to report a tsf measurement */
/** request to report a tsf measurement */
WMI_RTT_TSF_CMDID,
/** spectral scan command */
......@@ -6650,6 +6653,23 @@ typedef struct {
*/
} WMI_WOW_UDP_SVC_OFLD_CMD_fixed_param;
/*
* This structure is used to set the pattern for WOW host wakeup pin pulse
* pattern confirguration.
*/
typedef struct {
/*
* TLV tag and len; tag equals
* WMITLV_TAG_STRUC_WMI_WOW_HOSTWAKEUP_PIN_PATTERN_CONFIG_CMD_fixed_param
*/
A_UINT32 tlv_header;
A_UINT32 enable; // 1: enable, 0: disable
A_UINT32 pin; // pin for host wakeup
A_UINT32 interval_low; // interval for keeping low voltage, unit: ms
A_UINT32 interval_high; // interval for keeping high voltage, unit: ms
A_UINT32 repeat_cnt;// repeat times for pulse (0xffffffff means forever)
} WMI_WOW_HOSTWAKEUP_GPIO_PIN_PATTERN_CONFIG_CMD_fixed_param;
typedef struct wow_event_info_s {
A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_WOW_EVENT_INFO_fixed_param */
A_UINT32 vdev_id;
......@@ -11598,7 +11618,7 @@ typedef struct {
WMI_LRO_INFO_TCP_FLAG_VALS_NUMBITS, \
tcp_flag_values)
#define WMI_LRO_INFO_TCP_FLAG_VALS_GET(tcp_flag_u32) \
WMI_SET_BITS(tcp_flag_u32, \
WMI_GET_BITS(tcp_flag_u32, \
WMI_LRO_INFO_TCP_FLAG_VALS_BITPOS, \
WMI_LRO_INFO_TCP_FLAG_VALS_NUMBITS)
......@@ -11611,7 +11631,7 @@ typedef struct {
WMI_LRO_INFO_TCP_FLAGS_MASK_NUMBITS, \
tcp_flags_mask)
#define WMI_LRO_INFO_TCP_FLAGS_MASK_GET(tcp_flag_u32) \
WMI_SET_BITS(tcp_flag_u32, \
WMI_GET_BITS(tcp_flag_u32, \
WMI_LRO_INFO_TCP_FLAGS_MASK_BITPOS, \
WMI_LRO_INFO_TCP_FLAGS_MASK_NUMBITS)
......
......@@ -36,7 +36,7 @@
#define __WMI_VER_MINOR_ 0
/** WMI revision number has to be incremented when there is a
* change that may or may not break compatibility. */
#define __WMI_REVISION_ 167
#define __WMI_REVISION_ 168
/** The Version Namespace should not be normally changed. Only
* host and firmware of the same WMI namespace will work
......
......@@ -616,6 +616,7 @@ static u_int8_t* get_wmi_cmd_string(WMI_CMD_ID wmi_command)
CASE_RETURN_STRING(WMI_WOW_UDP_SVC_OFLD_CMDID);
CASE_RETURN_STRING(WMI_MGMT_TX_SEND_CMDID);
CASE_RETURN_STRING(WMI_SOC_SET_ANTENNA_MODE_CMDID);
CASE_RETURN_STRING(WMI_WOW_HOSTWAKEUP_GPIO_PIN_PATTERN_CONFIG_CMDID);
}
return "Invalid WMI cmd";
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment