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

Commit d6e7bf3f authored by spuligil's avatar spuligil
Browse files

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

Change-Id: I3e9ef9e0f671ccd27315eb411af49dd1b7121b6d
WMI: add ESL_EGID_CMD msg def
CRs-Fixed: 2262693
parent 178f53bd
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -1332,6 +1332,7 @@ typedef enum {
    WMITLV_TAG_STRUC_WMI_COEX_FIX_CHANNEL_CAPABILITIES,
    WMITLV_TAG_STRUC_wmi_peer_sched_mode_disable_fixed_param,
    WMITLV_TAG_STRUC_wmi_per_peer_sched_mode_disable,
    WMITLV_TAG_STRUC_wmi_esl_egid_cmd_fixed_param,
} WMITLV_TAG_ID;

/*
@@ -1847,6 +1848,7 @@ typedef enum {
    OP(WMI_VDEV_SET_TWT_EDCA_PARAMS_CMDID) \
    OP(WMI_TAS_POWER_HISTORY_CMDID) \
    OP(WMI_PEER_SCHED_MODE_DISABLE_CMDID) \
    OP(WMI_ESL_EGID_CMDID) \
    /* add new CMD_LIST elements above this line */


@@ -4350,6 +4352,10 @@ WMITLV_CREATE_PARAM_STRUC(WMI_PEER_TX_FILTER_CMDID);
    WMITLV_ELEM(id,op,buf,len, WMITLV_TAG_STRUC_wmi_vdev_pn_mgmt_rx_filter_cmd_fixed_param, wmi_vdev_pn_mgmt_rx_filter_cmd_fixed_param, fixed_param, WMITLV_SIZE_FIX)
WMITLV_CREATE_PARAM_STRUC(WMI_VDEV_PN_MGMT_RX_FILTER_CMDID);

#define WMITLV_TABLE_WMI_ESL_EGID_CMDID(id,op,buf,len) \
    WMITLV_ELEM(id,op,buf,len, WMITLV_TAG_STRUC_wmi_esl_egid_cmd_fixed_param, wmi_esl_egid_cmd_fixed_param, fixed_param, WMITLV_SIZE_FIX)
WMITLV_CREATE_PARAM_STRUC(WMI_ESL_EGID_CMDID);

/* update a wds (4 address) entry */
#define WMITLV_TABLE_WMI_PEER_UPDATE_WDS_ENTRY_CMDID(id,op,buf,len) \
    WMITLV_ELEM(id,op,buf,len, WMITLV_TAG_STRUC_wmi_peer_update_wds_entry_cmd_fixed_param, wmi_peer_update_wds_entry_cmd_fixed_param, fixed_param, WMITLV_SIZE_FIX)
+40 −4
Original line number Diff line number Diff line
@@ -1344,6 +1344,7 @@ typedef enum {
    /** Dedicated BT Antenna Mode (DBAM) command */
    WMI_COEX_DBAM_CMDID,
    WMI_TAS_POWER_HISTORY_CMDID,
    WMI_ESL_EGID_CMDID,
    /**
     *  OBSS scan offload enable/disable commands
@@ -33131,6 +33132,7 @@ static INLINE A_UINT8 *wmi_id_to_name(A_UINT32 wmi_command)
        WMI_RETURN_STRING(WMI_VENDOR_VDEV_CMDID);
        WMI_RETURN_STRING(WMI_VENDOR_PEER_CMDID);
        WMI_RETURN_STRING(WMI_VDEV_SET_TWT_EDCA_PARAMS_CMDID); /* XPAN TWT */
        WMI_RETURN_STRING(WMI_ESL_EGID_CMDID);
    }
    return (A_UINT8 *) "Invalid WMI cmd";
@@ -41007,6 +41009,40 @@ typedef struct {
    A_UINT32 pn_rx_filter;
} wmi_vdev_pn_mgmt_rx_filter_cmd_fixed_param; /* Filter for Neighbor Rx Packets */
typedef struct {
    A_UINT32 tlv_header;
    /* egid_info:
     * Identify which ESL group is active and the duty cycle configured
     * for each group.
     * This is a 128-bit bitmap to represent 16 ESL sets, with each set
     * having 8 members.
     * For a given set, the 1-values within the 8-bit bitmap identify
     * which groups are active.  The number of active groups within each
     * set of 8 indirectly determines the WLAN/BT duty cycle:
     *     number of 1-bits    |
     *     within 8-bit bitmap | WLAN / BT duty cycle
     *     --------------------+----------------
     *            0            | 100 ms  WLAN
     *            1            | 87.5 ms WLAN, 12.5 ms BT
     *            2            | 75 ms   WLAN, 25 ms   BT
     *            3            | 62.5 ms WLAN, 37.5 ms BT
     *            4            | 50 ms   WLAN, 50 ms   BT
     *            5            | 37.5 ms WLAN, 62.5 ms BT
     *            6            | 25 ms   WLAN, 75 ms   BT
     *            7            | 12.5 ms WLAN, 87.5 ms BT
     *            8            |               100 ms  BT
     * The lowest bits in the bitmap represent the highest ESL groups,
     * E.g. bitmap bit 0 corresponds to ESL group 127, bit 1 corresponds
     * to ESL group 126, bit 7 corresponds to ESL group 120, bit 8
     * corresponds to ESL group 119, etc.
     *
     * So for example, if the lowest 8 bits of egid_info are 0x07, this
     * indicates that groups 125-127 are active and 120-124 are inactive,
     * and that the duty cycle is 62.5 ms WLAN + 37.5 ms BT.
     */
    A_UINT32 egid_info[4];
} wmi_esl_egid_cmd_fixed_param;
#define WMI_RTT_PASN_PEER_CREATE_SECURITY_MODE_GET(flag)          WMI_GET_BITS(flag, 0, 2)
#define WMI_RTT_PASN_PEER_CREATE_SECURITY_MODE_SET(flag,val)      WMI_SET_BITS(flag, 0, 2, val)
#define WMI_RTT_PASN_PEER_CREATE_FORCE_SELF_MAC_USE_GET(flag)     WMI_GET_BITS(flag, 2, 1)
+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_ 1256
#define __WMI_REVISION_ 1257

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