diff options
| author | Michael Brown | 2006-12-04 17:09:59 +0100 |
|---|---|---|
| committer | Michael Brown | 2006-12-04 17:09:59 +0100 |
| commit | dc06c895fc089bcb9c050b2fb64494213f61e896 (patch) | |
| tree | d9f466956be3aaacf03eab76c3e097728172f506 /src/drivers/net | |
| parent | Generalised the SPI abstraction layer to also be able to handle interfaces (diff) | |
| download | ipxe-dc06c895fc089bcb9c050b2fb64494213f61e896.tar.gz ipxe-dc06c895fc089bcb9c050b2fb64494213f61e896.tar.xz ipxe-dc06c895fc089bcb9c050b2fb64494213f61e896.zip | |
Changed length parameter in SPI methods to be a byte length, rather than
a word length.
Diffstat (limited to 'src/drivers/net')
| -rw-r--r-- | src/drivers/net/rtl8139.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/drivers/net/rtl8139.c b/src/drivers/net/rtl8139.c index c1a29e4f2..34d6572ab 100644 --- a/src/drivers/net/rtl8139.c +++ b/src/drivers/net/rtl8139.c @@ -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; } |
