Search Linux Wireless

Re: mac80211 suspend gotchas

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> > This is not a hard problem to solve.
> 
> >  - suspend does, in this order (callback used):
> >     * stop aggregation (ampdu_action)
> >     * remove all keys (set_key)
> >     * remove all STAs (sta_notify)
> >     * remove all interfaces (remove_interface)
> >     * stop the hardware (stop)
> 
> I think the hardware-stop should probably be done in the driver
> suspend routine after the mac80211 notification and not by a mac80211 callback.
> Otherwise this is going to get complicated wrt locking.

All of those callbacks potentially require locks, you really want to
call them outside of any locked section in your ->resume and ->suspend
handlers.

johannes

Attachment: signature.asc
Description: This is a digitally signed message part


[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux