mirror of
https://github.com/ipxe/ipxe
synced 2025-12-23 13:30:57 +03:00
Changed length parameter in SPI methods to be a byte length, rather than
a word length.
This commit is contained in:
@@ -276,7 +276,7 @@ static void rtl_read_mac ( struct rtl8139_nic *rtl, uint8_t *mac_addr ) {
|
||||
|
||||
DBG ( "MAC address is " );
|
||||
for ( i = EE_MAC ; i < ( EE_MAC + ( ETH_ALEN / 2 ) ) ; i++ ) {
|
||||
device->type->read ( device, i, mac_addr, 1 );
|
||||
device->type->read ( device, i, mac_addr, 2 );
|
||||
DBG ( "%02x%02x", mac_addr[0], mac_addr[1] );
|
||||
mac_addr += 2;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user