aboutsummaryrefslogtreecommitdiff
path: root/src/Wifi.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/Wifi.cpp')
-rw-r--r--src/Wifi.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/Wifi.cpp b/src/Wifi.cpp
index 7f774e8..7a9b0a2 100644
--- a/src/Wifi.cpp
+++ b/src/Wifi.cpp
@@ -848,10 +848,11 @@ bool CheckRX(bool block)
continue; // oops. we received a packet we just sent.
bssidmatch = MACEqual(&RXBuffer[12 + a_bss], (u8*)&IOPORT(W_BSSID0));
- if (!(IOPORT(W_BSSID0) & 0x0001) && !(RXBuffer[12 + a_bss] & 0x01) &&
- !bssidmatch)
+ //if (!(IOPORT(W_BSSID0) & 0x0001) && !(RXBuffer[12 + a_bss] & 0x01) &&
+ if (!MACEqual(&RXBuffer[12 + a_dst], (u8*)&IOPORT(W_MACAddr0)) &&
+ !(RXBuffer[12 + a_dst] & 0x01))
{
- printf("received packet %04X but it didn't pass the BSSID check\n", framectl);
+ printf("received packet %04X but it didn't pass the MAC check\n", framectl);
continue;
}