aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/rdc/files
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2008-08-13 15:08:34 +0000
committerFlorian Fainelli <florian@openwrt.org>2008-08-13 15:08:34 +0000
commitf2340f4b921f780803be1ad208694b229d770fbe (patch)
tree3f0a52a27aaf66e31bf763d4969de4bc4e8052ca /target/linux/rdc/files
parent02780ec10082f43bcfece18c0b5c37e71f0df8a6 (diff)
downloadupstream-f2340f4b921f780803be1ad208694b229d770fbe.tar.gz
upstream-f2340f4b921f780803be1ad208694b229d770fbe.tar.bz2
upstream-f2340f4b921f780803be1ad208694b229d770fbe.zip
Fix card_idx calculation, thanks sn9
SVN-Revision: 12294
Diffstat (limited to 'target/linux/rdc/files')
-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