From: Johannes Berg Date: Thu, 20 Aug 2009 18:02:20 +0000 (+0200) Subject: mac80211: fix configure_filter invocation after stop X-Git-Tag: v2.6.32-rc1~703^2~275^2~92 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=84f6a01ce05fa671f7745b6e041e698a2d1f1341;p=pandora-kernel.git mac80211: fix configure_filter invocation after stop Since configure_filter can sleep now, any multicast configuration needed to be postponed to a work struct. This, however, lead to a problem that we could queue the work, stop the device and then afterwards invoke configure_filter which may lead to driver hangs and is a bug. To fix this, we can just cancel the filter work since it's unnecessary to do after stopping the hw. Since there are various places that call drv_stop, and two of them do very similar things, the code for them can be put into a shared function at the same time. Signed-off-by: Johannes Berg Reported-by: Lennert Buytenhek Tested-by: Lennert Buytenhek Signed-off-by: John W. Linville --- Reading git-diff-tree failed