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

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

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

WMI: add PDEV_ENABLE_LED_BLINK_DOWNLOAD_TABLE_CMD def
Change-Id: I3c3db569885ccba61f70d3307fe6a7b02a9ad804
CRs-Fixed: 2262693
parent d1dfc112
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -1419,6 +1419,8 @@ typedef enum {
    WMITLV_TAG_STRUC_wmi_peer_per_reorder_q_setup_params_t,
    WMITLV_TAG_STRUC_wmi_coex_multiple_config_cmd_fixed_param,
    WMITLV_TAG_STRUC_wmi_disallowed_mlo_mode_bitmap_param,
    WMITLV_TAG_STRUC_wmi_led_blink_rate_table,
    WMITLV_TAG_STRUC_wmi_enable_led_blink_download_rate_table_fixed_param,
} WMITLV_TAG_ID;
/*
 * IMPORTANT: Please add _ALL_ WMI Commands Here.
@@ -1960,6 +1962,7 @@ typedef enum {
    OP(WMI_AUDIO_TRANSPORT_SWITCH_RESP_STATUS_CMDID) \
    OP(WMI_PEER_MULTIPLE_REORDER_QUEUE_SETUP_CMDID) \
    OP(WMI_COEX_MULTIPLE_CONFIG_CMDID) \
    OP(WMI_PDEV_ENABLE_LED_BLINK_DOWNLOAD_TABLE_CMDID) \
    /* add new CMD_LIST elements above this line */


@@ -5522,6 +5525,12 @@ WMITLV_CREATE_PARAM_STRUC(WMI_MLO_LINK_SWITCH_CONF_CMDID);
        WMITLV_ELEM(id,op,buf,len, WMITLV_TAG_STRUC_wmi_pdev_wsi_stats_info_cmd_fixed_param, wmi_pdev_wsi_stats_info_cmd_fixed_param, fixed_param, WMITLV_SIZE_FIX)
WMITLV_CREATE_PARAM_STRUC(WMI_PDEV_WSI_STATS_INFO_CMDID);

/* Data Rate based GPIO LED blink and Rate Table Download command */
#define WMITLV_TABLE_WMI_PDEV_ENABLE_LED_BLINK_DOWNLOAD_TABLE_CMDID(id,op,buf,len) \
    WMITLV_ELEM(id,op,buf,len, WMITLV_TAG_STRUC_wmi_enable_led_blink_download_rate_table_fixed_param, wmi_enable_led_blink_download_rate_table_fixed_param, fixed_param, WMITLV_SIZE_FIX) \
    WMITLV_ELEM(id,op,buf,len, WMITLV_TAG_ARRAY_STRUC,wmi_led_blink_rate_table, led_blink_rate_table, WMITLV_SIZE_VAR)
WMITLV_CREATE_PARAM_STRUC(WMI_PDEV_ENABLE_LED_BLINK_DOWNLOAD_TABLE_CMDID);

/* CSA status indication  command to inform FW about host accepting or rejecting csa event*/
#define WMITLV_TABLE_WMI_CSA_EVENT_STATUS_INDICATION_CMDID(id,op,buf,len) \
    WMITLV_ELEM(id,op,buf,len, WMITLV_TAG_STRUC_wmi_csa_event_status_ind_fixed_param ,  wmi_csa_event_status_ind_fixed_param,fixed_param, WMITLV_SIZE_FIX)
+39 −0
Original line number Diff line number Diff line
@@ -516,6 +516,11 @@ typedef enum {
    WMI_PDEV_SET_RF_PATH_CMDID,
    /** WSI stats info WMI command */
    WMI_PDEV_WSI_STATS_INFO_CMDID,
    /*
     * WMI cmd to Enable LED blink based on Tx+Rx Data Rate
     * and download LED ON/OFF Rate table
     */
    WMI_PDEV_ENABLE_LED_BLINK_DOWNLOAD_TABLE_CMDID,
    /* VDEV (virtual device) specific commands */
@@ -37079,6 +37084,7 @@ static INLINE A_UINT8 *wmi_id_to_name(A_UINT32 wmi_command)
        WMI_RETURN_STRING(WMI_AUDIO_TRANSPORT_SWITCH_RESP_STATUS_CMDID);
        WMI_RETURN_STRING(WMI_PEER_MULTIPLE_REORDER_QUEUE_SETUP_CMDID);
        WMI_RETURN_STRING(WMI_COEX_MULTIPLE_CONFIG_CMDID);
        WMI_RETURN_STRING(WMI_PDEV_ENABLE_LED_BLINK_DOWNLOAD_TABLE_CMDID);
    }
    return (A_UINT8 *) "Invalid WMI cmd";
@@ -47229,6 +47235,39 @@ typedef struct {
    A_UINT32 pdev_id;
} wmi_pdev_utf_event_fixed_param;
typedef struct {
    /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_led_blink_rate_table */
    A_UINT32 tlv_header;
    A_UINT32 on_time;  /* units = milliseconds */
    A_UINT32 off_time; /* units = milliseconds */
} wmi_led_blink_rate_table;
typedef struct {
    /** TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_enable_led_blink_download_rate_table_fixed_param */
    A_UINT32 tlv_header;
    /* Pdev Id 0 or 1 based on split phy */
    A_UINT32 pdev_id;
    /* Feature enable or disable flag 0-disable 1-enable  */
    A_UINT32 blink_enable_flag;
    /* Bandwidth (Mbps) of each index in the blink rate table.
     * This quantum specification tells the FW which of the blink rate table
     * elements to use; the FW will divide the data rate by this bw_per_index
     * and round down, to obtain the index into the rate table for the blink
     * rate corresponding to the data rate.
     */
    A_UINT32 bw_per_index;
    /**
     * Following this fixed_param TLV are the following additional TLVs:
     *   - wmi_led_blink_rate_table led_blink_rate_table[]
     *     The led_blink_rate_table[] elements need to be ordered by
     *     increasing data rate, so that by dividing the data rate by
     *     bw_per_index, the FW can find which index/element of the
     *     led_blink_rate_table[] array to use.
     */
} wmi_enable_led_blink_download_rate_table_fixed_param;
typedef enum {
    /* Used when peer attempts connection with vdev */
    VDEV_OOB_CONNECT_REQUEST = 0,
+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_ 1418
#define __WMI_REVISION_ 1419

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