]> git.baikalelectronics.ru Git - kernel.git/commit
carl9170: fix allmulticast mode
authorNicolas Cavallari <Nicolas.Cavallari@lri.fr>
Wed, 4 May 2011 13:26:52 +0000 (15:26 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 5 May 2011 18:59:18 +0000 (14:59 -0400)
commitecb0c6b87f9052d938486f3782bbfdbf0a77f83f
tree2a34ae62a5f47e6e1fec91bf6da754e2b1c4b966
parent9bd5e013ec5e0838a4563a097684f1bf7e50f9a1
carl9170: fix allmulticast mode

Currently, the driver only disable multicast filtering when the
FIF_ALLMULTI driver flag has been just set (ie,
if changed_flags& FIF_ALLMULTI and *new_flags& FIF_ALLMULTI) or else
it will reenable multicast filtering.

But next time, this condition will be false and multicast filtering
will be reenabled, even through FIF_ALLMULTI is still set.

This mean that allmulticast only works for less than two minutes in
ad-hoc mode.  This patch fixes that to disable multicast filtering
as long as FIF_ALLMULTI is set.

Signed-off-by: Nicolas Cavallari <cavallar@lri.fr>
Acked-by: Christian Lamparter <chunkeey@googlemail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/carl9170/main.c