]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 24 May 2023 16:32:44 +0000 (17:32 +0100)
commit6a1a0d4fb9845d82bac3f7f6a3984f3a6210bdf7
treee89dc0da8069fbcbc50bc2b22316e09250df17df
parent2cae290eb334095f88db4e5a9048254f4d37e9a6
wifi: mt76: connac: fix stats->tx_bytes calculation

[ Upstream commit c7ab7a29ef5c0779574120d922256ce4651555d3 ]

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

Fixes: 80041b01ed48 ("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
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/wireless/mediatek/mt76/mt76_connac2_mac.h
drivers/net/wireless/mediatek/mt76/mt76_connac_mac.c