From: Johannes Berg Date: Thu, 14 Jul 2011 14:48:54 +0000 (+0200) Subject: mac80211: be more careful in suspend/resume X-Git-Tag: v3.1-rc1~255^2~14^2^2~102 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=94f9b97be5b3bf67392e43fb7f567721b09142c2;p=pandora-kernel.git 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 Signed-off-by: John W. Linville --- Reading git-diff-tree failed