mirror of
git://git.openwrt.org/openwrt/openwrt.git
synced 2024-12-28 01:22:42 +00:00
Fix card_idx calculation, thanks sn9
SVN-Revision: 12294
This commit is contained in:
parent
02780ec100
commit
f2340f4b92
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user