Skip to content

Commit

Permalink
wifi: try ignoring MP frames if not engaging in MP comm
Browse files Browse the repository at this point in the history
  • Loading branch information
Arisotura committed Apr 13, 2024
1 parent 8feeee6 commit 95adc87
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/Wifi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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];

Expand Down

0 comments on commit 95adc87

Please sign in to comment.