Page MenuHomeFreeBSD

net80211: hide subtype mask & shift in function call
ClosedPublic

Authored by avos on Feb 20 2016, 8:51 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Nov 21, 1:12 AM
Unknown Object (File)
Fri, Nov 21, 1:10 AM
Unknown Object (File)
Fri, Nov 21, 1:09 AM
Unknown Object (File)
Fri, Nov 21, 1:09 AM
Unknown Object (File)
Fri, Nov 21, 1:07 AM
Unknown Object (File)
Tue, Nov 18, 9:02 PM
Unknown Object (File)
Sat, Nov 8, 11:46 PM
Unknown Object (File)
Sat, Nov 8, 6:20 AM
Subscribers

Details

Summary

Hide subtype mask/shift (which is used for index calculation in ieee80211_mgt_subtype_name[] array) in function call.

Test Plan

Tested with RTL8188CUS, STA mode.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

avos retitled this revision from to net80211: hide subtype shift in function call.
avos updated this object.
avos edited the test plan for this revision. (Show Details)
avos added a reviewer: adrian.
avos set the repository for this revision to rS FreeBSD src repository - subversion.
adrian edited edge metadata.

let's make the two subtype functions also do the mask, and reduce code duplication there. Then yeah, commit away!

sys/net80211/ieee80211_input.c
931 ↗(On Diff #13554)

may as well have the function also do the mask, right?

This revision is now accepted and ready to land.Feb 24 2016, 6:24 AM
avos retitled this revision from net80211: hide subtype shift in function call to net80211: hide subtype mask & shift in function call.
avos updated this object.
avos edited edge metadata.

Mask subtype before shifting.

This revision now requires review to proceed.Feb 24 2016, 10:02 PM
adrian edited edge metadata.

yay!

This revision is now accepted and ready to land.Feb 24 2016, 10:26 PM
This revision was automatically updated to reflect the committed changes.