> > 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