mvswitch: set the netdevice into promiscuous mode when header mode is enabled, otherw...
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Wed, 2 Sep 2009 15:14:37 +0000 (15:14 +0000)
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Wed, 2 Sep 2009 15:14:37 +0000 (15:14 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17469 3c298f89-4303-0410-b956-a3cf2f4a3e73

target/linux/generic-2.6/files-2.6.30/drivers/net/phy/mvswitch.c

index 7aed70d..77899e0 100644 (file)
@@ -248,6 +248,9 @@ mvswitch_config_init(struct phy_device *pdev)
        pdev->advertising = ADVERTISED_100baseT_Full;
        dev->phy_ptr = priv;
        dev->irq = PHY_POLL;
+#ifdef HEADER_MODE
+       dev->flags |= IFF_PROMISC;
+#endif
 
        /* initialize default vlans */
        for (i = 0; i < MV_PORTS; i++)