mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-30 22:05:19 +02:00
Fix card_idx calculation, thanks sn9
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12294 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
a8d1b57fac
commit
e3f6236124
@ -1326,7 +1326,7 @@ int __devinit r6040_init_one(struct pci_dev *pdev,
|
|||||||
dev->name);
|
dev->name);
|
||||||
memcpy(dev->dev_addr, dflt_addr, ETH_ALEN);
|
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
|
#ifdef CONFIG_NET_POLL_CONTROLLER
|
||||||
|
Loading…
Reference in New Issue
Block a user