netdev_ieee802154/radios: refactor PAN ID reset to generic ieee802154 reset#10384
netdev_ieee802154/radios: refactor PAN ID reset to generic ieee802154 reset#10384smlng merged 11 commits intoRIOT-OS:masterfrom
Conversation
miri64
left a comment
There was a problem hiding this comment.
ACK on the code change. It removes a lot of duplicates of setting netdev_ieee802154_t::pan for a device and centralizes it and the initialization of the value to the cental netdev_ieee802154_reset() function, which is called by either the init or reset function of all touched devices.
One minor optimization proposal I'm not sure about: I think this can be removed:
RIOT/cpu/cc2538/radio/cc2538_rf_netdev.c
Lines 364 to 365 in 83ca890
I'll test with the devices available to me as soon as I have access to them again.
Thanks, I already suspected that I was missing something in that driver. |
miri64
left a comment
There was a problem hiding this comment.
Another question after scrolling through the code a bit again
|
Tested |
|
Also tested |
|
Murdock likes it (at least compilation-wise) so I guess we can put a (virtual) tick on that as well :-) |
|
|
|
|
|
@PeterKietzmann can you have a look with the |
|
@smlng do you have access to the missing devices? |
|
( |
|
remote-revb (cc2538) works as expected |
@smlng please don't approve a PR, if you did not test everything. A verbal ACK and the respective Reviewed: labels should suffice.
|
Tested on |
|
Tested with mrf24j40 + nucleo-l476rg and gnrc_networking:
-> works as expected to I'll check the box above. |
This commit adds the reset of the PAN ID to the generic ieee802154 reset function.
This write access is only required when a modification to the PAN ID happened directly via this function and not via a netdev::set operation. The only direct call was done in the reset function of the driver
This write access is only required when a modification to the PAN ID happened directly via this function and not via a netdev::set operation. The only direct call was done in the reset function of the driver
This write access is only required when a modification to the PAN ID happened directly via this function and not via a netdev::set operation. The only direct call was done in the reset function of the driver
This write access is only required when a modification to the PAN ID happened directly via this function and not via a netdev::set operation. The only direct call was done in the reset function of the driver
4d88490 to
2abf86a
Compare
|
Squashed, thanks for testing! |
Contribution description
This PR refactors the PAN ID from the radio reset function to the generic
netdev_ieee802154_resetand sets it via thenetdev::setcall. This allows for removal of thedev->netdevaccesses in the radio specificset_pancalls.Testing procedure
Verify that initialization and reset of the PAN ID works for the affected radios
Issues/PRs references
Chipping away at dependencies for #7736