wifi: mt76: connac: fix stats->tx_bytes calculation
authorRyder Lee <ryder.lee@mediatek.com>
Sun, 23 Apr 2023 21:39:06 +0000 (05:39 +0800)
committerKalle Valo <kvalo@kernel.org>
Fri, 12 May 2023 08:21:08 +0000 (11:21 +0300)
commitc7ab7a29ef5c0779574120d922256ce4651555d3
tree26ec336f801b0614d52ed1eea6bb9e1b8a678ca7
parentcdc26ee89bddb9b6b2ae026a46d97855d5ba6694
wifi: mt76: connac: fix stats->tx_bytes calculation

The stats->tx_bytes shall subtract retry byte from tx byte.

Fixes: 43eaa3689507 ("wifi: mt76: add PPDU based TxS support for WED device")
Signed-off-by: Ryder Lee <ryder.lee@mediatek.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/b3cd45596943cf5a06b2e08e2fe732ab0b51311b.1682285873.git.ryder.lee@mediatek.com
drivers/net/wireless/mediatek/mt76/mt76_connac2_mac.h
drivers/net/wireless/mediatek/mt76/mt76_connac_mac.c