mac80211: fix cleanup if driver suspend callback fails
authorEyal Shapira <eyal@wizery.com>
Wed, 20 Jun 2012 10:10:14 +0000 (13:10 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 20 Jun 2012 15:39:51 +0000 (17:39 +0200)
commit9ea4fa158f3a038d5be82ccc7e142f198233f059
tree1aa410e64e528f52932cd69f6e19018c7fd36164
parent00e96decfd0b927f975c98340a5982c5039eeaae
mac80211: fix cleanup if driver suspend callback fails

In case the driver suspend callback fails, mac80211 is left
with stopped queues which prevents any further traffic as well
as all STAs are left marked with WLAN_STA_BLOCK_BA which will
cause any further ADDBA requests to be declined. Fix it by
undoing both before returning from __iee80211_suspend.

Reported-by: Vitaly Wool <vitalywool@gmail.com>
Signed-off-by: Eyal Shapira <eyal@wizery.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/pm.c