mwifiex: fix setting of multicast filter
authorDaniel Drake <dsd@laptop.org>
Wed, 8 May 2013 19:37:19 +0000 (15:37 -0400)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 8 May 2013 21:15:09 +0000 (17:15 -0400)
commitccd384b10420ac81ba3fb9b0a7d18272c7173552
tree15c3f64f2695093fc2d504ae28a902bc951ce4d3
parentf16fdc9d2dc1e5b270e9a08377587e831e0d36ac
mwifiex: fix setting of multicast filter

A small bug in this code was causing the ALLMULTI filter to be set
when in fact we were just wanting to program a selective multicast list
to the hardware.

Fix that bug and remove a redundant if condition in the code that
follows.

This fixes wakeup behaviour when multicast WOL is enabled. Previously,
all multicast packets would wake up the system. Now, only those that the
host intended to receive trigger wakeups.

Signed-off-by: Daniel Drake <dsd@laptop.org>
Cc: <stable@vger.kernel.org>
Acked-by: Bing Zhao <bzhao@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/mwifiex/sta_ioctl.c