aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArisotura <thetotalworm@gmail.com>2024-04-13 12:17:16 +0200
committerArisotura <thetotalworm@gmail.com>2024-04-13 12:17:16 +0200
commit95adc87f6d32b83ab8f242d1278b8d1fd7d85624 (patch)
tree4a4a7bb34e2172b827c5ea5fbe8064302baf6d72
parent8feeee61037b23fd0cb22d2f035f6ebfa0c76e32 (diff)
wifi: try ignoring MP frames if not engaging in MP comm
-rw-r--r--src/Wifi.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/Wifi.cpp b/src/Wifi.cpp
index 12926c6..d8f440b 100644
--- a/src/Wifi.cpp
+++ b/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];