]> git.baikalelectronics.ru Git - kernel.git/commit
mwl8k: fix multicast address filter programming
authorLennert Buytenhek <buytenh@wantstofly.org>
Thu, 22 Oct 2009 18:19:41 +0000 (20:19 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 4 Nov 2009 23:44:43 +0000 (18:44 -0500)
commitad2381eb0bff1bf26bcf2acf9bff8f5ef1e1fb71
treed3ddf0ad2dcee1e739a726debd626908d4bd67b5
parentb8430eada648a21bdb858178596788d1cae7f6d7
mwl8k: fix multicast address filter programming

mwl8k's ->prepare_multicast() currently just enables reception of
all multicast packets, which is somewhat ineffective.

Fix this by either disabling all multicast RX, enabling multicast
RX according to the multicast address filter table, or enabling all
multicast RX, depending on whether ->prepare_multicast() was given
any multicast addresses and whether the hardware multicast address
filter table is large enough to fit all requested addresses.

Signed-off-by: Lennert Buytenhek <buytenh@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/mwl8k.c