From d68b1a5f843da4f1e0d9f7f5d6957e91325aecdc Mon Sep 17 00:00:00 2001 From: Jose Alamos Date: Mon, 21 Jun 2021 13:48:29 +0200 Subject: [PATCH] nrf802154: use ieee802154_dst_filter in netdev implementation --- cpu/nrf52/radio/nrf802154/nrf802154.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/cpu/nrf52/radio/nrf802154/nrf802154.c b/cpu/nrf52/radio/nrf802154/nrf802154.c index 38d81244eb..54fb8dae44 100644 --- a/cpu/nrf52/radio/nrf802154/nrf802154.c +++ b/cpu/nrf52/radio/nrf802154/nrf802154.c @@ -492,8 +492,10 @@ void isr_radio(void) /* only process packet if event callback is set and CRC is valid */ if ((nrf802154_dev->netdev.event_callback) && (NRF_RADIO->CRCSTATUS == 1) && - (netdev_ieee802154_dst_filter(nrf802154_dev, - &rxbuf[1]) == 0)) { + (ieee802154_dst_filter(&rxbuf[1], + nrf802154_dev->pan, + (network_uint16_t*) nrf802154_dev->short_addr, + nrf802154_dev->long_addr) == 0)) { _state |= RX_COMPLETE; } else {