diff options
Diffstat (limited to 'drivers/net/usb/catc.c')
-rw-r--r-- | drivers/net/usb/catc.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/usb/catc.c b/drivers/net/usb/catc.c index 8d5cac2d8e33..df507e6dbb9c 100644 --- a/drivers/net/usb/catc.c +++ b/drivers/net/usb/catc.c | |||
@@ -640,10 +640,10 @@ static void catc_set_multicast_list(struct net_device *netdev) | |||
640 | { | 640 | { |
641 | struct catc *catc = netdev_priv(netdev); | 641 | struct catc *catc = netdev_priv(netdev); |
642 | struct netdev_hw_addr *ha; | 642 | struct netdev_hw_addr *ha; |
643 | u8 broadcast[6]; | 643 | u8 broadcast[ETH_ALEN]; |
644 | u8 rx = RxEnable | RxPolarity | RxMultiCast; | 644 | u8 rx = RxEnable | RxPolarity | RxMultiCast; |
645 | 645 | ||
646 | memset(broadcast, 0xff, 6); | 646 | memset(broadcast, 0xff, ETH_ALEN); |
647 | memset(catc->multicast, 0, 64); | 647 | memset(catc->multicast, 0, 64); |
648 | 648 | ||
649 | catc_multicast(broadcast, catc->multicast); | 649 | catc_multicast(broadcast, catc->multicast); |
@@ -778,7 +778,7 @@ static int catc_probe(struct usb_interface *intf, const struct usb_device_id *id | |||
778 | struct usb_device *usbdev = interface_to_usbdev(intf); | 778 | struct usb_device *usbdev = interface_to_usbdev(intf); |
779 | struct net_device *netdev; | 779 | struct net_device *netdev; |
780 | struct catc *catc; | 780 | struct catc *catc; |
781 | u8 broadcast[6]; | 781 | u8 broadcast[ETH_ALEN]; |
782 | int i, pktsz; | 782 | int i, pktsz; |
783 | 783 | ||
784 | if (usb_set_interface(usbdev, | 784 | if (usb_set_interface(usbdev, |
@@ -882,7 +882,7 @@ static int catc_probe(struct usb_interface *intf, const struct usb_device_id *id | |||
882 | 882 | ||
883 | dev_dbg(dev, "Filling the multicast list.\n"); | 883 | dev_dbg(dev, "Filling the multicast list.\n"); |
884 | 884 | ||
885 | memset(broadcast, 0xff, 6); | 885 | memset(broadcast, 0xff, ETH_ALEN); |
886 | catc_multicast(broadcast, catc->multicast); | 886 | catc_multicast(broadcast, catc->multicast); |
887 | catc_multicast(netdev->dev_addr, catc->multicast); | 887 | catc_multicast(netdev->dev_addr, catc->multicast); |
888 | catc_write_mem(catc, 0xfa80, catc->multicast, 64); | 888 | catc_write_mem(catc, 0xfa80, catc->multicast, 64); |