From 2749a2c6bfb64141eba4c9112a2a5aebd6fdcfc4 Mon Sep 17 00:00:00 2001 From: David Ruth Date: Mon, 5 Dec 2022 20:49:00 +0000 Subject: [PATCH] nl80211: Actually get and store TX retries Fix an issue that results in TX failures being stored where TX retries belongs. Fixes: ad4fa5dd3cf1 ("Add more nl80211 info to struct wpa_signal_info") Signed-off-by: David Ruth --- src/drivers/driver_nl80211.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]);