aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
Diffstat (limited to 'net')
-rw-r--r--net/mac80211/cfg.c4
-rw-r--r--net/wireless/nl80211.c6
2 files changed, 10 insertions, 0 deletions
diff --git a/net/mac80211/cfg.c b/net/mac80211/cfg.c
index 8b0e874a3d65..2e5a3fb38efe 100644
--- a/net/mac80211/cfg.c
+++ b/net/mac80211/cfg.c
@@ -327,6 +327,8 @@ static void sta_set_sinfo(struct sta_info *sta, struct station_info *sinfo)
327 STATION_INFO_TX_BYTES | 327 STATION_INFO_TX_BYTES |
328 STATION_INFO_RX_PACKETS | 328 STATION_INFO_RX_PACKETS |
329 STATION_INFO_TX_PACKETS | 329 STATION_INFO_TX_PACKETS |
330 STATION_INFO_TX_RETRIES |
331 STATION_INFO_TX_FAILED |
330 STATION_INFO_TX_BITRATE; 332 STATION_INFO_TX_BITRATE;
331 333
332 sinfo->inactive_time = jiffies_to_msecs(jiffies - sta->last_rx); 334 sinfo->inactive_time = jiffies_to_msecs(jiffies - sta->last_rx);
@@ -334,6 +336,8 @@ static void sta_set_sinfo(struct sta_info *sta, struct station_info *sinfo)
334 sinfo->tx_bytes = sta->tx_bytes; 336 sinfo->tx_bytes = sta->tx_bytes;
335 sinfo->rx_packets = sta->rx_packets; 337 sinfo->rx_packets = sta->rx_packets;
336 sinfo->tx_packets = sta->tx_packets; 338 sinfo->tx_packets = sta->tx_packets;
339 sinfo->tx_retries = sta->tx_retry_count;
340 sinfo->tx_failed = sta->tx_retry_failed;
337 341
338 if ((sta->local->hw.flags & IEEE80211_HW_SIGNAL_DBM) || 342 if ((sta->local->hw.flags & IEEE80211_HW_SIGNAL_DBM) ||
339 (sta->local->hw.flags & IEEE80211_HW_SIGNAL_UNSPEC)) { 343 (sta->local->hw.flags & IEEE80211_HW_SIGNAL_UNSPEC)) {
diff --git a/net/wireless/nl80211.c b/net/wireless/nl80211.c
index 9942f0b061ff..524f55402838 100644
--- a/net/wireless/nl80211.c
+++ b/net/wireless/nl80211.c
@@ -1890,6 +1890,12 @@ static int nl80211_send_station(struct sk_buff *msg, u32 pid, u32 seq,
1890 if (sinfo->filled & STATION_INFO_TX_PACKETS) 1890 if (sinfo->filled & STATION_INFO_TX_PACKETS)
1891 NLA_PUT_U32(msg, NL80211_STA_INFO_TX_PACKETS, 1891 NLA_PUT_U32(msg, NL80211_STA_INFO_TX_PACKETS,
1892 sinfo->tx_packets); 1892 sinfo->tx_packets);
1893 if (sinfo->filled & STATION_INFO_TX_RETRIES)
1894 NLA_PUT_U32(msg, NL80211_STA_INFO_TX_RETRIES,
1895 sinfo->tx_retries);
1896 if (sinfo->filled & STATION_INFO_TX_FAILED)
1897 NLA_PUT_U32(msg, NL80211_STA_INFO_TX_FAILED,
1898 sinfo->tx_failed);
1893 nla_nest_end(msg, sinfoattr); 1899 nla_nest_end(msg, sinfoattr);
1894 1900
1895 return genlmsg_end(msg, hdr); 1901 return genlmsg_end(msg, hdr);