]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit053c653efa3f9889dd6f8b2b3b4b4761b018c067
tree1aa410e64e528f52932cd69f6e19018c7fd36164
parentddcc48903f60da100627b6e54d9d25a43f05d2eb
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