fw-api: CL 8211834 - update fw common interface files

Change-Id: I2976d7603580145d8bba5aa1364db99af8b8e849
WMI: define VDEV_BSS_MAX_IDLE_TIME_CMD msg
CRs-Fixed: 2262693
This commit is contained in:
spuligil
2019-09-24 06:00:42 -07:00
committed by nshrivas
parent 94cf30005c
commit 350aa6f83a
4 changed files with 42 additions and 1 deletions

View File

@@ -484,6 +484,8 @@ typedef enum {
WMI_VDEV_GET_MWS_COEX_INFO_CMDID,
/** delete all peer (excluding bss peer) */
WMI_VDEV_DELETE_ALL_PEER_CMDID,
/* To set bss max idle time related parameters */
WMI_VDEV_BSS_MAX_IDLE_TIME_CMDID,
/* peer specific commands */
@@ -3217,6 +3219,12 @@ typedef struct {
#define WMI_RSRC_CFG_FLAG_PACKET_CAPTURE_SUPPORT_S 27
#define WMI_RSRC_CFG_FLAG_PACKET_CAPTURE_SUPPORT_M 0x8000000
/*
* If this BIT is set, then target should support BSS Max Idle period.
*/
#define WMI_RSRC_CFG_FLAG_BSS_MAX_IDLE_TIME_SUPPORT_S 28
#define WMI_RSRC_CFG_FLAG_BSS_MAX_IDLE_TIME_SUPPORT_M 0x10000000
A_UINT32 flag1;
/** @brief smart_ant_cap - Smart Antenna capabilities information
@@ -3563,6 +3571,11 @@ typedef struct {
#define WMI_RSRC_CFG_FLAG_PACKET_CAPTURE_SUPPORT_GET(word32) \
WMI_RSRC_CFG_FLAG_GET((word32), PACKET_CAPTURE_SUPPORT)
#define WMI_RSRC_CFG_FLAG_BSS_MAX_IDLE_TIME_SUPPORT_SET(word32, value) \
WMI_RSRC_CFG_FLAG_SET((word32), BSS_MAX_IDLE_TIME_SUPPORT, (value))
#define WMI_RSRC_CFG_FLAG_BSS_MAX_IDLE_TIME_SUPPORT_GET(word32) \
WMI_RSRC_CFG_FLAG_GET((word32), BSS_MAX_IDLE_TIME_SUPPORT)
typedef struct {
A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_init_cmd_fixed_param */
@@ -10566,6 +10579,23 @@ typedef struct {
A_UINT32 vdev_id;
} wmi_vdev_simple_event_fixed_param;
/* Commands for getting and setting protected bit : bss max idle time */
#define WMI_BSS_MAX_IDLE_TIME_PROTECTED_GET(idle_options) \
WMI_GET_BITS(idle_options, 0, 1)
#define WMI_BSS_MAX_IDLE_TIME_PROTECTED_SET(idle_options, val) \
WMI_SET_BITS(idle_options, 0, 1, val)
typedef struct {
A_UINT32 tlv_header; /* TLV tag and len; tag equals WMITLV_TAG_STRUC_WMI_VDEV_BSS_MAX_IDLE_TIME_fixed_param */
A_UINT32 vdev_id; /** unique id identifying the VDEV, generated by the caller */
A_UINT32 max_idle_period; /* time interval in seconds */
/* idle_options:
* bit 0 - Protected bit
* Refer to WMI_BSS_MAX_IDLE_TIME_PROTECTED_GET,SET macros.
* bit 31:1 - Reserved bits
*/
A_UINT32 idle_options;
} wmi_vdev_bss_max_idle_time_cmd_fixed_param;
/** VDEV start response status codes */
#define WMI_VDEV_START_RESPONSE_STATUS_SUCCESS 0x0 /** VDEV succesfully started */
@@ -24089,6 +24119,8 @@ static INLINE A_UINT8 *wmi_id_to_name(A_UINT32 wmi_command)
/* set a key (used for setting per peer unicast
* and per vdev multicast) */
WMI_RETURN_STRING(WMI_VDEV_INSTALL_KEY_CMDID);
/* Set bss max idle time */
WMI_RETURN_STRING(WMI_VDEV_BSS_MAX_IDLE_TIME_CMDID);
/* wnm sleep mode command */
WMI_RETURN_STRING(WMI_VDEV_WNM_SLEEPMODE_CMDID);