Skip to content

Commit

Permalink
fix DSi wifi hang
Browse files Browse the repository at this point in the history
  • Loading branch information
Arisotura committed Oct 23, 2024
1 parent b993ec1 commit d68b58f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/DSi_NWifi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1445,7 +1445,6 @@ void DSi_NWifi::CheckRX()
int rxlen = Platform::Net_RecvPacket(LANBuffer, DSi.UserData);
while (rxlen > 0)
{
//printf("WMI packet recv %04X %04X %04X\n", *(u16*)&LANBuffer[0], *(u16*)&LANBuffer[2], *(u16*)&LANBuffer[4]);
// check destination MAC
if (*(u32*)&LANBuffer[0] != 0xFFFFFFFF || *(u16*)&LANBuffer[4] != 0xFFFF)
{
Expand Down Expand Up @@ -1508,6 +1507,7 @@ void DSi_NWifi::CheckRX()
Mailbox[8].Write(LANBuffer[14+i]);

DrainRXBuffer();
return;
}
}

Expand Down

0 comments on commit d68b58f

Please sign in to comment.