浏览代码

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

HTT stats: add rx RSSI fields within new TLV

Change-Id: Ibf4c4c36f131d312bed9c456019f1ffa876e23a5
CRs-Fixed: 2262693
spuligil 5 年之前
父节点
当前提交
c22e87a9ec
共有 1 个文件被更改,包括 30 次插入0 次删除
  1. 30 0
      fw/htt_stats.h

+ 30 - 0
fw/htt_stats.h

@@ -329,6 +329,15 @@ enum htt_dbg_ext_stats_type {
      */
     HTT_DBG_EXT_PEER_CTRL_PATH_TXRX_STATS = 29,
 
+    /* HTT_DBG_EXT_STATS_PDEV_RX_RATE_EXT
+     * PARAMS:
+     *   - No Params
+     * RESP MSG:
+     *   - htt_rx_pdev_rate_ext_stats_t
+     */
+    HTT_DBG_EXT_STATS_PDEV_RX_RATE_EXT    = 30,
+
+
     /* keep this last */
     HTT_DBG_NUM_EXT_STATS = 256,
 };
@@ -1269,6 +1278,7 @@ typedef enum {
  * bw index 7 (bw ext index 3): rssi_ext80_high20_chain0
  */
 #define HTT_RX_PEER_STATS_NUM_BW_EXT_COUNTERS 4
+#define HTT_RX_PDEV_STATS_NUM_BW_EXT_COUNTERS 4
 #define HTT_TX_PEER_STATS_NUM_SPATIAL_STREAMS 8
 #define HTT_TX_PEER_STATS_NUM_PREAMBLE_TYPES HTT_STATS_PREAM_COUNT
 
@@ -3372,6 +3382,26 @@ typedef struct {
     htt_rx_pdev_rate_stats_tlv rate_tlv;
 } htt_rx_pdev_rate_stats_t;
 
+typedef struct {
+    htt_tlv_hdr_t tlv_hdr;
+    A_UINT8  rssi_chain_ext[HTT_RX_PDEV_STATS_NUM_SPATIAL_STREAMS][HTT_RX_PDEV_STATS_NUM_BW_EXT_COUNTERS]; /* units = dB above noise floor */
+    A_INT8   rx_per_chain_rssi_ext_in_dbm[HTT_RX_PDEV_STATS_NUM_SPATIAL_STREAMS][HTT_RX_PDEV_STATS_NUM_BW_EXT_COUNTERS];
+    A_INT32  rssi_mcast_in_dbm; /* rx mcast signal strength value in dBm unit */
+    A_INT32  rssi_mgmt_in_dbm; /* rx mgmt packet signal Strength value in dBm unit */
+} htt_rx_pdev_rate_ext_stats_tlv;
+
+/* STATS_TYPE : HTT_DBG_EXT_STATS_PDEV_RX_RATE_EXT
+ * TLV_TAGS:
+ *      - HTT_STATS_RX_PDEV_RATE_EXT_STATS_TAG
+ */
+/* NOTE:
+ * This structure is for documentation, and cannot be safely used directly.
+ * Instead, use the constituent TLV structures to fill/parse.
+ */
+typedef struct {
+    htt_rx_pdev_rate_ext_stats_tlv rate_tlv;
+} htt_rx_pdev_rate_ext_stats_t;
+
 #define HTT_STATS_CMN_MAC_ID_M 0x000000ff
 #define HTT_STATS_CMN_MAC_ID_S 0