mirror of
https://github.com/hanwckf/immortalwrt-mt798x.git
synced 2025-01-10 03:09:08 +08: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…
x
Reference in New Issue
Block a user