-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
netdev_test_ieee802154: initial import of an IEEE 802.15.4 device mock #16020
base: master
Are you sure you want to change the base?
Conversation
d64a867
to
46a1260
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me. Please squash right away.
ping @miri64 |
46a1260
to
5ee8ac7
Compare
First, I rebased, since I believe the NETOPT_MAX_PACKET_SIZE value already does not exist in master (so I test this more confidently). |
And addressed @maribu's change request. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This might still be useful, feel free to squash
456c209
to
9cae200
Compare
Squashed |
I think #16776 might have broken something :-/
|
* constraints, this mock is exactly usable as a @ref sys_netdev_test would be. | ||
* The initialized get callbacks are the ones for the following options: | ||
* - @ref NETOPT_DEVICE_TYPE (returns `value == NETDEV_TYPE_IEEE802154`) | ||
* - @ref NETOPT_MAX_PACKET_SIZE (returns `value == 102U`) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NETOPT_MAX_PACKET_SIZE
no longer exists
looks like #16109 could come in handy here 😉 |
I'll just do it with my usual Copy, Paste & and vim-macro magic tactic for now ;-) |
9cae200
to
1202c97
Compare
@miri64, ping :) |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you want me to ignore this issue, please mark it with the "State: don't stale" label. Thank you for your contributions. |
Does this still make sense with IEEE 802.15.4 HAL? |
Ping @jia200x? |
Contribution description
This provides
netdev_test_ieee802154
, an extension fornetdev_test
to initialize theget
callbacks for thosenetopt
s thatgnrc_netif
expects to be set.Testing procedure
Unittests for this feature are provided. Just run
make -C tests/netdev_test_ieee802154 flash test
for a board of your choice.
A GNRC-less variant (without the use of
gnrc_nettype_sixlowpan
) can also be tested usingTEST_PROTO=0 make -C tests/netdev_test_ieee802154 flash test
Issues/PRs references
#15694 (comment)