mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
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 <[email protected]> Acked-by: Johannes Berg <[email protected]> Signed-off-by: John W. Linville <[email protected]>
This commit is contained in:
parent
09be251e90
commit
b206b4ef06
4 changed files with 22 additions and 0 deletions
|
|
@ -1890,6 +1890,12 @@ static int nl80211_send_station(struct sk_buff *msg, u32 pid, u32 seq,
|
|||
if (sinfo->filled & STATION_INFO_TX_PACKETS)
|
||||
NLA_PUT_U32(msg, NL80211_STA_INFO_TX_PACKETS,
|
||||
sinfo->tx_packets);
|
||||
if (sinfo->filled & STATION_INFO_TX_RETRIES)
|
||||
NLA_PUT_U32(msg, NL80211_STA_INFO_TX_RETRIES,
|
||||
sinfo->tx_retries);
|
||||
if (sinfo->filled & STATION_INFO_TX_FAILED)
|
||||
NLA_PUT_U32(msg, NL80211_STA_INFO_TX_FAILED,
|
||||
sinfo->tx_failed);
|
||||
nla_nest_end(msg, sinfoattr);
|
||||
|
||||
return genlmsg_end(msg, hdr);
|
||||
|
|
|
|||
Loading…
Reference in a new issue