diff options
author | Ryder Lee <ryder.lee@mediatek.com> | 2022-08-11 00:40:44 +0800 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2022-09-15 12:54:01 +0200 |
commit | 43eaa3689507a9545a6a8b3af1459fa386780a31 (patch) | |
tree | 955cbb4ce68b18f31f21abe4475ea84f0d970e81 /drivers/net/wireless/mediatek/mt76/mt76_connac2_mac.h | |
parent | dc877523e6c45073f306aa91fb52e84b365a276b (diff) | |
download | linux-stable-43eaa3689507a9545a6a8b3af1459fa386780a31.tar.gz linux-stable-43eaa3689507a9545a6a8b3af1459fa386780a31.tar.bz2 linux-stable-43eaa3689507a9545a6a8b3af1459fa386780a31.zip |
wifi: mt76: add PPDU based TxS support for WED device
Given that there's no data coming from network stack for binding flows,
hence driver counts and reports station's statistics directly through
NL80211_STA_INFO_* based on active PPDU based TxS for offloading data.
Apart from that, WA firmware and its offloading engine (SDO) have hardcoded
"2" as PID, so we introduce MT_PACKET_ID_WED to differentiate WED reporting.
Note that PPDU format TxS is mutually exclusive with MT_TXD5_TX_STATUS_HOST.
Co-developed-by: Yi-Chia Hsieh <yi-chia.hsieh@mediatek.com>
Signed-off-by: Yi-Chia Hsieh <yi-chia.hsieh@mediatek.com>
Signed-off-by: Ryder Lee <ryder.lee@mediatek.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'drivers/net/wireless/mediatek/mt76/mt76_connac2_mac.h')
-rw-r--r-- | drivers/net/wireless/mediatek/mt76/mt76_connac2_mac.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/net/wireless/mediatek/mt76/mt76_connac2_mac.h b/drivers/net/wireless/mediatek/mt76/mt76_connac2_mac.h index 67ce216fb564..f33171bcd343 100644 --- a/drivers/net/wireless/mediatek/mt76/mt76_connac2_mac.h +++ b/drivers/net/wireless/mediatek/mt76/mt76_connac2_mac.h @@ -158,6 +158,14 @@ enum { #define MT_TXS4_TIMESTAMP GENMASK(31, 0) +/* PPDU based TXS */ +#define MT_TXS5_MPDU_TX_BYTE GENMASK(22, 0) +#define MT_TXS5_MPDU_TX_CNT GENMASK(31, 23) + +#define MT_TXS6_MPDU_FAIL_CNT GENMASK(31, 23) + +#define MT_TXS7_MPDU_RETRY_CNT GENMASK(31, 23) + /* RXD DW1 */ #define MT_RXD1_NORMAL_WLAN_IDX GENMASK(9, 0) #define MT_RXD1_NORMAL_GROUP_1 BIT(11) |