summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorflorian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73>2008-08-13 15:08:34 +0000
committerflorian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73>2008-08-13 15:08:34 +0000
commite3f6236124700b0c3b3b3afaf134c03932b02152 (patch)
tree700539c4205902e8a521887bf30a31bf7b582aea
parenta8d1b57faceab921a87f5991fc9a30920faf7afd (diff)
Fix card_idx calculation, thanks sn9
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12294 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r--target/linux/rdc/files/drivers/net/r6040.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/target/linux/rdc/files/drivers/net/r6040.c b/target/linux/rdc/files/drivers/net/r6040.c
index 29e731d81f..237b7fa09f 100644
--- a/target/linux/rdc/files/drivers/net/r6040.c
+++ b/target/linux/rdc/files/drivers/net/r6040.c
@@ -1326,7 +1326,7 @@ int __devinit r6040_init_one(struct pci_dev *pdev,
dev->name);
memcpy(dev->dev_addr, dflt_addr, ETH_ALEN);
}
- dev->dev_addr[ETH_ALEN-1] += card_idx; /* + 0 or 1 */
+ dev->dev_addr[ETH_ALEN-1] += card_idx ^ 1; /* + 0 or 1 */
}
#ifdef CONFIG_NET_POLL_CONTROLLER