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
core/net/mac/frame802154: Fix typo in PAN ID compression condition #1723
core/net/mac/frame802154: Fix typo in PAN ID compression condition #1723
Conversation
I confirm this is a bug, and not the only one. It is something I had seen and fixed before but forgot to upstream it seems. I think the test should be: Then, the next if The third one should also become: |
I rewrote the conditions based on table 2a in IEEE 802.15.4e-2012 |
dest_pan_id = 1; | ||
} else if(fcf->src_addr_mode) { | ||
/* Only src address, include src PAN ID */ | ||
src_pan_id = 1; | ||
} | ||
} | ||
if(fcf->dest_addr_mode == 0 && fcf->dest_addr_mode == 1) { |
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 condition could never be true
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.
Right this needs removing as mentioned in my previous comment
👍 |
OK to squash? |
Yes, please do |
55f6aee
to
6f8306a
Compare
squashed |
Thanks! |
I stumbled upon this warning when trying out the new GCC 6.1 release:
I believe this is a typo and that the correct fix is the supplied PR, but please validate this independently.