diff --git a/src/add-ons/kernel/drivers/network/rtl8139/TODO b/src/add-ons/kernel/drivers/network/rtl8139/TODO index 1954985eb1..e29f59d9b5 100644 --- a/src/add-ons/kernel/drivers/network/rtl8139/TODO +++ b/src/add-ons/kernel/drivers/network/rtl8139/TODO @@ -1,4 +1,4 @@ - A major code cleanup -- make sure all packets are received - Confirm to the Opentracker coding guidelines - Implement the free_hook +- Support other card types diff --git a/src/add-ons/kernel/drivers/network/rtl8139/driver.c b/src/add-ons/kernel/drivers/network/rtl8139/driver.c index b0cb89847f..eb0681be1f 100644 --- a/src/add-ons/kernel/drivers/network/rtl8139/driver.c +++ b/src/add-ons/kernel/drivers/network/rtl8139/driver.c @@ -423,14 +423,14 @@ open_hook(const char *name, uint32 flags, void** cookie) m_pcimodule->write_io_32( data->reg_base + TSAD0 , (int32)data->transmitbufferphy[0] ); data->transmitbuffer[1] = data->transmitbuffer[0]; data->transmitbufferlog[1] = data->transmitbufferlog[0] + 2048; - data->transmitbufferphy[1] = data->transmitbufferlog[0] + 2048; + data->transmitbufferphy[1] = data->transmitbufferphy[0] + 2048; m_pcimodule->write_io_32( data->reg_base + TSAD1 , (int32)data->transmitbufferphy[1] ); data->transmitbuffer[2] = alloc_mem( &(data->transmitbufferlog[2]) , &(data->transmitbufferphy[2]) , 4096 , "txbuffer23" ); m_pcimodule->write_io_32( data->reg_base + TSAD2 , (int32)data->transmitbufferphy[2] ); data->transmitbuffer[3] = data->transmitbuffer[2]; data->transmitbufferlog[3] = data->transmitbufferlog[2] + 2048; - data->transmitbufferphy[3] = data->transmitbufferlog[2] + 2048; + data->transmitbufferphy[3] = data->transmitbufferphy[2] + 2048; m_pcimodule->write_io_32( data->reg_base + TSAD3 , (int32)data->transmitbufferphy[3] ); if( data->transmitbuffer[0] == B_ERROR || data->transmitbuffer[2] == B_ERROR )