Fixed the Mac address on some NIC's.

This commit is contained in:
OBattler
2020-04-30 22:57:40 +02:00
parent 54a9a6fd1b
commit 416150683a

View File

@@ -1265,13 +1265,6 @@ nic_init(const device_t *info)
dev->dp8390->priv = dev;
dev->dp8390->interrupt = nic_interrupt;
memcpy(dev->dp8390->physaddr, dev->maclocal, sizeof(dev->maclocal));
nelog(2, "%s: I/O=%04x, IRQ=%d, MAC=%02x:%02x:%02x:%02x:%02x:%02x\n",
dev->name, dev->base_address, dev->base_irq,
dev->dp8390->physaddr[0], dev->dp8390->physaddr[1], dev->dp8390->physaddr[2],
dev->dp8390->physaddr[3], dev->dp8390->physaddr[4], dev->dp8390->physaddr[5]);
switch(dev->board) {
case NE2K_NE1000:
dev->maclocal[0] = 0x00; /* 00:00:D8 (Novell OID) */
@@ -1321,6 +1314,13 @@ nic_init(const device_t *info)
break;
}
memcpy(dev->dp8390->physaddr, dev->maclocal, sizeof(dev->maclocal));
nelog(2, "%s: I/O=%04x, IRQ=%d, MAC=%02x:%02x:%02x:%02x:%02x:%02x\n",
dev->name, dev->base_address, dev->base_irq,
dev->dp8390->physaddr[0], dev->dp8390->physaddr[1], dev->dp8390->physaddr[2],
dev->dp8390->physaddr[3], dev->dp8390->physaddr[4], dev->dp8390->physaddr[5]);
/*
* Make this device known to the I/O system.
* PnP and PCI devices start with address spaces inactive.