aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/staging/wilc1000/wilc_wfi_cfgoperations.h
diff options
context:
space:
mode:
authorChaehyun Lim <chaehyun.lim@gmail.com>2015-09-15 14:06:19 +0900
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-09-15 06:52:48 -0700
commitf57fb215442314af2512721c0b7304bad0077214 (patch)
treeec0d4fb5164b05979a1a0cfefebe1e15a5f073dd /drivers/staging/wilc1000/wilc_wfi_cfgoperations.h
parentstaging: wilc1000: remove useless extern declarations (diff)
downloadwireguard-linux-f57fb215442314af2512721c0b7304bad0077214.tar.xz
wireguard-linux-f57fb215442314af2512721c0b7304bad0077214.zip
staging: wilc1000: use BIT macro
This patch replaces bit shift with BIT(x) macro. Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/wilc1000/wilc_wfi_cfgoperations.h')
-rw-r--r--drivers/staging/wilc1000/wilc_wfi_cfgoperations.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/staging/wilc1000/wilc_wfi_cfgoperations.h b/drivers/staging/wilc1000/wilc_wfi_cfgoperations.h
index 51f9413ec803..edf5ec0adf2a 100644
--- a/drivers/staging/wilc1000/wilc_wfi_cfgoperations.h
+++ b/drivers/staging/wilc1000/wilc_wfi_cfgoperations.h
@@ -11,14 +11,14 @@
#include "wilc_wfi_netdevice.h"
/* The following macros describe the bitfield map used by the firmware to determine its 11i mode */
-#define NO_ENCRYPT 0
-#define ENCRYPT_ENABLED (1 << 0)
-#define WEP (1 << 1)
-#define WEP_EXTENDED (1 << 2)
-#define WPA (1 << 3)
-#define WPA2 (1 << 4)
-#define AES (1 << 5)
-#define TKIP (1 << 6)
+#define NO_ENCRYPT 0
+#define ENCRYPT_ENABLED BIT(0)
+#define WEP BIT(1)
+#define WEP_EXTENDED BIT(2)
+#define WPA BIT(3)
+#define WPA2 BIT(4)
+#define AES BIT(5)
+#define TKIP BIT(6)
#ifdef WILC_P2P
/* #define USE_SUPPLICANT_GO_INTENT */