]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: fix suspend vs. authentication race
authorJohannes Berg <johannes.berg@intel.com>
Wed, 19 Mar 2014 08:55:55 +0000 (09:55 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 19 Mar 2014 20:29:53 +0000 (21:29 +0100)
commita5a9f7b69bf034c1680e3987dbf55f325febc789
tree6703edcce54889b86df6c7f5b72deca0d3affd0e
parente6debf811cd91fdfcd3c5eeb474b2f95ce17a355
mac80211: fix suspend vs. authentication race

Since Stanislaw's patch removing the quiescing code, mac80211 had
a race regarding suspend vs. authentication: as cfg80211 doesn't
track authentication attempts, it can't abort them. Therefore the
attempts may be kept running while suspending, which can lead to
all kinds of issues, in at least some cases causing an error in
iwlmvm firmware.

Fix this by aborting the authentication attempt when suspending.

Cc: stable@vger.kernel.org
Fixes: d29deaa307fc ("mac80211: cleanup generic suspend/resume procedures")
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/ieee80211_i.h
net/mac80211/mlme.c
net/mac80211/pm.c