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

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

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

Change-Id: I28170c59b5a109b2465726a69973ceeaaa5d0eae
CRs-Fixed: 3830439
parent 14605dbe
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -687,7 +687,7 @@ typedef enum {
    WMI_SERVICE_USD_SUPPORT = 428, /* Indicates FW supports Unsynchronized Service Discovery */
    WMI_SERVICE_THERM_THROT_5_LEVELS = 429, /* Indicates FW support 5 thermal throttling levels */
    WMI_SERVICE_PROTECTED_TWT = 430, /* Indicates FW supports protected TWT operation */

    WMI_SERVICE_SCAN_CACHE_REPORT_SUPPORT = 431, /* Indicates FW supports for sending scan cache report */

    WMI_MAX_EXT2_SERVICE

+16 −0
Original line number Diff line number Diff line
@@ -1454,6 +1454,9 @@ typedef enum {
    WMITLV_TAG_STRUC_wmi_pdev_power_boost_cmd_fixed_param,
    WMITLV_TAG_STRUC_wmi_pdev_power_boost_mem_addr_cmd_fixed_param,
    WMITLV_TAG_STRUC_wmi_c2c_detect_event_fixed_param,
    WMITLV_TAG_STRUC_wmi_get_scan_cache_result_cmd_fixed_param,
    WMITLV_TAG_STRUC_wmi_scan_cache_result_event_fixed_param,
    WMITLV_TAG_STRUC_wmi_scan_cache_info,
} WMITLV_TAG_ID;
/*
 * IMPORTANT: Please add _ALL_ WMI Commands Here.
@@ -2010,6 +2013,7 @@ typedef enum {
    OP(WMI_USD_SERVICE_CMDID) \
    OP(WMI_PDEV_POWER_BOOST_CMDID) \
    OP(WMI_PDEV_POWER_BOOST_MEM_ADDR_CMDID) \
    OP(WMI_GET_SCAN_CACHE_RESULT_CMDID) \
    /* add new CMD_LIST elements above this line */


@@ -2340,6 +2344,7 @@ typedef enum {
    OP(WMI_USD_SERVICE_EVENTID) \
    OP(WMI_PDEV_POWER_BOOST_EVENTID) \
    OP(WMI_C2C_DETECT_EVENTID) \
    OP(WMI_SCAN_CACHE_RESULT_EVENTID) \
    /* add new EVT_LIST elements above this line */


@@ -5684,6 +5689,11 @@ WMITLV_CREATE_PARAM_STRUC(WMI_PDEV_POWER_BOOST_CMDID);
    WMITLV_ELEM(id,op,buf,len, WMITLV_TAG_STRUC_wmi_pdev_power_boost_mem_addr_cmd_fixed_param, wmi_pdev_power_boost_mem_addr_cmd_fixed_param, fixed_param, WMITLV_SIZE_FIX)
WMITLV_CREATE_PARAM_STRUC(WMI_PDEV_POWER_BOOST_MEM_ADDR_CMDID);

/* WMI command to send scan cache result */
#define WMITLV_TABLE_WMI_GET_SCAN_CACHE_RESULT_CMDID(id,op,buf,len) \
    WMITLV_ELEM(id,op,buf,len, WMITLV_TAG_STRUC_wmi_get_scan_cache_result_cmd_fixed_param, wmi_get_scan_cache_result_cmd_fixed_param, fixed_param, WMITLV_SIZE_FIX)
WMITLV_CREATE_PARAM_STRUC(WMI_GET_SCAN_CACHE_RESULT_CMDID);



/************************** TLV definitions of WMI events *******************************/
@@ -7762,6 +7772,12 @@ WMITLV_CREATE_PARAM_STRUC(WMI_USD_SERVICE_EVENTID);
    WMITLV_ELEM(id,op,buf,len, WMITLV_TAG_STRUC_wmi_pdev_power_boost_event_fixed_param, wmi_pdev_power_boost_event_fixed_param, fixed_param, WMITLV_SIZE_FIX)
WMITLV_CREATE_PARAM_STRUC(WMI_PDEV_POWER_BOOST_EVENTID);

#define WMITLV_TABLE_WMI_SCAN_CACHE_RESULT_EVENTID(id, op , buf, len) \
    WMITLV_ELEM(id,op,buf,len, WMITLV_TAG_STRUC_wmi_scan_cache_result_event_fixed_param, wmi_scan_cache_result_fixed_param, fixed_param, WMITLV_SIZE_FIX) \
    WMITLV_ELEM(id,op,buf,len, WMITLV_TAG_ARRAY_UINT32, A_UINT32, scan_freq_list, WMITLV_SIZE_VAR) \
    WMITLV_ELEM(id,op,buf,len, WMITLV_TAG_ARRAY_STRUC, wmi_scan_cache_info, scan_cache_info, WMITLV_SIZE_VAR)
WMITLV_CREATE_PARAM_STRUC(WMI_SCAN_CACHE_RESULT_EVENTID);


#ifdef __cplusplus
}
+73 −0
Original line number Diff line number Diff line
@@ -1350,6 +1350,9 @@ typedef enum {
    /** Unsynchronized Service Discovery */
    WMI_USD_SERVICE_CMDID,
    /** WMI command to get scan cached result */
    WMI_GET_SCAN_CACHE_RESULT_CMDID,
    /*  Offload 11k related requests */
    WMI_11K_OFFLOAD_REPORT_CMDID = WMI_CMD_GRP_START_ID(WMI_GRP_11K_OFFLOAD),
@@ -2386,6 +2389,9 @@ typedef enum {
     */
    WMI_USD_SERVICE_EVENTID,
    /* WMI event to send scan cached results */
    WMI_SCAN_CACHE_RESULT_EVENTID,
    /* GPIO Event */
    WMI_GPIO_INPUT_EVENTID = WMI_EVT_GRP_START_ID(WMI_GRP_GPIO),
@@ -38379,6 +38385,7 @@ static INLINE A_UINT8 *wmi_id_to_name(A_UINT32 wmi_command)
        WMI_RETURN_STRING(WMI_USD_SERVICE_CMDID);
        WMI_RETURN_STRING(WMI_PDEV_POWER_BOOST_CMDID);
        WMI_RETURN_STRING(WMI_PDEV_POWER_BOOST_MEM_ADDR_CMDID);
        WMI_RETURN_STRING(WMI_GET_SCAN_CACHE_RESULT_CMDID);
    }
    return (A_UINT8 *) "Invalid WMI cmd";
@@ -49334,6 +49341,72 @@ typedef struct {
    A_UINT32 size;
} wmi_pdev_power_boost_mem_addr_cmd_fixed_param;
typedef struct {
    /* WMITLV_TAG_STRUC_wmi_get_scan_cache_result_cmd_fixed_param */
    A_UINT32 tlv_header;
} wmi_get_scan_cache_result_cmd_fixed_param;
/* Element ID 61 (HT Operation) is present (see HT 7.3.2) */
#define WIFI_CACHED_SCAN_RESULT_FLAGS_HT_OPS_PRESENT_GET(flags)  WMI_GET_BITS(flags, 0, 1)
#define WIFI_CACHED_SCAN_RESULT_FLAGS_HT_OPS_PRESENT_SET(flags, value) WMI_SET_BITS(flags, 0, 1, value)
/* Element ID 192 (VHT Operation) is present (see VHT 8.4.2)  */
#define WIFI_CACHED_SCAN_RESULT_FLAGS_VHT_OPS_PRESENT_GET(flags)  WMI_GET_BITS(flags, 1, 1)
#define WIFI_CACHED_SCAN_RESULT_FLAGS_VHT_OPS_PRESENT_SET(flags, value) WMI_SET_BITS(flags, 1, 1, value)
/* Element ID 255 + Extension 36 (HE Operation) is present (see 802.11ax 9.4.2.1) */
#define WIFI_CACHED_SCAN_RESULT_FLAGS_HE_OPS_PRESENT_GET(flags)  WMI_GET_BITS(flags, 2, 1)
#define WIFI_CACHED_SCAN_RESULT_FLAGS_HE_OPS_PRESENT_SET(flags, value) WMI_SET_BITS(flags, 2, 1, value)
/* Element ID 255 + Extension 106 (EHT Operation) is present(see 802.11be D1.5 9.4.2.1) */
#define WIFI_CACHED_SCAN_RESULT_FLAGS_EHT_OPS_PRESENT_GET(flags)  WMI_GET_BITS(flags, 3, 1)
#define WIFI_CACHED_SCAN_RESULT_FLAGS_EHT_OPS_PRESENT_SET(flags, value) WMI_SET_BITS(flags, 3, 1, value)
/* Element ID 127 (Extended Capabilities) is present, and bit 70 (Fine Timing Measurement Responder) is set to 1 (see IEEE Std 802.11-2016 9.4.2.27) */
#define WIFI_CACHED_SCAN_RESULT_FLAGS_IS_FTM_RESPONDER_GET(flags)  WMI_GET_BITS(flags, 4, 1)
#define WIFI_CACHED_SCAN_RESULT_FLAGS_IS_FTM_RESPONDER_SET(flags, value) WMI_SET_BITS(flags, 4, 1, value)
typedef struct {
    wmi_channel_width width;
    A_UINT32 center_frequency0; /* Frequency value in MHz */
    A_UINT32 center_frequency1; /* Frequency value in MHz */
    A_UINT32 primary_frequency; /* Frequency value in MHz */
} wifi_channel_spec;
typedef struct {
    A_UINT32 tlv_header;  /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_scan_cache_info */
    /* age_ms:
     * Number of milliseconds prior to WMI_GET_SCAN_CACHE_RESULT_CMDID
     * from when the probe response or beacon frame that was used to
     * populate this info.
     */
    A_UINT32 age_ms;
    /* The Capability Information field from beacon or probe response frame */
    A_UINT32 capability;
    wmi_ssid ssid;
    wmi_mac_addr bssid;
    /* A set of flags from WIFI_CACHED_SCAN_RESULT_FLAGS_* */
    A_UINT32 flags;
    A_INT32 rssi; /* units = dBm */
    wifi_channel_spec chanspec;
} wmi_scan_cache_info;
typedef struct {
    A_UINT32 tlv_header;  /* TLV tag and len; tag equals WMITLV_TAG_STRUC_wmi_scan_cache_result_event_fixed_param */
    /* The below TLVs follow this TLV in the WMI_SCAN_CACHE_RESULT_EVENT msg:
     *   - A_UINT32 scan_freq_list[];
     *   - struct wmi_scan_cache_info scan_cache_info[];
     */
} wmi_scan_cache_result_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_ 1531
#define __WMI_REVISION_ 1532

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