diff mbox series

Actually get and store TX Retries.

Message ID 20221205204900.601856-1-druth@chromium.org
State Accepted
Headers show
Series Actually get and store TX Retries. | expand

Commit Message

David Ruth Dec. 5, 2022, 8:49 p.m. UTC
Fix an issue from commit ad4fa5dd3cf1168676715dcd2dea0c2c9b258d23 that
results in TX Failures being stored where TX Retries belongs.

Signed-off-by: David Ruth <druth@chromium.org>

---

 src/drivers/driver_nl80211.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Jouni Malinen Dec. 16, 2022, 9:26 p.m. UTC | #1
On Mon, Dec 05, 2022 at 08:49:00PM +0000, David Ruth wrote:
> Fix an issue from commit ad4fa5dd3cf1168676715dcd2dea0c2c9b258d23 that
> results in TX Failures being stored where TX Retries belongs.

Thanks, applied.
diff mbox series

Patch

diff --git a/src/drivers/driver_nl80211.c b/src/drivers/driver_nl80211.c
index c04b71bbe..1b76fcc4f 100644
--- a/src/drivers/driver_nl80211.c
+++ b/src/drivers/driver_nl80211.c
@@ -7432,7 +7432,7 @@  static int get_sta_handler(struct nl_msg *msg, void *arg)
 			nla_get_u32(stats[NL80211_STA_INFO_TX_PACKETS]);
 	if (stats[NL80211_STA_INFO_TX_RETRIES])
 		data->tx_retry_count =
-			nla_get_u32(stats[NL80211_STA_INFO_TX_FAILED]);
+			nla_get_u32(stats[NL80211_STA_INFO_TX_RETRIES]);
 	if (stats[NL80211_STA_INFO_TX_FAILED])
 		data->tx_retry_failed =
 			nla_get_u32(stats[NL80211_STA_INFO_TX_FAILED]);