瀏覽代碼

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

HTT stats: add extra_eht_ltf counter and flag

Change-Id: I399bf4bdca499883366d49e96aacd8fc903719cf
CRs-Fixed: 2262693
spuligil 2 年之前
父節點
當前提交
76201f26fa
共有 2 個文件被更改,包括 20 次插入2 次删除
  1. 18 2
      fw/htt_ppdu_stats.h
  2. 2 0
      fw/htt_stats.h

+ 18 - 2
fw/htt_ppdu_stats.h

@@ -1,6 +1,6 @@
 /*
  * Copyright (c) 2017-2021 The Linux Foundation. All rights reserved.
- * Copyright (c) 2021-2022 Qualcomm Innovation Center, Inc. All rights reserved.
+ * Copyright (c) 2021-2023 Qualcomm Innovation Center, Inc. All rights reserved.
  *
  * Permission to use, copy, modify, and/or distribute this software for
  * any purpose with or without fee is hereby granted, provided that the
@@ -1796,6 +1796,19 @@ typedef enum HTT_PPDU_STATS_RESP_PPDU_TYPE HTT_PPDU_STATS_RESP_PPDU_TYPE;
         ((_var) |= ((_val) << HTT_PPDU_STATS_USER_RATE_TLV_PUNC_PATTERN_BITMAP_S)); \
     } while (0)
 
+#define HTT_PPDU_STATS_USER_RATE_TLV_EXTRA_EHT_LTF_M  0x00010000
+#define HTT_PPDU_STATS_USER_RATE_TLV_EXTRA_EHT_LTF_S          16
+
+#define HTT_PPDU_STATS_USER_RATE_TLV_EXTRA_EHT_LTF_GET(_var) \
+    (((_var) & HTT_PPDU_STATS_USER_RATE_TLV_EXTRA_EHT_LTF_M) >> \
+    HTT_PPDU_STATS_USER_RATE_TLV_EXTRA_EHT_LTF_S)
+
+#define HTT_PPDU_STATS_USER_RATE_TLV_EXTRA_EHT_LTF_SET (_var , _val) \
+    do { \
+        HTT_CHECK_SET_VAL(HTT_PPDU_STATS_USER_RATE_TLV_EXTRA_EHT_LTF, _val); \
+        ((_var) |= ((_val) << HTT_PPDU_STATS_USER_RATE_TLV_EXTRA_EHT_LTF_S)); \
+    } while (0)
+
 typedef enum HTT_PPDU_STATS_RU_SIZE {
     HTT_PPDU_STATS_RU_26,
     HTT_PPDU_STATS_RU_52,
@@ -1981,9 +1994,12 @@ typedef struct {
     /*
      * BIT [15:0]  :- Punctured BW bitmap pattern to indicate which BWs are
      *                punctured.
+     * BIT 16      :- flag showing whether EHT extra LTF is applied
+     *                for current PPDU
      */
     A_UINT32 punc_pattern_bitmap: 16,
-             reserved4:           16;
+             extra_eht_ltf:       1,
+             reserved4:           15;
 } htt_ppdu_stats_user_rate_tlv;
 
 #define HTT_PPDU_STATS_USR_RATE_VALID_M     0x80000000

+ 2 - 0
fw/htt_stats.h

@@ -4991,6 +4991,8 @@ typedef struct {
     A_UINT32 ax_su_embedded_trigger_data_ppdu_err;
     /** sta side trigger stats */
     A_UINT32 trigger_type_11be[HTT_TX_PDEV_STATS_NUM_11BE_TRIGGER_TYPES];
+    /** Stats for Extra EHT LTF */
+    A_UINT32 extra_eht_ltf;
 } htt_tx_pdev_rate_stats_tlv;
 
 typedef struct {