]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Provide MS() and SM() macros for 80211 and wireless drivers.
authorbz <bz@FreeBSD.org>
Thu, 24 Sep 2020 10:57:39 +0000 (10:57 +0000)
committerbz <bz@FreeBSD.org>
Thu, 24 Sep 2020 10:57:39 +0000 (10:57 +0000)
commitc2a80222b761bfe642ebf85953af611fe7e4336c
tree8608a3be134102228d9952d30c4d10d4a146331a
parent40406f53607c243239b380c7f1a9849a66307271
Provide MS() and SM() macros for 80211 and wireless drivers.

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 (one of the reasons rtwn and rsu were not changed).

This was done semi-mechanically.  No functional changes intended.

Requested by: gnn (D26091)
Reviewed by: adrian (pre line wrap)
MFC after: 2 weeks
Sponsored by: Rubicon Communications, LLC (d/b/a "Netgate")
Differential Revision: https://reviews.freebsd.org/D26539
15 files changed:
sys/dev/ath/if_ath_tx.c
sys/dev/ath/if_ath_tx_ht.c
sys/dev/bwn/if_bwn.c
sys/dev/iwn/if_iwn.c
sys/dev/malo/if_malo.c
sys/dev/mwl/if_mwl.c
sys/net80211/ieee80211_freebsd.c
sys/net80211/ieee80211_ht.c
sys/net80211/ieee80211_ioctl.c
sys/net80211/ieee80211_output.c
sys/net80211/ieee80211_regdomain.c
sys/net80211/ieee80211_sta.c
sys/net80211/ieee80211_superg.c
sys/net80211/ieee80211_var.h
sys/net80211/ieee80211_vht.c