Search Linux Wireless

cfg80211: race problem between suspend and disconnect event

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

 



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



[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Wireless Personal Area Network]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux