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
F93784990: D5369.diff
Thu, Sep 12, 1:10 PM
Unknown Object (File)
Mon, Sep 9, 3:31 AM
Unknown Object (File)
Mon, Sep 9, 3:22 AM
Unknown Object (File)
Mon, Sep 9, 2:38 AM
Unknown Object (File)
Sun, Sep 8, 9:19 AM
Unknown Object (File)
Sun, Sep 8, 9:19 AM
Unknown Object (File)
Sun, Sep 8, 9:19 AM
Unknown Object (File)
Sun, Sep 8, 9:19 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 Skipped
Unit
Tests Skipped

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
929–930

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.