-
Notifications
You must be signed in to change notification settings - Fork 893
802.11: fix header length when HT Control header is present #1364
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
Conversation
3943337
to
db7003e
Compare
Thank you for preparing this bug fix. The macro IEEE 802.11-2020 Section 9.2.4.1.1 calls B15 "+HTC" (the nomenclature in This way, from the specifications it seems that the proposed header length increment should be guarded by the existing Once this is clarified, it would be useful to add comments to the new code to refer to the exact clause(s) it implements. Also if you rebase on the current master branch, the second commit will disappear. |
db7003e
to
9d50d23
Compare
Thank you for your comment, I agree with you, I updated the code accordingly and added a reference to the section of the standard that defines the HT Control field. |
Based on your comment I also decided to push a commit to change the name of the bit, please let me know if you don't think we should do that here. |
Thank you. Looking at 802.11-2020 Section 9.2.4.6 again, I notice it says that HT Control is present in Control Wrapper frames regardless of +HTC, 802.11-2012 Section 8.2.4.6 says the same. |
Yes, I didn't change this because I believe this is already included in CTRL_CONTROL_WRAPPER_HDRLEN
|
I see. Since it isn't obvious that different places in the code account for different cases of HT Control length, it would be useful to add a comment to |
When the ORDER bit is set in the 802.11 flags, the header length needs to be incremented by the size of the HTControl field (4 B).
This follows the IEEE 802.11-2020 that names this bit +HTC (see Section 9.2.4.1.1).
77046ac
to
f24eaab
Compare
Good points, done. |
Thank you. This is going to be merged soon unless anyone objects. |
Thank you. |
When the ORDER bit is set in the 802.11 flags, the header length needs to be incremented by the size of the HTControl field (4 B).