]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit - sys/net80211/ieee80211_sta.c
Provide MS() and SM() macros for 80211 and wireless drivers.
authorBjoern A. Zeeb <bz@FreeBSD.org>
Thu, 24 Sep 2020 10:57:39 +0000 (10:57 +0000)
committerBjoern A. Zeeb <bz@FreeBSD.org>
Thu, 24 Sep 2020 10:57:39 +0000 (10:57 +0000)
commitfe5ebb23cc3c3e4c94cb1443a5688d10c42a9f21
tree8608a3be134102228d9952d30c4d10d4a146331a
parent122e47836ebadefa4da114642073e7e9e6ae72d3
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