{mac|nl}80211: Add station connected time
Add station connected time in debugfs. This will be helpful to get a measure of stability of the connection and for debugging stress issues Cc: Senthilkumar Balasubramanian <Senthilkumar.Balasubramanian@Atheros.com> Signed-off-by: Mohammed Shafi Shajakhan <mshajakhan@atheros.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:

committed by
John W. Linville

parent
f60c49b67d
commit
ebe27c91af
@@ -2020,6 +2020,9 @@ static int nl80211_send_station(struct sk_buff *msg, u32 pid, u32 seq,
|
||||
sinfoattr = nla_nest_start(msg, NL80211_ATTR_STA_INFO);
|
||||
if (!sinfoattr)
|
||||
goto nla_put_failure;
|
||||
if (sinfo->filled & STATION_INFO_CONNECTED_TIME)
|
||||
NLA_PUT_U32(msg, NL80211_STA_INFO_CONNECTED_TIME,
|
||||
sinfo->connected_time);
|
||||
if (sinfo->filled & STATION_INFO_INACTIVE_TIME)
|
||||
NLA_PUT_U32(msg, NL80211_STA_INFO_INACTIVE_TIME,
|
||||
sinfo->inactive_time);
|
||||
|
Reference in New Issue
Block a user