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:
parent
55dc62819a
commit
45ba9131c8
@ -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?) */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user