All of lore.kernel.org
 help / color / mirror / Atom feed
* cfg80211: race problem between suspend and disconnect event
@ 2016-10-20 16:47 Amitkumar Karwar
  2016-10-20 18:45 ` Johannes Berg
  0 siblings, 1 reply; 5+ messages in thread
From: Amitkumar Karwar @ 2016-10-20 16:47 UTC (permalink / raw)
  To: Johannes Berg
  Cc: Kalle Valo, Brian Norris, Nishant Sarmukadam, Cathy Luo,
	linux-wireless@vger.kernel.org, Ganapathi Bhat

Hi Johannes,

We came across one race issue while running suspend tests with Marvell device.

Mwifiex driver rejects del_key() requests from cfg80211 during suspend. They came very late when driver's cfg80211_suspend handler is already executed and driver is in the middle of SDIO's suspend handler.

In wowlan not configured case, below code ensures cfg80211 terminates connection before calling ops->suspend. However when driver reports disconnection through cfg80211_disconnected() API, cfg80211 handles EVENT_DISCONNECTED in separate work function where ops->del_key() is called in loop to flush keys.

------wiphy_suspend()-----------
if (rdev->wiphy.registered) {
         if (!rdev->wiphy.wowlan_config)
                cfg80211_leave_all(rdev);
          if (rdev->ops->suspend)
           ret = rdev_suspend(rdev, rdev->wiphy.wowlan_config);
--------------------------------

Please let us know if you have any suggestions to resolves this with cfg80211/driver change.

Regards,
Amitkumar

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-10-24 14:55 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-10-20 16:47 cfg80211: race problem between suspend and disconnect event Amitkumar Karwar
2016-10-20 18:45 ` Johannes Berg
2016-10-21 15:48   ` Amitkumar Karwar
2016-10-21 21:24     ` Johannes Berg
2016-10-24 14:54       ` Amitkumar Karwar

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.