From: Kalle Valo <kalle.valo@iki.fi>
To: Johannes Berg <johannes@sipsolutions.net>
Cc: Dan Williams <dcbw@redhat.com>, "Guy\,
Wey-Yi W" <wey-yi.w.guy@intel.com>,
linux-wireless <linux-wireless@vger.kernel.org>,
Matthew Garrett <mjg@redhat.com>,
Marcel Holtmann <marcel@holtmann.org>
Subject: Re: wireless powersaving (in NM?)
Date: Wed, 25 Mar 2009 22:22:39 +0200 [thread overview]
Message-ID: <87wsadz71s.fsf@litku.valot.fi> (raw)
In-Reply-To: <1238011579.4320.169.camel@johannes.local> (Johannes Berg's message of "Wed\, 25 Mar 2009 21\:06\:19 +0100")
Johannes Berg <johannes@sipsolutions.net> writes:
> On Wed, 2009-03-25 at 21:53 +0200, Kalle Valo wrote:
>
>> > I'm just worried that we'll require a whole bunch of different
>> > interfaces. Yes, in theory there isn't much to control, but iwlwifi
>> > firmware for example can, as far as I interpret the code, dynamically
>> > vary the listen interval.
>>
>> You mean the wakeup interval? For me, listen interval means the
>> maximum time AP is willing to buffer frames for a STA.
>
> No, I mean the listen interval in the assoc request frame.
It only tells the AP maximum time it should buffer the frames for use.
We can set it 10 but still wake every second beacon. So listen
interval has merely informative value.
>> I assume you mean sleep_interval here:
>>
>> #define IWL_POWER_VEC_SIZE 5
>>
>> struct iwl_powertable_cmd {
>> __le16 flags;
>> u8 keep_alive_seconds; /* 3945 reserved */
>> u8 debug_flags; /* 3945 reserved */
>> __le32 rx_data_timeout;
>> __le32 tx_data_timeout;
>> __le32 sleep_interval[IWL_POWER_VEC_SIZE];
>> __le32 keep_alive_beacons;
>> } __attribute__ ((packed));
>>
>> So there's an array sleep/wakeup interval, which firmware most
>> probably rotates periodically.
>
> I don't actually know what the sleep interval here is...
I think it determines how often the firmware will wakeup for beacons.
At least stlc45xx had something similar.
>> I think stlc45xx/p54 even had something
>> similar. But honestly, I don't know if this kind of trickery is
>> useful. Why not directly go to the longest wakeup interval
>> immediately?
>
> But listen interval * beacon interval determines latency.
Yeah. I just wouldn't use the listen interval, because it's
a bit misleading. I have used the term wakeup interval here.
>> My view is that the decision to change wakeup interval should be done
>> in host, preferably userspace. Userspace has the best knowledge, it
>> should make the decision as well.
>
> What's the wakeup interval?
That's my own invention, again :) It's the interval how often firmware
wakes up for beacons, and unit is beacon interval. For example, if
wakeup interval is three and beacon interval 100 msec, the firmware
would wakeup for beacons every 300 ms.
>> > Some of the decisions might also depend on the hardware, I could
>> > imagine, the point where turning off power saving is required might be
>> > different depending on hardware due to wakeup time maybe?
>>
>> Yes, there might be some differences.
>
> How would we capture these?
I was thinking that it's the responsibility of the driver's author to
map these to the hardware.
--
Kalle Valo
next prev parent reply other threads:[~2009-03-25 20:22 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-24 10:39 wireless powersaving (in NM?) Johannes Berg
2009-03-24 10:32 ` Marcel Holtmann
2009-03-25 10:45 ` Johannes Berg
2009-03-24 13:47 ` John W. Linville
2009-03-24 13:53 ` Johannes Berg
2009-03-24 14:47 ` Guy, Wey-Yi W
2009-03-24 15:03 ` Kalle Valo
2009-03-24 14:17 ` Kalle Valo
2009-03-25 10:57 ` Johannes Berg
2009-03-25 19:53 ` Kalle Valo
2009-03-25 20:06 ` Johannes Berg
2009-03-25 20:09 ` Johannes Berg
2009-03-25 20:22 ` Kalle Valo [this message]
2009-03-24 15:59 ` Dan Williams
2009-03-25 11:04 ` Johannes Berg
2009-03-25 15:31 ` Dan Williams
2009-03-25 15:48 ` Johannes Berg
2009-03-26 8:00 ` Luis R. Rodriguez
2009-03-26 8:11 ` Johannes Berg
2009-03-26 8:39 ` Luis R. Rodriguez
2009-03-26 8:54 ` Johannes Berg
2009-03-26 9:01 ` Luis R. Rodriguez
2009-03-26 14:29 ` Georgy Berdyshev
2009-03-26 8:19 ` Kalle Valo
2009-03-26 8:40 ` Luis R. Rodriguez
2009-03-31 16:28 ` Johannes Berg
2009-04-01 11:04 ` more thoughts on power saving (was: wireless powersaving (in NM?)) Johannes Berg
2009-04-01 11:12 ` Kalle Valo
2009-04-01 14:29 ` Guy, Wey-Yi W
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=87wsadz71s.fsf@litku.valot.fi \
--to=kalle.valo@iki.fi \
--cc=dcbw@redhat.com \
--cc=johannes@sipsolutions.net \
--cc=linux-wireless@vger.kernel.org \
--cc=marcel@holtmann.org \
--cc=mjg@redhat.com \
--cc=wey-yi.w.guy@intel.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).