]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
mac80211: fix configure_filter invocation after stop
authorJohannes Berg <johannes@sipsolutions.net>
Thu, 20 Aug 2009 18:02:20 +0000 (20:02 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 28 Aug 2009 18:40:25 +0000 (14:40 -0400)
commit84f6a01ce05fa671f7745b6e041e698a2d1f1341
tree9d27eb23cf2c310b572193cbef290b6b84eb0259
parent5eb6ba83aa326e2f2cf9109d20df5d6a497b36bb
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 <johannes@sipsolutions.net>
Reported-by: Lennert Buytenhek <buytenh@wantstofly.org>
Tested-by: Lennert Buytenhek <buytenh@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/ieee80211_i.h
net/mac80211/iface.c
net/mac80211/pm.c
net/mac80211/util.c