diff options
author | Claudiu Beznea <claudiu.beznea@gmail.com> | 2016-08-26 20:58:17 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-09-01 17:51:20 +0200 |
commit | 0ca6d8e74489b08aa34108fe00fc1ba1667301a7 (patch) | |
tree | e6e69dba3e64fa5f88bb4f380fb4d8f5906bf0ef /drivers/staging/wlan-ng/p80211metadef.h | |
parent | 2f4791255808bd0d258400b4cf230c16ea8bdeae (diff) | |
download | op-kernel-dev-0ca6d8e74489b08aa34108fe00fc1ba1667301a7.zip op-kernel-dev-0ca6d8e74489b08aa34108fe00fc1ba1667301a7.tar.gz |
Staging: wlan-ng: replace switch-case statements with macro
This patch removes multiple switch-case statements
with a new macro. The macro will generate the
corresponding bit mask based on the key index
received as input.
Chances since v1:
Corrected patch title
Signed-off-by: Claudiu Beznea <claudiu.beznea@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/wlan-ng/p80211metadef.h')
-rw-r--r-- | drivers/staging/wlan-ng/p80211metadef.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/staging/wlan-ng/p80211metadef.h b/drivers/staging/wlan-ng/p80211metadef.h index 0ccfba1..98fda3d 100644 --- a/drivers/staging/wlan-ng/p80211metadef.h +++ b/drivers/staging/wlan-ng/p80211metadef.h @@ -171,6 +171,10 @@ (P80211DID_MKSECTION(1) | \ P80211DID_MKGROUP(4) | \ P80211DID_MKITEM(4) | 0x0c000000) +#define DIDmib_dot11smt_dot11WEPDefaultKeysTable_key(_i) \ + (P80211DID_MKSECTION(1) | \ + P80211DID_MKGROUP(4) | \ + P80211DID_MKITEM(_i) | 0x0c000000) #define DIDmib_dot11smt_dot11PrivacyTable \ (P80211DID_MKSECTION(1) | \ P80211DID_MKGROUP(6)) |