From: Johannes Berg Date: Thu, 31 May 2012 13:09:27 +0000 (+0200) Subject: mac80211: clean up remain-on-channel on interface stop X-Git-Tag: v3.5-rc3~22^2~10^2~22 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=71ecfa1893034eeb1c93e02e22ee2ad26d080858;p=pandora-kernel.git mac80211: clean up remain-on-channel on interface stop When any interface goes down, it could be the one that we were doing a remain-on-channel with. We therefore need to cancel the remain-on-channel and flush the related work structs so they don't run after the interface has been removed or even destroyed. It's also possible in this case that an off-channel SKB was never transmitted, so free it if this is the case. Note that this can also happen if the driver finishes the off-channel period without ever starting it. Cc: stable@kernel.org Reported-by: Nirav Shah Signed-off-by: Johannes Berg Signed-off-by: John W. Linville --- Reading git-diff-tree failed