]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit19489a61308083aa7b8f7b9dd7a2686f00109c43
tree15c3f64f2695093fc2d504ae28a902bc951ce4d3
parent06a41da9f69bf1a757342ab2f44d6f51327acd4e
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