aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/rdc
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
commitef1ff562c1b875b7c29f0bbccc529a3e5ce23b42 (patch)
tree700539c4205902e8a521887bf30a31bf7b582aea /target/linux/rdc
parentb188bc8497bb60fb577f0ad92f2330d4494a175c (diff)
downloadupstream-ef1ff562c1b875b7c29f0bbccc529a3e5ce23b42.tar.gz
upstream-ef1ff562c1b875b7c29f0bbccc529a3e5ce23b42.tar.bz2
upstream-ef1ff562c1b875b7c29f0bbccc529a3e5ce23b42.zip
Fix card_idx calculation, thanks sn9
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12294 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/rdc')
-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