]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
staging: wlan-ng: rename DIDmib_dot11smt_dot11PrivacyTable_dot11PrivacyInvoked in...
authorTim Collier <osdevtc@gmail.com>
Wed, 26 Sep 2018 22:06:03 +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_dot11PrivacyInvoked to
DIDMIB_DOT11SMT_PRIVACYTABLE_PRIVACYINVOKED 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 6edc28c9c219eeadcfd50c6a5e45616352408316..e27daf2b700de3b2d13006f1d02e5588befffe9a 100644 (file)
@@ -502,7 +502,7 @@ static int prism2_connect(struct wiphy *wiphy, struct net_device *dev,
                 * seems reasonable anyways
                 */
                result = prism2_domibset_uint32(wlandev,
-                                               DIDmib_dot11smt_dot11PrivacyTable_dot11PrivacyInvoked,
+                                               DIDMIB_DOT11SMT_PRIVACYTABLE_PRIVACYINVOKED,
                                                P80211ENUM_truth_true);
                if (result)
                        goto exit;
@@ -518,7 +518,7 @@ static int prism2_connect(struct wiphy *wiphy, struct net_device *dev,
                 * and exclude unencrypted
                 */
                result = prism2_domibset_uint32(wlandev,
-                                               DIDmib_dot11smt_dot11PrivacyTable_dot11PrivacyInvoked,
+                                               DIDMIB_DOT11SMT_PRIVACYTABLE_PRIVACYINVOKED,
                                                P80211ENUM_truth_false);
                if (result)
                        goto exit;
index b7fcdee2f954af6c4b24430c760e1769e44823dd..3dfa1da983e87da4df98a986e6edea4decec2884 100644 (file)
 #define DIDMIB_DOT11SMT_PRIVACYTABLE \
                        (P80211DID_MKSECTION(1) | \
                        P80211DID_MKGROUP(6))
-#define DIDmib_dot11smt_dot11PrivacyTable_dot11PrivacyInvoked \
+#define DIDMIB_DOT11SMT_PRIVACYTABLE_PRIVACYINVOKED \
                        (P80211DID_MKSECTION(1) | \
                        P80211DID_MKGROUP(6) | \
                        P80211DID_MKITEM(1) | 0x18000000)
index 7df34807ca844b0e1f4461dea82ef8198daffab9..7fcee85c288180efbedc0a7d7e26c12891733b05 100644 (file)
@@ -226,7 +226,7 @@ static void p80211req_mibset_mibget(struct wlandevice *wlandev,
                }
        break;
        }
-       case DIDmib_dot11smt_dot11PrivacyTable_dot11PrivacyInvoked:{
+       case DIDMIB_DOT11SMT_PRIVACYTABLE_PRIVACYINVOKED:{
                u32 *data = (u32 *)mibitem->data;
 
                p80211req_handle_action(wlandev, data, isget,
index ebd9921c3ed611a55e7ac42c47118a51a23427e3..831f315084bc45fe5f6c81564eccbd3285c15ab9 100644 (file)
@@ -164,7 +164,7 @@ static struct mibrec mibtab[] = {
         F_STA | F_WRITE,
         HFA384x_RID_CNFWEPDEFAULTKEY3, 0, 0,
         prism2mib_wepdefaultkey},
-       {DIDmib_dot11smt_dot11PrivacyTable_dot11PrivacyInvoked,
+       {DIDMIB_DOT11SMT_PRIVACYTABLE_PRIVACYINVOKED,
         F_STA | F_READ | F_WRITE,
         HFA384x_RID_CNFWEPFLAGS, HFA384x_WEPFLAGS_PRIVINVOKED, 0,
         prism2mib_privacyinvoked},