]> www.infradead.org Git - users/dwmw2/linux.git/commit
mwifiex: fix setting of multicast filter
authorDaniel Drake <dsd@laptop.org>
Wed, 8 May 2013 19:37:19 +0000 (15:37 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 19 May 2013 18:38:28 +0000 (11:38 -0700)
commitf4d497e4106c3d8461bec4d8b99e740f8e52f7f6
treea0b4b18a32d99efa2e1e46cc6c792f02ffd36029
parent09ec45665014181f41022f1ca15db2e03a6323a8
mwifiex: fix setting of multicast filter

commit ccd384b10420ac81ba3fb9b0a7d18272c7173552 upstream.

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>
Acked-by: Bing Zhao <bzhao@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/wireless/mwifiex/sta_ioctl.c