mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-23 09:19:51 +00:00
staging: wlan-ng: use GENMASK macro in define of p80211netdev.h
This patch replace actual mask stuff using BIT macros with or operators to make use of GENMASK macro which simplifies code clearity and readibility. It applies for defines included in p80211netdev.h header file. Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
27e8d46094
commit
e49651b836
1 changed files with 1 additions and 1 deletions
|
@ -143,7 +143,7 @@ extern struct iw_handler_def p80211wext_handler_def;
|
|||
#define NUM_WEPKEYS 4
|
||||
#define MAX_KEYLEN 32
|
||||
|
||||
#define HOSTWEP_DEFAULTKEY_MASK (BIT(1) | BIT(0))
|
||||
#define HOSTWEP_DEFAULTKEY_MASK GENMASK(1, 0)
|
||||
#define HOSTWEP_SHAREDKEY BIT(3)
|
||||
#define HOSTWEP_DECRYPT BIT(4)
|
||||
#define HOSTWEP_ENCRYPT BIT(5)
|
||||
|
|
Loading…
Reference in a new issue