wifiscan.cpp: sanitized mac filter condition
This commit is contained in:
parent
590cc9dd5c
commit
49a0c703c1
@ -33,8 +33,9 @@ IRAM_ATTR void wifi_sniffer_packet_handler(void *buff,
|
|||||||
|
|
||||||
// process seen MAC
|
// process seen MAC
|
||||||
#if MACFILTER
|
#if MACFILTER
|
||||||
// we guess it's a smartphone, if randomization bit of MAC is set
|
// we guess it's a smartphone, if U/L bit #2 of MAC is set
|
||||||
if (!(hdr->addr2[0] & 0b10))
|
// bit #2 = 1 -> local mac (randomized) / bit #2 = 0 -> universal mac
|
||||||
|
if ((hdr->addr2[0] & 0b10) == 0)
|
||||||
return;
|
return;
|
||||||
else
|
else
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user