projects
/
openwrt
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
mvswitch: set the netdevice into promiscuous mode when header mode is enabled, otherw...
[openwrt/openwrt.git]
/
target
/
linux
/
generic-2.6
/
files-2.6.30
/
drivers
/
net
/
phy
/
mvswitch.c
diff --git
a/target/linux/generic-2.6/files-2.6.30/drivers/net/phy/mvswitch.c
b/target/linux/generic-2.6/files-2.6.30/drivers/net/phy/mvswitch.c
index 7aed70d47f43e3bc3b5264f4a9055eed2e1d52a8..77899e082716541247371894759e18431e66dc06 100644
(file)
--- a/
target/linux/generic-2.6/files-2.6.30/drivers/net/phy/mvswitch.c
+++ b/
target/linux/generic-2.6/files-2.6.30/drivers/net/phy/mvswitch.c
@@
-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++)