[PATCH] Actually get and store TX Retries.

David Ruth druth at chromium.org
Mon Dec 5 12:49:00 PST 2022


Fix an issue from commit ad4fa5dd3cf1168676715dcd2dea0c2c9b258d23 that
results in TX Failures being stored where TX Retries belongs.

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

---

 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]);
-- 
2.39.0.rc0.267.gcb52ba06e7-goog




More information about the Hostap mailing list