From e3f6236124700b0c3b3b3afaf134c03932b02152 Mon Sep 17 00:00:00 2001 From: florian Date: Wed, 13 Aug 2008 15:08:34 +0000 Subject: [PATCH 1/1] Fix card_idx calculation, thanks sn9 git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12294 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- target/linux/rdc/files/drivers/net/r6040.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/linux/rdc/files/drivers/net/r6040.c b/target/linux/rdc/files/drivers/net/r6040.c index 29e731d81..237b7fa09 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 -- 2.20.1