From: David Ruth Date: Mon, 5 Dec 2022 20:49:00 +0000 (+0000) Subject: nl80211: Actually get and store TX retries X-Git-Tag: hostap_2_11~1385 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2749a2c6bfb64141eba4c9112a2a5aebd6fdcfc4;p=thirdparty%2Fhostap.git 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 --- 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]);