mac80211: fix suspend vs. association race
authorEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Tue, 13 May 2014 09:54:09 +0000 (12:54 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 13 May 2014 11:58:16 +0000 (13:58 +0200)
commitc52666aef9f2dff39276eb53f15d99e2e229870f
treed41cd95578966fad216aff7c9c905e7cb6579a59
parentf9ac71bfcc5c937ff02765dc316cf5bc01d21d97
mac80211: fix suspend vs. association race

If the association is in progress while we suspend, the
stack will be in a messed up state. Clean it before we
suspend.

This patch completes Johannes's patch:

1a1cb744de160ee70086a77afff605bbc275d291
Author: Johannes Berg <johannes.berg@intel.com>

    mac80211: fix suspend vs. authentication race

Cc: <stable@vger.kernel.org>
Fixes: 12e7f517029d ("mac80211: cleanup generic suspend/resume procedures")
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/mlme.c