aboutsummaryrefslogtreecommitdiffstats
path: root/net/wireless
diff options
context:
space:
mode:
authorBruno Randolf <br1@einfach.org>2010-10-06 05:34:12 -0400
committerJohn W. Linville <linville@tuxdriver.com>2010-10-06 16:30:43 -0400
commitb206b4ef062d83c0875a085672ed50e8c8b01521 (patch)
treef182cc272055f7b646bc62a5d37fb097a8fd07cc /net/wireless
parent09be251e9005ebd67e5eabcaad904edb7ecacc55 (diff)
nl80211/mac80211: Add retry and failed transmission count to station info
This information is already available in mac80211, we just need to export it via cfg80211 and nl80211. Signed-off-by: Bruno Randolf <br1@einfach.org> Acked-by: Johannes Berg <johannes@sipsolutions.net> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/wireless')
-rw-r--r--net/wireless/nl80211.c6
1 files changed, 6 insertions, 0 deletions
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);