Fix card_idx calculation, thanks sn9
authorFlorian Fainelli <florian@openwrt.org>
Wed, 13 Aug 2008 15:08:34 +0000 (15:08 +0000)
committerFlorian Fainelli <florian@openwrt.org>
Wed, 13 Aug 2008 15:08:34 +0000 (15:08 +0000)
SVN-Revision: 12294

target/linux/rdc/files/drivers/net/r6040.c

index 29e731d..237b7fa 100644 (file)
@@ -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