netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Stefan Rompf <stefan@loplof.de>
To: Michael Buesch <mb@bu3sch.de>
Cc: Jiri Benc <jbenc@suse.cz>,
	"John W. Linville" <linville@tuxdriver.com>,
	netdev@vger.kernel.org, bcm43xx-dev@lists.berlios.de
Subject: Re: Suspending 802.11 drivers
Date: Fri, 16 Jun 2006 20:36:26 +0200	[thread overview]
Message-ID: <200606162036.26518.stefan@loplof.de> (raw)
In-Reply-To: <200606152158.10079.mb@bu3sch.de>

Am Donnerstag 15 Juni 2006 21:58 schrieb Michael Buesch:

> I am currently thinking about the best way to correctly
> implement PM suspending for wireless drivers.
> Currently, the 802.11 stack is not suspend aware (if I talk
> about "stack" here, I mostly mean devicescape).
> For example, if we suspend the bcm43xx driver, we don't
> notify the stack before doing so. That's a bug.

I think the most important question is how a suspend/resume action should be 
translated. For the managed case, it is clearly an association loss, normally 
signalled by netif_carrier_on/off() and a corresponding SIOCGIWAP event. 
Supplicants can act on this. In AP mode, suspend is equal to disassociating 
all stations. Ad-hoc... dunno.

For a softmac stack like devicescape, it makes sense to have a function that 
abstracts these scenarios as it is the stack anyway that handles association 
stuff. However, I'd rather extend the existing function 
ieee80211_netif_oper().

> The suspend would save all status information, for example
> to which AP we are associated and so on. After that it would
> cleanly disassociate from the AP and do other cleanups which
> are needed.

It would *try* to cleanly disassociate. No way waiting for the management 
packet to reach the air or even for the AP's acknowledgement while half of 
userspace is already frozen and the user wants the machine to go down ASAP. 
(But that's an interesting point. Will sniff whether ipw2200 hardware sends a 
final packet on suspend.)

> The resume function would try to re-esablish the connection.

Don't keep too much state - just notify userspace of the disassociation, then 
scan and reassociate using the given iwconfig parameters or the running 
supplicant as it would happen on a normal association loss. ipw2200 acts like 
this, and it is definitely fast enough.

Stefan

  parent reply	other threads:[~2006-06-16 18:35 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-06-15 19:58 Suspending 802.11 drivers Michael Buesch
2006-06-15 20:14 ` Ivo van Doorn
     [not found] ` <200606152213.01631.florian@alphacore.net>
2006-06-15 20:42   ` Michael Buesch
2006-06-16 18:36 ` Stefan Rompf [this message]
2006-06-21  9:42   ` Stefan Rompf
2006-06-21 15:08   ` Luis R. Rodriguez
2006-06-21 20:41     ` Michael Buesch
2006-06-22  5:15       ` Luis R. Rodriguez
2006-06-21 22:07     ` Stefan Rompf
2006-06-22 10:56       ` Luis R. Rodriguez

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=200606162036.26518.stefan@loplof.de \
    --to=stefan@loplof.de \
    --cc=bcm43xx-dev@lists.berlios.de \
    --cc=jbenc@suse.cz \
    --cc=linville@tuxdriver.com \
    --cc=mb@bu3sch.de \
    --cc=netdev@vger.kernel.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 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).