]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
staging: vt6656: device_set_multi: set filter off with MACvWriteMultiAddr
authorMalcolm Priestley <tvboxspy@gmail.com>
Wed, 12 Feb 2014 19:20:48 +0000 (19:20 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 14 Feb 2014 17:20:51 +0000 (09:20 -0800)
set u64 mc_filter to ~0x0 multi cast filter off and write MAC_REG_MAR0 using
MACvWriteMultiAddr to replace pbyData.

Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vt6656/main_usb.c

index ffcce0cdde0761ec78c94c854be5d88f4f9d0370..a48736b0c185aedb9e261d67c813b11d347af265 100644 (file)
@@ -1354,7 +1354,6 @@ static void device_set_multi(struct net_device *dev)
        struct vnt_manager *pMgmt = &pDevice->vnt_mgmt;
        struct netdev_hw_addr *ha;
        u64 mc_filter = 0;
-       u8 pbyData[8] = {0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff};
        u8 byTmpMode = 0;
        int rc;
 
@@ -1377,13 +1376,9 @@ static void device_set_multi(struct net_device *dev)
     }
     else if ((netdev_mc_count(dev) > pDevice->multicast_limit) ||
             (dev->flags & IFF_ALLMULTI)) {
-        CONTROLnsRequestOut(pDevice,
-                            MESSAGE_TYPE_WRITE,
-                            MAC_REG_MAR0,
-                            MESSAGE_REQUEST_MACREG,
-                            8,
-                            pbyData
-                            );
+       mc_filter = ~0x0;
+       MACvWriteMultiAddr(pDevice, mc_filter);
+
         pDevice->byRxMode |= (RCR_MULTICAST|RCR_BROADCAST);
     }
     else {