]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: be more careful in suspend/resume
authorJohannes Berg <johannes.berg@intel.com>
Thu, 14 Jul 2011 14:48:54 +0000 (16:48 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 15 Jul 2011 17:39:42 +0000 (13:39 -0400)
commit25e39a12f9353f0ea24838174565871dd5a7ce18
tree4ffbf7480eeb60baf40f63070439f96e9a92c7e7
parent55bbf89bbade1595f5034c0610d25bda4c8a1d22
mac80211: be more careful in suspend/resume

When suspending with all netdevs down, the device
is stopped but we still call a number of driver
callbacks that the driver might not expect. The
same happens during resume, we might call a few
callbacks without starting the driver. Fix this
by checking open_count around more things and
exiting quickly if it is 0.

Also, while at this I noticed that the coverage
class isn't reprogrammed after resume, so add
that.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/pm.c
net/mac80211/util.c