Re: [PATCH 01/14] brcmfmac: add delay before unregistering the network device
From: Johannes Berg <johannes@sipsolutions.net>
Date: 2014-02-25 19:59:45
From: Johannes Berg <johannes@sipsolutions.net>
Date: 2014-02-25 19:59:45
On Tue, 2014-02-25 at 20:30 +0100, Arend van Spriel wrote:
Upon deleting the interface a cfg80211_disconnected() is called under rtnl_lock. Right after the unlocking the rtnl_lock we unregister the network device. This patch adds delay before unregister so cfg80211 can handle disconnect and notify wpa_supplicant.
+ /* make sure cfg80211 can send disconnect event + * before unregistering the netdevice below. + */ + msleep(100);
This has got to be one of the worst hacks I've seen in wireless so far ... :) johannes