1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-18 12:52:44 +01:00

nrf802154: use ieee802154_dst_filter in netdev implementation

This commit is contained in:
Jose Alamos 2021-06-21 13:48:29 +02:00
parent dfeb57b7f8
commit d68b1a5f84
No known key found for this signature in database
GPG Key ID: F483EB800EF89DD9

View File

@ -492,8 +492,10 @@ void isr_radio(void)
/* only process packet if event callback is set and CRC is valid */ /* only process packet if event callback is set and CRC is valid */
if ((nrf802154_dev->netdev.event_callback) && if ((nrf802154_dev->netdev.event_callback) &&
(NRF_RADIO->CRCSTATUS == 1) && (NRF_RADIO->CRCSTATUS == 1) &&
(netdev_ieee802154_dst_filter(nrf802154_dev, (ieee802154_dst_filter(&rxbuf[1],
&rxbuf[1]) == 0)) { nrf802154_dev->pan,
(network_uint16_t*) nrf802154_dev->short_addr,
nrf802154_dev->long_addr) == 0)) {
_state |= RX_COMPLETE; _state |= RX_COMPLETE;
} }
else { else {