mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-03-06 21:00:31 +01:00
wifi: try ignoring MP frames if not engaging in MP comm
This commit is contained in:
parent
8feeee6103
commit
95adc87f6d
1 changed files with 11 additions and 0 deletions
11
src/Wifi.cpp
11
src/Wifi.cpp
|
@ -1625,6 +1625,17 @@ bool Wifi::CheckRX(int type) // 0=regular 1=MP replies 2=MP host frames
|
|||
continue;
|
||||
}
|
||||
|
||||
// hack: ignore MP frames if not engaged in a MP comm
|
||||
if (type == 0 && (!IsMP))
|
||||
{
|
||||
if (MACEqual(&RXBuffer[12 + 16], MPReplyMAC) ||
|
||||
MACEqual(&RXBuffer[12 + 4], MPCmdMAC) ||
|
||||
MACEqual(&RXBuffer[12 + 4], MPReplyMAC))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
framectl = *(u16*)&RXBuffer[12+0];
|
||||
txrate = RXBuffer[8];
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue