drivers/at86rf2xx: fix default page being ignored [backport 2023.01]#19468
Merged
bors[bot] merged 1 commit intoRIOT-OS:2023.01-branchfrom Apr 14, 2023
Conversation
(cherry picked from commit 2684870)
Contributor
Author
|
bors merge |
Contributor
|
Build succeeded: |
Contributor
|
I'm wondering whether it was your intention to merge this in 2023.01-branch or just an accident 🤔 |
Contributor
Author
|
Hah, ya, I guess the backport script needs a bit of configuration... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Backport of #19467
Contribution description
This PR fixes the default page of the AT86rf2xx radios (subghz variants).
After restructuring the driver, it turns out the
dev->pagevariable was never being set. Since we allocate drivers in the data segment, the page was always zero.Although the
at86rf2xx_resetfunction was setting the PHY configuration, changing any PHY parameter would simply set the page to zero (unlessNETOPT_CHANNEL_PAGEis explicitly used).Testing procedure
Make sure the subghz
at86rf2xxvariantes (e.g AT86RF212B) init with the default channel page (2).EDIT:
Test results on IoT-LAB
Issues/PRs references
Reported in https://forum.riot-os.org/t/at86rf2xx-default-page-being-ignored/3911/3