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. - To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html