ieee802154: migrate netdev_ieee802154_dst_filter to a common ieee802154#16576
Conversation
|
I pushed the changes and added unit tests, therefore can no longer ack... Hi @benpicco 👋 |
0490335 to
b7c3e1a
Compare
|
squashed |
|
Seems like some |
b7c3e1a to
9425f56
Compare
|
The test is fine. I just changed the short address from uint16_t to network_uint16_t. |
|
Please squash, murdock is happy now. |
| int ieee802154_dst_filter(const uint8_t *mhr, uint16_t pan, | ||
| network_uint16_t short_addr, const eui64_t *ext_addr); |
There was a problem hiding this comment.
Just to clarify: pan is uint16_t but short_addr is network_uint16_t?
There was a problem hiding this comment.
yes :(
Unfortunately this is the way how it's presented in many ieee802154_xxx functions.
I would actually migrate everything to little endian values. We could the use all ieee802154_get_xxx operations without any kind of memcpy / reverse. But we would need to adapt many modules.
There was a problem hiding this comment.
Lets keep it simple for now, the reversing issue is out of scope of this PR.
|
done! |
9425f56 to
48ef2ec
Compare
|
I just saw #16576, maybe we can get 2 birds with one stone? |
|
copy pasta 🤦 |
|
Good good. |
|
ping @benpicco |
benpicco
left a comment
There was a problem hiding this comment.
Communication using short addresses still works between samr21-xpro and nrf52840dk
Contribution description
This PR migrates
netdev_ieee802154_dst_filtertoieee802154_dst_filter.This not only makes it not dependent to netdev, but will help with Kconfig modelling since now
netdev_ieee802154can be represented as a pure netdev layer. I will add a follow up PR that shows this in action.netdev_ieee802154_dst_filteris marked as deprecated and will be removed after 2022.01.Testing procedure
Check that
examples/gnrc_networkingcompiles for e.gnrf52840dk(withUSEMODULE=nrf802154_netdev_legacy`) and confirm that pinging still works.Issues/PRs references
None so far