[][[mt76][csi][mt7915][mt7986] update csi feature]
[Description]
Add fw timestamp filter
Add support for bw160.
[Release-log]
Change-Id: I1764fcf611ceec5ffa637e3a5edcb523476f6b9b
Reviewed-on: https://gerrit.mediatek.inc/c/openwrt/feeds/mtk_openwrt_feeds/+/8310376
diff --git a/feed/mt76-vendor/src/mt76-vendor.h b/feed/mt76-vendor/src/mt76-vendor.h
index 61b0426..b591575 100644
--- a/feed/mt76-vendor/src/mt76-vendor.h
+++ b/feed/mt76-vendor/src/mt76-vendor.h
@@ -52,6 +52,7 @@
MTK_VENDOR_ATTR_CSI_CTRL_CFG_VAL2,
MTK_VENDOR_ATTR_CSI_CTRL_MAC_ADDR,
MTK_VENDOR_ATTR_CSI_CTRL_INTERVAL,
+ MTK_VENDOR_ATTR_CSI_CTRL_STA_INTERVAL,
MTK_VENDOR_ATTR_CSI_CTRL_DUMP_NUM,
@@ -74,6 +75,7 @@
MTK_VENDOR_ATTR_CSI_DATA_BW,
MTK_VENDOR_ATTR_CSI_DATA_CH_IDX,
MTK_VENDOR_ATTR_CSI_DATA_TA,
+ MTK_VENDOR_ATTR_CSI_DATA_NUM,
MTK_VENDOR_ATTR_CSI_DATA_I,
MTK_VENDOR_ATTR_CSI_DATA_Q,
MTK_VENDOR_ATTR_CSI_DATA_INFO,
@@ -84,7 +86,7 @@
MTK_VENDOR_ATTR_CSI_DATA_TX_ANT,
MTK_VENDOR_ATTR_CSI_DATA_RX_ANT,
MTK_VENDOR_ATTR_CSI_DATA_MODE,
- MTK_VENDOR_ATTR_CSI_DATA_H_IDX,
+ MTK_VENDOR_ATTR_CSI_DATA_CHAIN_INFO,
/* keep last */
NUM_MTK_VENDOR_ATTRS_CSI_DATA,
@@ -199,23 +201,33 @@
NUM_MTK_VENDOR_ATTRS_PHY_CAPA_DUMP - 1
};
-#define CSI_MAX_COUNT 256
+#define CSI_BW20_DATA_COUNT 64
+#define CSI_BW40_DATA_COUNT 128
+#define CSI_BW80_DATA_COUNT 256
+#define CSI_BW160_DATA_COUNT 512
#define ETH_ALEN 6
struct csi_data {
- s16 data_i[CSI_MAX_COUNT];
- s16 data_q[CSI_MAX_COUNT];
+ u8 ch_bw;
+ u16 data_num;
+ s16 data_i[CSI_BW160_DATA_COUNT];
+ s16 data_q[CSI_BW160_DATA_COUNT];
+ u8 band;
s8 rssi;
u8 snr;
u32 ts;
u8 data_bw;
u8 pri_ch_idx;
u8 ta[ETH_ALEN];
- u32 info;
+ u32 ext_info;
u8 rx_mode;
- u32 h_idx;
+ u32 chain_info;
u16 tx_idx;
u16 rx_idx;
+ u32 segment_num;
+ u8 remain_last;
+ u16 pkt_sn;
+ u8 tr_stream;
};
struct amnt_data {