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

Commit 0ad635d0 authored by spuligil's avatar spuligil
Browse files

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

Change-Id: If591c5f28207af88488872caa6e2e3e311a99cbb
WMI: add ROAM ENABLE,GET VENDOR CONTROL msg defs
CRs-Fixed: 2262693
parent 763f5570
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -587,6 +587,7 @@ typedef enum {
    WMI_SERVICE_HW_TX_POWER_CAPS_SIGNED_SUPPORT = 334, /* Indicates FW supports updating of Tx power capabilities as signed value */
    WMI_SERVICE_MULTI_CLIENT_LL_SUPPORT = 335, /* FW supports set param cmd combined for multiple params */
    WMI_SERVICE_AFC_PAYLOAD_CLEAR_SUPPORT = 336, /* FW supports clearing the AFC response payload in proxy mode */
    WMI_SERVICE_FW_INI_PARSE_SUPPORT = 337, /* FW supports parsing ini configuration file */

    WMI_MAX_EXT2_SERVICE

+21 −0
Original line number Diff line number Diff line
@@ -1269,6 +1269,9 @@ typedef enum {
    WMITLV_TAG_STRUC_wmi_peer_tid_to_link_map_fixed_param,
    WMITLV_TAG_STRUC_wmi_peer_assoc_tid_to_link_map,
    WMITLV_TAG_STRUC_wmi_peer_delete_mlo_params,
    WMITLV_TAG_STRUC_wmi_roam_enable_vendor_control_cmd_fixed_param,
    WMITLV_TAG_STRUC_wmi_roam_get_vendor_control_param_cmd_fixed_param,
    WMITLV_TAG_STRUC_wmi_roam_get_vendor_control_param_event_fixed_param,
} WMITLV_TAG_ID;

/*
@@ -1763,6 +1766,8 @@ typedef enum {
    OP(WMI_PMM_SCRATCH_REG_ALLOCATION_CMDID) \
    OP(WMI_PEER_TX_FILTER_CMDID) \
    OP(WMI_MLO_PEER_TID_TO_LINK_MAP_CMDID) \
    OP(WMI_ROAM_ENABLE_VENDOR_CONTROL_CMDID) \
    OP(WMI_ROAM_GET_VENDOR_CONTROL_PARAM_CMDID) \
    /* add new CMD_LIST elements above this line */


@@ -2049,6 +2054,7 @@ typedef enum {
    OP(WMI_PMM_AVAILABLE_SCRATCH_REG_EVENTID) \
    OP(WMI_PMM_SCRATCH_REG_ALLOCATION_COMPLETE_EVENTID) \
    OP(WMI_VDEV_LATENCY_LEVEL_EVENTID) \
    OP(WMI_ROAM_GET_VENDOR_CONTROL_PARAM_EVENTID) \
    /* add new EVT_LIST elements above this line */


@@ -4985,6 +4991,16 @@ WMITLV_CREATE_PARAM_STRUC(WMI_VDEV_SET_MU_SNIF_CMDID);
    WMITLV_ELEM(id,op,buf,len, WMITLV_TAG_STRUC_wmi_roam_set_param_cmd_fixed_param, wmi_roam_set_param_cmd_fixed_param, fixed_param, WMITLV_SIZE_FIX)
WMITLV_CREATE_PARAM_STRUC(WMI_ROAM_SET_PARAM_CMDID);

/* Roam enable vendor control Cmd */
#define WMITLV_TABLE_WMI_ROAM_ENABLE_VENDOR_CONTROL_CMDID(id,op,buf,len) \
    WMITLV_ELEM(id,op,buf,len, WMITLV_TAG_STRUC_wmi_roam_enable_vendor_control_cmd_fixed_param, wmi_roam_enable_vendor_control_cmd_fixed_param, fixed_param, WMITLV_SIZE_FIX)
WMITLV_CREATE_PARAM_STRUC(WMI_ROAM_ENABLE_VENDOR_CONTROL_CMDID);

/* Roam Get vendor control Param Cmd */
#define WMITLV_TABLE_WMI_ROAM_GET_VENDOR_CONTROL_PARAM_CMDID(id,op,buf,len) \
    WMITLV_ELEM(id,op,buf,len, WMITLV_TAG_STRUC_wmi_roam_get_vendor_control_param_cmd_fixed_param, wmi_roam_get_vendor_control_param_cmd_fixed_param, fixed_param, WMITLV_SIZE_FIX)
WMITLV_CREATE_PARAM_STRUC(WMI_ROAM_GET_VENDOR_CONTROL_PARAM_CMDID);

#define WMITLV_TABLE_WMI_SAWF_SVC_CLASS_CFG_CMDID(id,op,buf,len) \
    WMITLV_ELEM(id,op,buf,len, WMITLV_TAG_STRUC_wmi_sawf_svc_class_cfg_cmd_fixed_param, wmi_sawf_svc_class_cfg_cmd_fixed_param, fixed_param, WMITLV_SIZE_FIX)
WMITLV_CREATE_PARAM_STRUC(WMI_SAWF_SVC_CLASS_CFG_CMDID);
@@ -5372,6 +5388,11 @@ WMITLV_CREATE_PARAM_STRUC(WMI_ROAM_SYNCH_FRAME_EVENTID);
    WMITLV_ELEM(id,op,buf,len, WMITLV_TAG_ARRAY_BYTE, A_UINT8, frame, WMITLV_SIZE_VAR)
WMITLV_CREATE_PARAM_STRUC(WMI_ROAM_FRAME_EVENTID);

/* Get Roam Vendor Control Param Event */
#define WMITLV_TABLE_WMI_ROAM_GET_VENDOR_CONTROL_PARAM_EVENTID(id,op,buf,len) \
    WMITLV_ELEM(id,op,buf,len, WMITLV_TAG_STRUC_wmi_roam_get_vendor_control_param_event_fixed_param, wmi_roam_get_vendor_control_param_event_fixed_param, fixed_param, WMITLV_SIZE_FIX)
WMITLV_CREATE_PARAM_STRUC(WMI_ROAM_GET_VENDOR_CONTROL_PARAM_EVENTID);

/* WOW Wakeup Host Event */
/* NOTE: Make sure wow_bitmap_info can be zero or one elements only */
#define WMITLV_TABLE_WMI_WOW_WAKEUP_HOST_EVENTID(id,op,buf,len) \
+49 −0
Original line number Diff line number Diff line
@@ -845,6 +845,10 @@ typedef enum {
    WMI_ROAM_MLO_CONFIG_CMDID,
    /** set roam params **/
    WMI_ROAM_SET_PARAM_CMDID,
    /** Enable or Disable roam vendor control */
    WMI_ROAM_ENABLE_VENDOR_CONTROL_CMDID,
    /** Get roam vendor control params */
    WMI_ROAM_GET_VENDOR_CONTROL_PARAM_CMDID,
    /** offload scan specific commands */
    /** set offload scan AP profile   */
@@ -1854,6 +1858,8 @@ typedef enum {
    WMI_ROAM_CAPABILITY_REPORT_EVENTID,
    /** Send AP frame content like beacon/probe resp etc.. */
    WMI_ROAM_FRAME_EVENTID,
    /** GET Roam Vendor Control Param event */
    WMI_ROAM_GET_VENDOR_CONTROL_PARAM_EVENTID,
    /** P2P disc found */
    WMI_P2P_DISC_EVENTID = WMI_EVT_GRP_START_ID(WMI_GRP_P2P),
@@ -31381,6 +31387,8 @@ static INLINE A_UINT8 *wmi_id_to_name(A_UINT32 wmi_command)
        WMI_RETURN_STRING(WMI_SET_MULTIPLE_PDEV_VDEV_PARAM_CMDID);
        WMI_RETURN_STRING(WMI_PMM_SCRATCH_REG_ALLOCATION_CMDID);
        WMI_RETURN_STRING(WMI_MLO_PEER_TID_TO_LINK_MAP_CMDID);
        WMI_RETURN_STRING(WMI_ROAM_ENABLE_VENDOR_CONTROL_CMDID);
        WMI_RETURN_STRING(WMI_ROAM_GET_VENDOR_CONTROL_PARAM_CMDID);
    }
    return (A_UINT8 *) "Invalid WMI cmd";
@@ -34231,6 +34239,47 @@ typedef struct {
    A_UINT32 param_value;
} wmi_roam_set_param_cmd_fixed_param;
typedef struct {
    A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_vdev_enable_vendor_cmd_fixed_param */
    /** unique id identifying the VDEV, generated by the caller */
    A_UINT32 vdev_id;
    /** abstract mechanism for differentiating vendors */
    A_UINT32 vendor_id;
    /** 1 - Enable, 0 - Disable */
    A_UINT32 enable;
} wmi_roam_enable_vendor_control_cmd_fixed_param;
typedef enum {
    ROAM_VENDOR_CONTROL_PARAM_TRIGGER = 1,
    ROAM_VENDOR_CONTROL_PARAM_DELTA,
    ROAM_VENDOR_CONTROL_PARAM_FULL_SCANPERIOD,
    ROAM_VENDOR_CONTROL_PARAM_PARTIAL_SCANPERIOD,
    ROAM_VENDOR_CONTROL_PARAM_ACTIVE_CH_DWELLTIME,
    ROAM_VENDOR_CONTROL_PARAM_PASSIVE_CH_DWELLTIME,
    ROAM_VENDOR_CONTROL_PARAM_HOME_CH_TIME,
    ROAM_VENDOR_CONTROL_PARAM_AWAY_TIME,
} WMI_ROAM_GET_VENDOR_CONTROL_PARAM_ID;
typedef struct {
    A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_vdev_get_vendor_param_cmd_fixed_param */
    /** unique id identifying the VDEV, generated by the caller */
    A_UINT32 vdev_id;
    /** Vendor Control Param ID from enum WMI_ROAM_GET_VENDOR_CONTROL_PARAM_ID */
    A_UINT32 param_id;
} wmi_roam_get_vendor_control_param_cmd_fixed_param;
/* WMI_ROAM_GET_VENDOR_CONTROL_PARAM_EVENTID - No need to make this event as wakeable event
 * Host ensures to take wakelock after sending WMI_ROAM_GET_VENDOR_CONTROL_PARAM_CMDID command */
typedef struct {
    A_UINT32 tlv_header; /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_roam_get_vendor_control_param_event_fixed_param */
    /** unique id identifying the VDEV, generated by the caller */
    A_UINT32 vdev_id;
    /** Vendor Control Param ID from enum WMI_ROAM_GET_VENDOR_CONTROL_PARAM_ID */
    A_UINT32 param_id;
    /** Vendor control param value */
    A_UINT32 param_value;
} wmi_roam_get_vendor_control_param_event_fixed_param;
/** the definition of different ROAM parameters */
typedef enum {
    /*  roam param to configure below roam events
+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_ 1149
#define __WMI_REVISION_ 1150

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