Johannes Berg e1957dba5b cfg80211: process events caused by suspend before suspending
When suspending without WoWLAN, cfg80211 will ask drivers to
disconnect. Even when the driver does this synchronously, and
immediately returns with a notification, cfg80211 schedules
the handling thereof to a workqueue, and may then call back
into the driver when the driver was already suspended/ing.

Fix this by processing all events caused by cfg80211_leave_all()
directly after that function returns. The driver still needs to
do the right thing here and wait for the firmware response, but
that is - at least - true for mwifiex where this occurred.

Reported-by: Amitkumar Karwar <akarwar@marvell.com>
Tested-by: Amitkumar Karwar <akarwar@marvell.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2016-10-26 07:59:52 +02:00
..
2016-09-30 13:21:14 +02:00
2016-09-30 13:21:14 +02:00
2016-04-12 15:56:15 +02:00
2014-11-04 13:18:17 +01:00
2016-04-12 15:56:15 +02:00
2016-09-30 13:21:14 +02:00
2016-04-12 15:56:15 +02:00
2012-10-18 10:53:37 +02:00