]> git.baikalelectronics.ru Git - kernel.git/commit
KS8851: Fix ks8851_set_rx_mode() for IFF_MULTICAST
authorBen Dooks <ben@simtec.co.uk>
Mon, 19 Oct 2009 23:49:05 +0000 (23:49 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 21 Oct 2009 02:11:07 +0000 (19:11 -0700)
commit425eceb08000e33a3c1b1b5c08df5111265231a5
tree7c595c41e533971e361e76db259fb09282d6d7a0
parent6547b246edcc0a9d4c9474c20f7074362319d607
KS8851: Fix ks8851_set_rx_mode() for IFF_MULTICAST

In ks8851_set_rx_mode() the case handling IFF_MULTICAST was also setting
the RXCR1_AE bit by accident. This meant that all unicast frames where
being accepted by the device. Remove RXCR1_AE from this case.

Note, RXCR1_AE was also masking a problem with setting the MAC address
properly, so needs to be applied after fixing the MAC write order.

Fixes a bug reported by Doong, Ping of Micrel. This version of the
patch avoids setting RXCR1_ME for all cases.

Signed-off-by: Ben Dooks <ben@simtec.co.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ks8851.c