summaryrefslogtreecommitdiffstats
path: root/net/wireless
diff options
context:
space:
mode:
authorMohammed Shafi Shajakhan <mshajakhan@atheros.com>2011-04-08 21:24:24 +0530
committerJohn W. Linville <linville@tuxdriver.com>2011-04-12 16:58:47 -0400
commitebe27c91af8b7f4810ae906fbd3eeb2d87850026 (patch)
treeeff1fe0dbb8ecb4b116d8f96c6beb3eda1c52c7a /net/wireless
parentf60c49b67dd6db2ccb740a6a671414f9dab00c4f (diff)
downloadop-kernel-dev-ebe27c91af8b7f4810ae906fbd3eeb2d87850026.zip
op-kernel-dev-ebe27c91af8b7f4810ae906fbd3eeb2d87850026.tar.gz
{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>
Diffstat (limited to 'net/wireless')
-rw-r--r--net/wireless/nl80211.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/net/wireless/nl80211.c b/net/wireless/nl80211.c
index 58f501a..0efa7fd 100644
--- a/net/wireless/nl80211.c
+++ b/net/wireless/nl80211.c
@@ -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);
OpenPOWER on IntegriCloud