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)
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

Simple merge