]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
nl80211: Actually get and store TX retries
authorDavid Ruth <druth@chromium.org>
Mon, 5 Dec 2022 20:49:00 +0000 (20:49 +0000)
committerJouni Malinen <j@w1.fi>
Fri, 16 Dec 2022 20:50:48 +0000 (22:50 +0200)
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 <druth@chromium.org>
src/drivers/driver_nl80211.c

index c04b71bbecb4be9ccf54ffa82800277ede1ee152..1b76fcc4faef2700d62a99ded76eb1b212d44bb2 100644 (file)
@@ -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]);