Skip to content
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

at86rf2xx: Move flags from netdev to radio #9581

Merged
merged 1 commit into from
Aug 17, 2018

Conversation

bergzand
Copy link
Member

Contribution description

The flags from the ieee802154 struct are only used in the radio code, there is no advantage of having make sense to have them in the netdev struct if their meaning is different per radio driver.

Also fixes a bug where (un)setting the AUTOACK flag would (un)set the ACK_REQ flag.

Issues/PRs references

Minor cleanup preparing for #7736

Similar PRs are required for the other radio drivers using flags.

The flags from the ieee802154 struct are only used in the radio code.
there is no advantage of having them in the netdev_ieee802154_t struct
if the flags are defined differently per radio driver.
@bergzand bergzand added Type: enhancement The issue suggests enhanceable parts / The PR enhances parts of the codebase / documentation Type: cleanup The issue proposes a clean-up / The PR cleans-up parts of the codebase / documentation Area: drivers Area: Device drivers CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR labels Jul 17, 2018
@bergzand bergzand requested review from PeterKietzmann and smlng July 17, 2018 09:18
@bergzand
Copy link
Member Author

This changes the default flags enabled for the radio (NETOPT_AUTOACK is no longer enabled by default).

@smlng
Copy link
Member

smlng commented Jul 30, 2018

@bergzand I tested and according to ifconfig command when using examples/gnrc_networking AUTOACK is still on by default?

@smlng
Copy link
Member

smlng commented Jul 30, 2018

because AUTOACK is enable on at86rf2xx_reset function anyways.

Copy link
Member

@smlng smlng left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

makes sense to move driver/device specific flags, ACK

@PeterKietzmann
Copy link
Member

Green lights @smlng!

@smlng
Copy link
Member

smlng commented Aug 1, 2018

@bergzand question: what was AT86RF2XX_OPT_RAWDUMP for, any idea? It wasn't used before as far as I see, but you [deleted] the define here.

@bergzand
Copy link
Member Author

bergzand commented Aug 1, 2018

@smlng Looking at changes from a long time ago, this was from when part of what is now handled in netif. I would say similar to the current NETOPT_RAWMODE flags.

@bergzand bergzand merged commit 7425ac9 into RIOT-OS:master Aug 17, 2018
@bergzand bergzand deleted the pr/at86rf2xx/flag_refactor branch September 19, 2018 17:59
jnohlgard pushed a commit to eistec/RIOT that referenced this pull request Nov 13, 2018
jnohlgard pushed a commit to jnohlgard/RIOT that referenced this pull request Nov 13, 2018
jnohlgard pushed a commit to jnohlgard/RIOT that referenced this pull request Nov 23, 2018
jnohlgard pushed a commit to jnohlgard/RIOT that referenced this pull request Dec 1, 2018
jnohlgard pushed a commit to jnohlgard/RIOT that referenced this pull request Dec 1, 2018
jnohlgard pushed a commit to jnohlgard/RIOT that referenced this pull request Dec 10, 2018
jnohlgard pushed a commit to jnohlgard/RIOT that referenced this pull request Dec 10, 2018
jnohlgard pushed a commit to jnohlgard/RIOT that referenced this pull request Dec 11, 2018
jnohlgard pushed a commit to eistec/RIOT that referenced this pull request Dec 11, 2018
jnohlgard pushed a commit to jnohlgard/RIOT that referenced this pull request Dec 14, 2018
benemorius pushed a commit to benemorius/RIOT that referenced this pull request Jun 22, 2019
benemorius pushed a commit to benemorius/RIOT that referenced this pull request Jun 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: drivers Area: Device drivers CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR Type: cleanup The issue proposes a clean-up / The PR cleans-up parts of the codebase / documentation Type: enhancement The issue suggests enhanceable parts / The PR enhances parts of the codebase / documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants