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

Exposing More Data Field in 802.11 Header #252

Merged
merged 2 commits into from
Oct 4, 2017

Conversation

juno0812
Copy link
Contributor

@juno0812 juno0812 commented Oct 4, 2017

Added getter, setter, and tests for the more data field of the 802.11 header.

@@ -164,6 +164,10 @@ void Dot11::power_mgmt(small_uint<1> new_value) {
header_.control.power_mgmt = (new_value)? 1 : 0;
}

void Dot11::more_data(small_uint<1> new_value) {
header_.control.more_data = (new_value)? 1 : 0;
Copy link
Owner

Choose a reason for hiding this comment

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

You should be able to just do = new_value as that is already in the range [0, 1].

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I agree. I was just keeping it consistent with the other fields like power management above.

Copy link
Owner

Choose a reason for hiding this comment

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

Oh I didn't realize that was the case. Alright, I'll merge it as it is then.

@mfontanini
Copy link
Owner

Thanks, I'm not sure how this one was missed.

@mfontanini mfontanini merged commit b43d2f7 into mfontanini:develop Oct 4, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants