From: Kalle Valo <kalle.valo@nokia.com>
To: "Tomas Winkler" <tomasw@gmail.com>
Cc: "Johannes Berg" <johannes@sipsolutions.net>,
linux-wireless@vger.kernel.org
Subject: Re: Thoughts about mac80211 client PS implementation
Date: Thu, 06 Nov 2008 09:35:19 +0200 [thread overview]
Message-ID: <874p2l71e0.fsf@nokia.com> (raw)
In-Reply-To: <1ba2fa240811051355y4a38c5f1jc6433ac4eeb9dd1f@mail.gmail.com> (ext Tomas Winkler's message of "Wed\, 5 Nov 2008 23\:55\:31 +0200")
Tomas Winkler <tomasw@gmail.com> writes:
> What I wonder in this whole conversation is how the power is saved
> here. How and what do you shut down physically in the NIC.
In stlc45xx it works such that the driver controls firmware's Power
Save Mode with LM_OID_PSM command. When the driver enables PSM, the
firmware sleeps as much as possible and it will wakeup only for
beacons (interval is configurable). If the driver sends a frame, the
firmware sets PSM bit in frames's frame control and goes to sleep
immeaditely after receiving an ack for the frame.
If the driver disables the PSM in firmware, the firmware is awake all
the time.
> I'm not sure how much u save if u're just not receiving frames bur
> you are still busy with scheduling timers.
With this scheme we will have significant power savings because the
radios can be turned off for long idle periods, but it doesn't
sacrifice the latency that much.
> In iwlwifi all the gory timing issues are handled in the firmware
> and driver just may option to configure some parameters according
> battery life, user preferences and current throughput plus firmware
> is able to close different part of the HW as well. I'm have strong
> hunch that also other vendors handle this in low level as this is
> kind of real time to be in sync with DITIMs and listen intervals
> etc.
In stlc45xx the firmware takes care of waking up for beacons (of
course, linux is not a real time OS). It's just that in stlc45xx
firmware's PS implementation isn't as advanced as yours is and we have
to something in host as well.
> One other think is that PS can be enabled also in non associated state
> from the HW perspective only during association and scanning it's
> disabled but that not connected to the spec.
I don't see how Power Save Mode can be useful when disassociated. PSM
is about AP buffering frames for us, but what does it buffer when the
client is disassociated? Sure, turning off radios when not associated
is very wise to do but we can control that already with op_start() and
op_stop(). No need to use Power Save features here.
> Currently we have all what you describing here enabled onfiguring
> through iwconfig power and it's already working so I'm trying to
> figure out how our strange HW :) will fit into this new stuff.
I haven't investigated how PS works in your hw, yet. But if any
problems appear, I'll add a HW flag for the driver to disable dynamic
PS, or something like that.
--
Kalle Valo
next prev parent reply other threads:[~2008-11-06 7:36 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-05 20:27 Thoughts about mac80211 client PS implementation Kalle Valo
2008-11-05 20:33 ` Johannes Berg
2008-11-05 20:43 ` Luis R. Rodriguez
2008-11-05 21:06 ` Kalle Valo
2008-11-06 12:20 ` Felix Fietkau
2008-11-05 20:54 ` Kalle Valo
2008-11-05 21:05 ` Johannes Berg
2008-11-05 21:25 ` Kalle Valo
2008-11-05 21:55 ` Tomas Winkler
2008-11-06 7:35 ` Kalle Valo [this message]
2008-11-06 11:00 ` Johannes Berg
2008-11-07 16:06 ` Johannes Berg
2008-11-07 17:58 ` Kalle Valo
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=874p2l71e0.fsf@nokia.com \
--to=kalle.valo@nokia.com \
--cc=johannes@sipsolutions.net \
--cc=linux-wireless@vger.kernel.org \
--cc=tomasw@gmail.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).