nl80211: Actually get and store TX retries

Fix an issue that results in TX failures being stored where TX retries
belongs.

Fixes: ad4fa5dd3c ("Add more nl80211 info to struct wpa_signal_info")
Signed-off-by: David Ruth <druth@chromium.org>
This commit is contained in:
David Ruth 2022-12-05 20:49:00 +00:00 committed by Jouni Malinen
parent 998aeca3c8
commit 2749a2c6bf

View 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]);