Staging: wlan-ng: uses DIDmib_dot11smt_dot11WEPDefaultKeysTable_key() macro instead...
authorClaudiu Beznea <claudiu.beznea@gmail.com>
Sun, 4 Sep 2016 17:52:18 +0000 (20:52 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 12 Sep 2016 11:19:10 +0000 (13:19 +0200)
This patch removes
DIDmib_dot11smt_dot11WEPDefaultKeysTable_dot11WEPDefaultKey1
macro and uses DIDmib_dot11smt_dot11WEPDefaultKeysTable_key()
instead.

Signed-off-by: Claudiu Beznea <claudiu.beznea@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wlan-ng/p80211metadef.h
drivers/staging/wlan-ng/p80211req.c
drivers/staging/wlan-ng/prism2mib.c

index 9a7fa8e..c15ed08 100644 (file)
 #define DIDmib_dot11smt_dot11WEPDefaultKeysTable \
                        (P80211DID_MKSECTION(1) | \
                        P80211DID_MKGROUP(4))
-#define DIDmib_dot11smt_dot11WEPDefaultKeysTable_dot11WEPDefaultKey1 \
-                       (P80211DID_MKSECTION(1) | \
-                       P80211DID_MKGROUP(4) | \
-                       P80211DID_MKITEM(2) | 0x0c000000)
 #define DIDmib_dot11smt_dot11WEPDefaultKeysTable_dot11WEPDefaultKey2 \
                        (P80211DID_MKSECTION(1) | \
                        P80211DID_MKGROUP(4) | \
index c7325fa..c1ad57f 100644 (file)
@@ -201,7 +201,7 @@ static void p80211req_mibset_mibget(wlandevice_t *wlandev,
 
        switch (mibitem->did) {
        case DIDmib_dot11smt_dot11WEPDefaultKeysTable_key(1):
-       case DIDmib_dot11smt_dot11WEPDefaultKeysTable_dot11WEPDefaultKey1:
+       case DIDmib_dot11smt_dot11WEPDefaultKeysTable_key(2):
        case DIDmib_dot11smt_dot11WEPDefaultKeysTable_dot11WEPDefaultKey2:
        case DIDmib_dot11smt_dot11WEPDefaultKeysTable_dot11WEPDefaultKey3:
                if (!isget)
index 5fcfc81..7887f2a 100644 (file)
@@ -152,7 +152,7 @@ static struct mibrec mibtab[] = {
         F_STA | F_WRITE,
         HFA384x_RID_CNFWEPDEFAULTKEY0, 0, 0,
         prism2mib_wepdefaultkey},
-       {DIDmib_dot11smt_dot11WEPDefaultKeysTable_dot11WEPDefaultKey1,
+       {DIDmib_dot11smt_dot11WEPDefaultKeysTable_key(2),
         F_STA | F_WRITE,
         HFA384x_RID_CNFWEPDEFAULTKEY1, 0, 0,
         prism2mib_wepdefaultkey},