Ignore all writes to BBA_TXFIFOCNT
This commit is contained in:
parent
798365846d
commit
8925b828aa
|
@ -248,7 +248,7 @@ bool CEXIETHERNET::SendFrame(u8 *frame, u32 size)
|
|||
OVERLAPPED overlap;
|
||||
ZeroMemory(&overlap, sizeof(overlap));
|
||||
|
||||
//WriteFile will always return false because the TAP handle is async
|
||||
// WriteFile will always return false because the TAP handle is async
|
||||
WriteFile(mHAdapter, frame, size, NULL, &overlap);
|
||||
|
||||
DWORD res = GetLastError();
|
||||
|
@ -314,7 +314,7 @@ bool CEXIETHERNET::RecvStart()
|
|||
|
||||
if (res)
|
||||
{
|
||||
// Synce the read is syncronouse here, complete immediately
|
||||
// Since the read is synchronous here, complete immediately
|
||||
RecvHandlePacket();
|
||||
}
|
||||
|
||||
|
|
|
@ -358,6 +358,12 @@ void CEXIETHERNET::MXCommandHandler(u32 data, u32 size)
|
|||
data &= (data & 0xff) ^ 0xff;
|
||||
goto write_to_register;
|
||||
|
||||
case BBA_TXFIFOCNT:
|
||||
case BBA_TXFIFOCNT+1:
|
||||
// Ignore all writes to BBA_TXFIFOCNT
|
||||
transfer.address += size;
|
||||
return;
|
||||
|
||||
write_to_register:
|
||||
default:
|
||||
for (int i = size - 1; i >= 0; i--)
|
||||
|
|
Loading…
Reference in New Issue