netdev_ieee802154_submac: unify legacy and radio HAL bootstrap#15231
Conversation
|
done! it works now with |
8c82154 to
ad7650d
Compare
|
Please squash. |
dd65863 to
e6e4a31
Compare
|
done! I also dropped the |
|
shall I squash? |
1c6bc91 to
00b0186
Compare
benpicco
left a comment
There was a problem hiding this comment.
nrf52840dk now gets stuck in a boot loop with examples/gnrc_networking.
Works fine when using netdev_ieee802154_submac.
| @@ -197,7 +178,7 @@ static void _set_chan(uint16_t chan) | |||
| /* Channel map between 2400 MHZ ... 2500 MHz | |||
There was a problem hiding this comment.
The above assertion is triggered, channel = 0
00b0186 to
ca7240e
Compare
|
fixed. I squashes and amended directly (it fails because I removed the initialization). Also, nobody was calling |
|
Yup, that fixed it. I'll give it a try on the |
benpicco
left a comment
There was a problem hiding this comment.
cc2538_rf is also still working, both with netdev_ieee802154_submac and without.
Sure! |
|
Strange observation (possibly unrelated): With netdev_ieee802154_submacclassic netdev
|
|
hmmm strange. I will check what's going on there |
|
Unfortunately not, the issue is still present on current |
Contribution description
This PR unifies the init procedure for the Radio HAL and legacy
netdev_<device>interface. This allocates anetdev_ieee802154_submac_tdescriptor if modulenetdev_ieee802154_submacis present. If it's not present, it allocates the legacynetdev_ieee802154_tonly if the Radio HAL is not present. This ensures that nonetdevdependencies are pulled if only the Radio HAL is used (e.g OpenWSN).This whole step allows to run all radios that implement the Radio HAL with
netdev_ieee802154_submacwithout changing the bootstrap code. For instance, #15132 should work with this PR.TL;DR:
USEMODULE+=netdev_ieee802154_submacshould work out of the box for all radios that implement the Radio HAL (e.g LWIP, OpenThread can bootstrap a radio in the same way they used to do withnetdev)Testing procedure
tests/ieee802154_halandtests/ieee802154_submac.gnrc_networkingwith and withoutnetdev_ieee802154_submac.nrf802154(thecc2538_rfis not yet in the bootstrap list :/)netdev_ieee802154_submacis selected.Issues/PRs references
#15132