ieee80211: redefine S1G bits with GENMASK
authorThomas Pedersen <thomas@adapt-ip.com>
Tue, 8 Sep 2020 19:03:02 +0000 (12:03 -0700)
committerChristian Lamparter <chunkeey@gmail.com>
Fri, 5 Feb 2021 10:39:41 +0000 (11:39 +0100)
commita324ac157b9b164d70d1c21cf782c57258129caf
tree556baf9d1e6ecec6231a45e6f648adc6fac1b3ce
parent8573dd4f81db6a220b75437d03aa920b4a5f0400
ieee80211: redefine S1G bits with GENMASK

The S1G capability fields were defined by ORing BITS()
together, and expecting a custom macro to use the _SHIFT
definitions. Use the Linux kernel GENMASK for the
definitions now, and FIELD_{GET,PREP} to access the fields
in the future.

Take the chance to rename eg. S1G_CAPAB_B0 to the more
compact S1G_CAP0.

Signed-off-by: Thomas Pedersen <thomas@adapt-ip.com>
Link: https://lore.kernel.org/r/20200908190323.15814-2-thomas@adapt-ip.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
include/linux/ieee80211.h