From: Mohammed Shafi <mshajakhan@atheros.com>
To: Felix Fietkau <nbd@openwrt.org>
Cc: Mohammed Shajakhan <Mohammed.Shajakhan@Atheros.com>,
"linux-wireless@vger.kernel.org" <linux-wireless@vger.kernel.org>,
"johannes@sipsolutions.net" <johannes@sipsolutions.net>
Subject: Re: [RFC] mac80211: Add station uptime in debugfs
Date: Tue, 5 Apr 2011 20:34:25 +0530 [thread overview]
Message-ID: <4D9B2F79.2090606@atheros.com> (raw)
In-Reply-To: <4D9B2268.8070902@openwrt.org>
On Tuesday 05 April 2011 07:38 PM, Felix Fietkau wrote:
> On 2011-04-05 3:39 PM, Mohammed Shafi Shajakhan wrote:
>
>> From: Mohammed Shafi Shajakhan<mshajakhan@atheros.com>
>>
>> Add station uptime parameter in debugfs. This will be helpful to get a
>> measure of stability of connection and also during stress testing.
>>
>> Signed-off-by: Mohammed Shafi Shajakhan<mshajakhan@atheros.com>
>>
>
>> diff --git a/net/mac80211/sta_info.c b/net/mac80211/sta_info.c
>> index 999f8fb..08b9f51 100644
>> --- a/net/mac80211/sta_info.c
>> +++ b/net/mac80211/sta_info.c
>> @@ -244,6 +244,7 @@ struct sta_info *sta_info_alloc(struct ieee80211_sub_if_data *sdata,
>> sta->local = local;
>> sta->sdata = sdata;
>> sta->last_rx = jiffies;
>> + sta->sta_uptime = jiffies;
>>
>> ewma_init(&sta->avg_signal, 1024, 8);
>>
>>
> I think jiffies can easily overflow. Maybe it would be better to get a
> timeval from the monotonic clock.
>
Thanks, yes thats true and I assumed this will work fine for 49 days
assuming 32 bit(please correct me if my calculations are wrong). will
the overflow will take place in less than this time?. I will dig more
into it by looking at the time val.
> - Felix
> .
>
>
next prev parent reply other threads:[~2011-04-05 15:04 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-05 13:39 [RFC] mac80211: Add station uptime in debugfs Mohammed Shafi Shajakhan
2011-04-05 14:04 ` Helmut Schaa
2011-04-05 14:36 ` Mohammed Shafi
2011-04-05 14:50 ` Johannes Berg
2011-04-05 14:59 ` Mohammed Shafi
2011-04-05 15:05 ` Mohammed Shafi
2011-04-05 14:08 ` Felix Fietkau
2011-04-05 15:04 ` Mohammed Shafi [this message]
2011-04-05 15:25 ` Felix Fietkau
2011-04-05 15:29 ` Mohammed Shafi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4D9B2F79.2090606@atheros.com \
--to=mshajakhan@atheros.com \
--cc=Mohammed.Shajakhan@Atheros.com \
--cc=johannes@sipsolutions.net \
--cc=linux-wireless@vger.kernel.org \
--cc=nbd@openwrt.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.