Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d5082262 authored by spuligil's avatar spuligil Committed by Ravindra Konda
Browse files

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

Change-Id: Ie1fbd6e37aa8df688d082bc65f22d946cabfcdb3
CRs-Fixed: 2262693
parent 04abee31
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -659,6 +659,7 @@ typedef enum {
    WMI_SERVICE_REG_CC_EXT2_EVENT_SUPPORT = 405, /* Indicate FW would send EXT2 REG_CC event having data which would be a continuation to EXT REG_CC event */
    WMI_SERVICE_MLO_MODE2_RECOVERY_SUPPORTED = 406, /* Indicate FW support for MLO mode2 recovery */
    WMI_SERVICE_MSDUQ_RECFG = 407, /* FW support the HTT MSDUQ_RECFG_REQ + MSDUQ_CFG_IND messages */
    WMI_SERVICE_TRAFFIC_CONTEXT_SUPPORT = 408, /* FW supports traffic context aware manager */


    WMI_MAX_EXT2_SERVICE
+14 −0
Original line number Diff line number Diff line
@@ -1432,6 +1432,8 @@ typedef enum {
    WMITLV_TAG_STRUC_wmi_pdev_enable_xlna_event_fixed_param,
    WMITLV_TAG_STRUC_wmi_reg_chan_list_cc_event_ext2_fixed_param,
    WMITLV_TAG_STRUC_wmi_pdev_set_custom_tx_power_per_mcs_cmd_fixed_param,
    WMITLV_TAG_STRUC_wmi_peer_active_traffic_map_cmd_fixed_param,
    WMITLV_TAG_STRUC_wmi_request_opm_stats_cmd_fixed_param,
} WMITLV_TAG_ID;
/*
 * IMPORTANT: Please add _ALL_ WMI Commands Here.
@@ -1978,6 +1980,8 @@ typedef enum {
    OP(WMI_PDEV_ENABLE_WIFI_RADAR_CMDID) \
    OP(WMI_PDEV_ENABLE_XLNA_CMDID) \
    OP(WMI_PDEV_SET_CUSTOM_TX_POWER_PER_MCS_CMDID) \
    OP(WMI_PEER_ACTIVE_TRAFFIC_MAP_CMDID) \
    OP(WMI_REQUEST_OPM_STATS_CMDID) \
    /* add new CMD_LIST elements above this line */


@@ -5591,6 +5595,16 @@ WMITLV_CREATE_PARAM_STRUC(WMI_PDEV_ENABLE_XLNA_CMDID);
    WMITLV_ELEM(id,op,buf,len, WMITLV_TAG_ARRAY_BYTE, A_UINT8, txpower_bkoff_array, WMITLV_SIZE_VAR)
WMITLV_CREATE_PARAM_STRUC(WMI_PDEV_SET_CUSTOM_TX_POWER_PER_MCS_CMDID);

/* cmd to Set active traffic type bitmap */
#define WMITLV_TABLE_WMI_PEER_ACTIVE_TRAFFIC_MAP_CMDID(id,op,buf,len) \
    WMITLV_ELEM(id,op,buf,len, WMITLV_TAG_STRUC_wmi_peer_active_traffic_map_cmd_fixed_param, wmi_peer_active_traffic_map_cmd_fixed_param, fixed_param, WMITLV_SIZE_FIX)
WMITLV_CREATE_PARAM_STRUC(WMI_PEER_ACTIVE_TRAFFIC_MAP_CMDID);

/* cmd to request Opportunistic Power Mgmt (OPM) stats */
#define WMITLV_TABLE_WMI_REQUEST_OPM_STATS_CMDID(id,op,buf,len) \
    WMITLV_ELEM(id,op,buf,len, WMITLV_TAG_STRUC_wmi_request_opm_stats_cmd_fixed_param, wmi_request_opm_stats_cmd_fixed_param, fixed_param, WMITLV_SIZE_FIX)
WMITLV_CREATE_PARAM_STRUC(WMI_REQUEST_OPM_STATS_CMDID);



/************************** TLV definitions of WMI events *******************************/
+56 −0
Original line number Diff line number Diff line
@@ -1302,6 +1302,13 @@ typedef enum {
    /* WMI cmd used by host to send the switch response status to FW */
    WMI_AUDIO_TRANSPORT_SWITCH_RESP_STATUS_CMDID,
    /** WMI command to set active traffic type bitmap for a peer */
    WMI_PEER_ACTIVE_TRAFFIC_MAP_CMDID,
    /** WMI command to Request Opportunistic Power Mgmt (OPM) stats */
    WMI_REQUEST_OPM_STATS_CMDID,
    /*  Offload 11k related requests */
    WMI_11K_OFFLOAD_REPORT_CMDID = WMI_CMD_GRP_START_ID(WMI_GRP_11K_OFFLOAD),
    /* invoke neighbor report from FW */
@@ -37629,6 +37636,8 @@ static INLINE A_UINT8 *wmi_id_to_name(A_UINT32 wmi_command)
        WMI_RETURN_STRING(WMI_VDEV_GET_TWT_SESSION_STATS_INFO_CMDID);
        WMI_RETURN_STRING(WMI_PDEV_ENABLE_XLNA_CMDID);
        WMI_RETURN_STRING(WMI_PDEV_SET_CUSTOM_TX_POWER_PER_MCS_CMDID);
        WMI_RETURN_STRING(WMI_PEER_ACTIVE_TRAFFIC_MAP_CMDID);
        WMI_RETURN_STRING(WMI_REQUEST_OPM_STATS_CMDID);
    }
    return (A_UINT8 *) "Invalid WMI cmd";
@@ -48240,6 +48249,53 @@ typedef struct {
    A_UINT32 status;
} wmi_pdev_enable_xlna_event_fixed_param;
/**
  * bits 0-15 are used for non interative traffic types like video streaming,
  *     or ping
  * bit 16-31 are reserved for interactive traffic types like gaming, VoIP,
  *     or video conferencing
  */
#define WMI_PEER_ACTIVE_TRAFFIC_TYPE_STREAMING_M  0x00000001
#define WMI_PEER_ACTIVE_TRAFFIC_TYPE_STREAMING_S  0
#define WMI_PEER_ACTIVE_TRAFFIC_TYPE_PING_M       0x00000002
#define WMI_PEER_ACTIVE_TRAFFIC_TYPE_PING_S       1
#define WMI_PEER_ACTIVE_TRAFFIC_TYPE_BACKGROUND_M 0x00000004
#define WMI_PEER_ACTIVE_TRAFFIC_TYPE_BACKGROUND_S 2
/* bits 3-15 are reserved for new non-interactive traffic types */
#define WMI_PEER_ACTIVE_TRAFFIC_TYPE_GAMING_M     0x00010000
#define WMI_PEER_ACTIVE_TRAFFIC_TYPE_GAMING_S     16
#define WMI_PEER_ACTIVE_TRAFFIC_TYPE_VOIP_M       0x00020000
#define WMI_PEER_ACTIVE_TRAFFIC_TYPE_VOIP_S       17
#define WMI_PEER_ACTIVE_TRAFFIC_TYPE_VIDEO_CONF_M 0x00040000
#define WMI_PEER_ACTIVE_TRAFFIC_TYPE_VIDEO_CONF_S 18
/* bits 19-31 are reserved for new interactive traffic types */
typedef struct {
    A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_peer_active_traffic_map_cmd_fixed_param */
    A_UINT32 vdev_id;
    wmi_mac_addr peer_macaddr; /* peer MAC address */
    /* active_traffic_map:
     * This field is a bitmap showing traffic types known to be currently
     * present within the vdev.
     * Refer to the WMI_PEER_ACTIVE_TRAFFIC_ definitions that specify which
     * bits within the bitmap correspond to which traffic types.
     */
    A_UINT32 active_traffic_map;
} wmi_peer_active_traffic_map_cmd_fixed_param;
/*
 * WMI_REQUEST_OPM_STATS_CMDID triggered by host to collect OPM stats for trafic types identified by STC
 * in respose this FW will send OEM_respose_event_id WMI_OEM_DATA_CMD_OPM_STATS
 *
 */
 typedef struct {
    A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_request_opm_stats_cmd_fixed_param */
    A_UINT32 pdev_id; /** pdev_id for identifying the MAC */
} wmi_request_opm_stats_cmd_fixed_param;
/* ADD NEW DEFS HERE */
+1 −1
Original line number Diff line number Diff line
@@ -37,7 +37,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_ 1459
#define __WMI_REVISION_ 1460

/** The Version Namespace should not be normally changed. Only
 *  host and firmware of the same WMI namespace will work