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

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

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

WMI: add more stats in ctrl_path_awgn_stats_struct
Also, piggyback fixes for the sar_flags TLV tag in READY_EXT2_EVENT, and the Windows definition of the WMI_VAR_LEN_ARRAY1 macro.

Change-Id: I5211f043eaafc234a06a2cc91b530904b9d0b3d1
CRs-Fixed: 2262693
parent b0d26ad1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -5630,7 +5630,7 @@ WMITLV_CREATE_PARAM_STRUC(WMI_SERVICE_READY_EXT_EVENTID);
    WMITLV_ELEM(id,op,buf,len, WMITLV_TAG_ARRAY_STRUC, wmi_aux_dev_capabilities, aux_dev_caps, WMITLV_SIZE_VAR) \
    WMITLV_ELEM(id,op,buf,len, WMITLV_TAG_ARRAY_STRUC, wmi_enhanced_aoa_caps_param, aoa_caps_param, WMITLV_SIZE_VAR) \
    WMITLV_ELEM(id,op,buf,len, WMITLV_TAG_ARRAY_STRUC, wmi_enhanced_aoa_per_band_caps_param, aoa_per_band_caps_param, WMITLV_SIZE_VAR) \
    WMITLV_ELEM(id,op,buf,len, WMITLV_TAG_STRUC_wmi_sar_flags, wmi_sar_flag_tlv_param, sar_flags, WMITLV_SIZE_VAR)
    WMITLV_ELEM(id,op,buf,len, WMITLV_TAG_ARRAY_STRUC, wmi_sar_flag_tlv_param, sar_flags, WMITLV_SIZE_VAR)
WMITLV_CREATE_PARAM_STRUC(WMI_SERVICE_READY_EXT2_EVENTID);

#define WMITLV_TABLE_WMI_SPECTRAL_CAPABILITIES_EVENTID(id,op,buf,len) \
+67 −13
Original line number Diff line number Diff line
@@ -102,6 +102,9 @@ extern "C" {
    #define WMI_DUMMY_ZERO_LEN_FIELD struct {} dummy_zero_len_field
#endif
#if defined(__WINDOWS__)
    #define WMI_VAR_LEN_ARRAY1(type, name) type name[1]
#else
    #define WMI_VAR_LEN_ARRAY1(type, name) \
        union { \
            type name ## __first_elem; \
@@ -110,6 +113,7 @@ extern "C" {
                type name[]; \
            }; \
        }
#endif
#define ATH_MAC_LEN             6               /**< length of MAC in bytes */
#define WMI_EVENT_STATUS_SUCCESS 0 /* Success return status to host */
@@ -13217,13 +13221,63 @@ typedef struct {
    A_UINT32 awgn_cca_ack_reset_cnt;
    /*
     * AWGN int BW cnt used to store interference occurred at 20/40/80/160MHz
     * bw_cnt[0] counts interference detections in 20 MHz BW,
     * bw_cnt[1] counts interference detections in 40 MHz BW,
     * bw_cnt[2] counts interference detections in 80 MHz BW,
     * bw_cnt[3] counts interference detections in 160 MHz BW,
     * bw_cnt[4] and bw_cnt[6] are reserved for 240 MHz and 320 MHz.
     * awgn_int_bw_cnt[0] counts interference detections in 20 MHz BW,
     * awgn_int_bw_cnt[1] counts interference detections in 40 MHz BW,
     * awgn_int_bw_cnt[2] counts interference detections in 80 MHz BW,
     * awgn_int_bw_cnt[3] counts interference detections in 160 MHz BW,
     * awgn_int_bw_cnt[4] is reserved for 240 MHz BW,
     * awgn_int_bw_cnt[5] counts interference detections in 320 MHz BW.
     */
    A_UINT32 awgn_int_bw_cnt[WMI_AWGN_MAX_BW];
    /* Number of OBSS interference occurred */
    A_UINT32 obss_int_cnt;
    /* Number of OBSS interference Sent to host */
    A_UINT32 obss_int_evt_sent_host_cnt;
    /* Number of OBSS interference skiped due to AWGN as high priority */
    A_UINT32 obss_int_evt_skip_awgn_cnt;
    /* Number of OBSS interference skiped due to duplicate OBSS interference */
    A_UINT32 obss_int_evt_skip_dup_cnt;
    /* Current OBSS interference segment details
     * chan_bw_interference_bitmap:
     * Indicates which 20MHz segments contain interference
     *  320 MHz: bits 0-15
     *  160 MHz: bits 0-7
     *   80 MHz: bits 0-3
     * Within the bitmap, Bit-0 represents lowest 20Mhz, Bit-1 represents
     * second lowest 20Mhz and so on.
     * Each bit position will indicate 20MHz in which interference is seen.
     * (Valid 16 bits out of 32 bit integer)
     */
    A_UINT32 obss_int_cur_int_seg;
    /* Previous OBSS Int Segment details
     * chan_bw_interference_bitmap:
     * Indicates which 20MHz segments contain interference
     *  320 MHz: bits 0-15
     *  160 MHz: bits 0-7
     *   80 MHz: bits 0-3
     * Within the bitmap, Bit-0 represents lowest 20Mhz, Bit-1 represents
     * second lowest 20Mhz and so on.
     * Each bit position will indicate 20MHz in which interference is seen.
     * (Valid 16 bits out of 32 bit integer)
     */
    A_UINT32 obss_int_prv_int_seg;
    /*
     * OBSS int BW cnt used to store interference occurred at 20/40/80/160MHz
     * obss_int_bw_cnt[0] counts interference detections in 20 MHz BW,
     * obss_int_bw_cnt[1] counts interference detections in 40 MHz BW,
     * obss_int_bw_cnt[2] counts interference detections in 80 MHz BW,
     * obss_int_bw_cnt[3] counts interference detections in 160 MHz BW,
     * obss_int_bw_cnt[4] counts interference detections in 240 MHz BW,
     * obss_int_bw_cnt[5] counts interference detections in 320 MHz BW,
     */
    A_UINT32 obss_int_bw_cnt[WMI_AWGN_MAX_BW];
} wmi_ctrl_path_awgn_stats_struct;
typedef struct {
+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_ 1441
#define __WMI_REVISION_ 1442

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