]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
staging: wlan-ng: rename DIDmib_dot11smt_dot11PrivacyTable_dot11ExcludeUnencrypted...
authorTim Collier <osdevtc@gmail.com>
Wed, 26 Sep 2018 22:06:05 +0000 (23:06 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 28 Sep 2018 12:42:41 +0000 (14:42 +0200)
Rename DIDmib_dot11smt_dot11PrivacyTable_dot11ExcludeUnencrypted in
p80211metadef.h to DIDMIB_DOT11SMT_PRIVACYTABLE_EXCLUDEUNENCRYPTED to
fix "Avoid CamelCase" message from checkpatch and conform to the
coding style guidelines. Also shorten name by removing repeated use of
"DOT11" to ease readability and reduce long lines.

Signed-off-by: Tim Collier <osdevtc@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wlan-ng/cfg80211.c
drivers/staging/wlan-ng/p80211metadef.h
drivers/staging/wlan-ng/p80211req.c
drivers/staging/wlan-ng/prism2mib.c

index 11f59a70f4a0b3fe26b4ae48f01ef0a34ba589c1..943cda8a2fab506442f6228ed23790ccf3d87af8 100644 (file)
@@ -508,7 +508,7 @@ static int prism2_connect(struct wiphy *wiphy, struct net_device *dev,
                        goto exit;
 
                result = prism2_domibset_uint32(wlandev,
-                                               DIDmib_dot11smt_dot11PrivacyTable_dot11ExcludeUnencrypted,
+                                               DIDMIB_DOT11SMT_PRIVACYTABLE_EXCLUDEUNENCRYPTED,
                                                P80211ENUM_truth_true);
                if (result)
                        goto exit;
@@ -524,7 +524,7 @@ static int prism2_connect(struct wiphy *wiphy, struct net_device *dev,
                        goto exit;
 
                result = prism2_domibset_uint32(wlandev,
-                                               DIDmib_dot11smt_dot11PrivacyTable_dot11ExcludeUnencrypted,
+                                               DIDMIB_DOT11SMT_PRIVACYTABLE_EXCLUDEUNENCRYPTED,
                                                P80211ENUM_truth_false);
                if (result)
                        goto exit;
index c21c0cc9c993339a37cad7bf9644b525a8e3261e..a386b6cb15bcfb67556aa16f9eb2809147e781a7 100644 (file)
                        (P80211DID_MKSECTION(1) | \
                        P80211DID_MKGROUP(6) | \
                        P80211DID_MKITEM(2) | 0x18000000)
-#define DIDmib_dot11smt_dot11PrivacyTable_dot11ExcludeUnencrypted \
+#define DIDMIB_DOT11SMT_PRIVACYTABLE_EXCLUDEUNENCRYPTED \
                        (P80211DID_MKSECTION(1) | \
                        P80211DID_MKGROUP(6) | \
                        P80211DID_MKITEM(4) | 0x18000000)
index eb14b56791f21f2c3931fdfaea713ba9c4179bf4..ab920d6a112bd3de0ccd1212881c83a87b85d84f 100644 (file)
@@ -233,7 +233,7 @@ static void p80211req_mibset_mibget(struct wlandevice *wlandev,
                                        HOSTWEP_PRIVACYINVOKED);
        break;
        }
-       case DIDmib_dot11smt_dot11PrivacyTable_dot11ExcludeUnencrypted:{
+       case DIDMIB_DOT11SMT_PRIVACYTABLE_EXCLUDEUNENCRYPTED:{
                u32 *data = (u32 *)mibitem->data;
 
                p80211req_handle_action(wlandev, data, isget,
index 3d22fe723887647e373e75308f171364d9dd8e88..b7c82bc6153612f8e109df3bf0aef3d4fe722b63 100644 (file)
@@ -172,7 +172,7 @@ static struct mibrec mibtab[] = {
         F_STA | F_READ | F_WRITE,
         HFA384x_RID_CNFWEPDEFAULTKEYID, 0, 0,
         prism2mib_uint32},
-       {DIDmib_dot11smt_dot11PrivacyTable_dot11ExcludeUnencrypted,
+       {DIDMIB_DOT11SMT_PRIVACYTABLE_EXCLUDEUNENCRYPTED,
         F_STA | F_READ | F_WRITE,
         HFA384x_RID_CNFWEPFLAGS, HFA384x_WEPFLAGS_EXCLUDE, 0,
         prism2mib_excludeunencrypted},