1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

drivers/nrf802154: do not filter broadcast PAN ID

This commit is contained in:
Jose Alamos 2022-06-29 17:39:30 +02:00
parent 55dc62819a
commit 45ba9131c8
No known key found for this signature in database
GPG Key ID: F483EB800EF89DD9

View File

@ -124,6 +124,11 @@ static bool _l2filter(uint8_t *mhr)
int addr_len = ieee802154_get_dst(mhr, dst_addr, &dst_pan);
if ((mhr[0] & IEEE802154_FCF_TYPE_MASK) == IEEE802154_FCF_TYPE_BEACON) {
if ((memcmp(&nrf802154_pan_id, pan_bcast, 2) == 0)) {
return true;
}
}
/* filter PAN ID */
/* Will only work on little endian platform (all?) */