* suspend/resume support in mac80211
@ 2007-08-05 19:50 Mattias Nissler
2007-08-05 21:44 ` Michael Buesch
0 siblings, 1 reply; 4+ messages in thread
From: Mattias Nissler @ 2007-08-05 19:50 UTC (permalink / raw)
To: linux-wireless; +Cc: rt2400-devel
Hi,
we have recently been struggling with getting suspend/resume working in
rt2x00. A few questions:
1. What is the recommended scheme for implementing suspend/resume with
mac80211? Some drivers (p54, iwlwifi) call ieee80211_stop_queues().
rt2x00 is currently doing so, but it doesn't seem to be enough: mac80211
calls back into rt2x00 while the device is suspended, resulting in
chaos.
2. Are there any mac80211 drivers that suspend/resume properly? Also
when associated?
3. Shouldn't mac80211 be made suspend/resume-aware (AFAIK it is not), so
we can do things like disassociating during suspend and reassociating
when resuming? I'd like something in the spirit of
netif_device_detach()/netif_device_attach(). Comments?
Cheers,
Mattias
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: suspend/resume support in mac80211
2007-08-05 19:50 suspend/resume support in mac80211 Mattias Nissler
@ 2007-08-05 21:44 ` Michael Buesch
2007-08-05 23:09 ` [Rt2400-devel] " Peter Stuge
2007-08-06 9:17 ` Johannes Berg
0 siblings, 2 replies; 4+ messages in thread
From: Michael Buesch @ 2007-08-05 21:44 UTC (permalink / raw)
To: Mattias Nissler; +Cc: linux-wireless, rt2400-devel
On Sunday 05 August 2007, Mattias Nissler wrote:
> Hi,
>
> we have recently been struggling with getting suspend/resume working in
> rt2x00. A few questions:
There is no suspend/resume support in mac80211.
> 1. What is the recommended scheme for implementing suspend/resume with
> mac80211? Some drivers (p54, iwlwifi) call ieee80211_stop_queues().
Calling stop_queues() from outside of the TX handler may deadlock.
That is a bug in mac80211. I don't think it has been fixed, yet.
> 2. Are there any mac80211 drivers that suspend/resume properly? Also
> when associated?
>
> 3. Shouldn't mac80211 be made suspend/resume-aware (AFAIK it is not), so
> we can do things like disassociating during suspend and reassociating
> when resuming? I'd like something in the spirit of
> netif_device_detach()/netif_device_attach(). Comments?
I think we should have a API call to mac80211 that suspends the stack
(saves the state etc..) and a call the resumes (reassociates, re-handshakes...).
But that's probably not that easy to implement, as parts of this
does happen in userspace.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Rt2400-devel] suspend/resume support in mac80211
2007-08-05 21:44 ` Michael Buesch
@ 2007-08-05 23:09 ` Peter Stuge
2007-08-06 9:17 ` Johannes Berg
1 sibling, 0 replies; 4+ messages in thread
From: Peter Stuge @ 2007-08-05 23:09 UTC (permalink / raw)
To: Michael Buesch; +Cc: linux-wireless, rt2400-devel
On Sun, Aug 05, 2007 at 11:44:12PM +0200, Michael Buesch wrote:
> > we have recently been struggling with getting suspend/resume
> > working in rt2x00. A few questions:
>
> There is no suspend/resume support in mac80211.
Wow, that's really bad news.
Are there plans for it?
> > 3. Shouldn't mac80211 be made suspend/resume-aware
>
> I think we should have a API call to mac80211 that suspends the
> stack (saves the state etc..)
Would it be enough to add a suspended state and functions for
entering/exiting the state? On transitions, the appropriate driver
level functions are called of course.
> and a call the resumes (reassociates, re-handshakes...).
> But that's probably not that easy to implement, as parts of this
> does happen in userspace.
Shouldn't that be handled by hotplugging then?
(I'm not on linux-wireless, but rt2400-devel, no need to cc if you
crosspost.)
//Peter
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: suspend/resume support in mac80211
2007-08-05 21:44 ` Michael Buesch
2007-08-05 23:09 ` [Rt2400-devel] " Peter Stuge
@ 2007-08-06 9:17 ` Johannes Berg
1 sibling, 0 replies; 4+ messages in thread
From: Johannes Berg @ 2007-08-06 9:17 UTC (permalink / raw)
To: Michael Buesch; +Cc: Mattias Nissler, linux-wireless, rt2400-devel
[-- Attachment #1: Type: text/plain, Size: 456 bytes --]
On Sun, 2007-08-05 at 23:44 +0200, Michael Buesch wrote:
> I think we should have a API call to mac80211 that suspends the stack
> (saves the state etc..) and a call the resumes (reassociates, re-handshakes...).
> But that's probably not that easy to implement, as parts of this
> does happen in userspace.
At the minimum it should be resetting the keys. Reassocation etc. could
probably be done as well if using the in-kernel MLME.
johannes
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 190 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2007-08-06 9:15 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-05 19:50 suspend/resume support in mac80211 Mattias Nissler
2007-08-05 21:44 ` Michael Buesch
2007-08-05 23:09 ` [Rt2400-devel] " Peter Stuge
2007-08-06 9:17 ` Johannes Berg
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).