From: Thomas Pedersen Date: Tue, 8 Sep 2020 19:03:02 +0000 (-0700) Subject: ieee80211: redefine S1G bits with GENMASK X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;ds=sidebyside;h=a324ac157b9b164d70d1c21cf782c57258129caf;hp=a324ac157b9b164d70d1c21cf782c57258129caf;p=carl9170fw.git 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 Link: https://lore.kernel.org/r/20200908190323.15814-2-thomas@adapt-ip.com Signed-off-by: Johannes Berg Signed-off-by: Christian Lamparter ---