lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Fri, 23 Mar 2018 21:10:26 -0700 From: Quytelda Kahja <quytelda@...alin.org> To: johannes@...solutions.net Cc: linux-wireless@...r.kernel.org, linux-kernel@...r.kernel.org, Quytelda Kahja <quytelda@...alin.org> Subject: [PATCH 2/3] ieee80211: Replace bit shifts with the BIT() macro for measurement masks. It is neater and more consistent with the rest of the document to use the BIT() macro from 'linux/bitops.h' to define the IEEE80211_SPCT_MSR_RPRT_MODE_* bitmasks. Signed-off-by: Quytelda Kahja <quytelda@...alin.org> --- include/linux/ieee80211.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/linux/ieee80211.h b/include/linux/ieee80211.h index 58069176b432..dc361ed2fb7e 100644 --- a/include/linux/ieee80211.h +++ b/include/linux/ieee80211.h @@ -1632,9 +1632,9 @@ struct ieee80211_vht_operation { #define WLAN_CAPABILITY_DMG_RADIO_MEASURE BIT(12) /* measurement */ -#define IEEE80211_SPCT_MSR_RPRT_MODE_LATE (1<<0) -#define IEEE80211_SPCT_MSR_RPRT_MODE_INCAPABLE (1<<1) -#define IEEE80211_SPCT_MSR_RPRT_MODE_REFUSED (1<<2) +#define IEEE80211_SPCT_MSR_RPRT_MODE_LATE BIT(0) +#define IEEE80211_SPCT_MSR_RPRT_MODE_INCAPABLE BIT(1) +#define IEEE80211_SPCT_MSR_RPRT_MODE_REFUSED BIT(2) #define IEEE80211_SPCT_MSR_RPRT_TYPE_BASIC 0 #define IEEE80211_SPCT_MSR_RPRT_TYPE_CCA 1 -- 2.16.2
Powered by blists - more mailing lists