Page MenuHomeFreeBSD

Provide MS() and SM() macros for 80211.
ClosedPublic

Authored by bz on Sep 23 2020, 10:02 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Nov 1, 7:11 PM
Unknown Object (File)
Sep 16 2024, 3:38 PM
Unknown Object (File)
Sep 16 2024, 3:38 PM
Unknown Object (File)
Sep 15 2024, 3:17 AM
Unknown Object (File)
Sep 12 2024, 3:54 AM
Unknown Object (File)
Sep 12 2024, 1:49 AM
Unknown Object (File)
Sep 5 2024, 6:32 PM
Unknown Object (File)
Sep 5 2024, 9:29 AM

Details

Summary

We have (two versions) of MS() and SM() macros which we use throughout
the wireless code. Change all but three places (ath_hal, rtwn, and rsu)
to the newly provided _IEEE80211_MASKSHIFT() and _IEEE80211_SHIFTMASK()
macros. Also change one internal case using both _S and _M instead of
just _S away from _M (leave others, such as rsu).

This has been done semi-mechanically. No functional changes intended.
TODO: improve line-wrapping after this change before commit, if the
new macro names are generally acceptable.

Requested by:	gnn (D26091)
Sponsored by:   Rubicon Communications, LLC (d/b/a "Netgate")

Diff Detail

Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 33784
Build 31001: arc lint + arc unit

Event Timeline

bz requested review of this revision.Sep 23 2020, 10:02 PM
bz set the repository for this revision to rS FreeBSD src repository - subversion.

I am mostly interested if the names are okay. I did not want to use _IEEE80211_MS() as that might be confused with some time operation MS_TO_xxx. If the names are okay, I'll wrap the lines and upload a new version for actual review.

This revision is now accepted and ready to land.Sep 24 2020, 3:01 AM

Arg. Sorry, used the wrong alias and pushed the change into head instead of here. Please do a post-commit review in head then.

This landed by accident in head as https://svnweb.freebsd.org/changeset/base/366112 (not sure why the review wasn't automatically closed either).