staging: wlan-ng: DIDmib_dot11mac_dot11OperationTable_dot11RTSThreshold in p80211meta...
authorTim Collier <osdevtc@gmail.com>
Wed, 26 Sep 2018 22:06:08 +0000 (23:06 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 28 Sep 2018 12:42:41 +0000 (14:42 +0200)
Rename DIDmib_dot11mac_dot11OperationTable_dot11RTSThreshold in
p80211metadef.h to DIDMIB_DOT11MAC_OPERATIONTABLE_RTSTHRESHOLD 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/prism2mib.c

index 943cda8a2fab506442f6228ed23790ccf3d87af8..5b9a2f01a08d2c11c3368b08a6a104b3129ad6bb 100644 (file)
@@ -410,7 +410,7 @@ static int prism2_set_wiphy_params(struct wiphy *wiphy, u32 changed)
                        data = wiphy->rts_threshold;
 
                result = prism2_domibset_uint32(wlandev,
-                                               DIDmib_dot11mac_dot11OperationTable_dot11RTSThreshold,
+                                               DIDMIB_DOT11MAC_OPERATIONTABLE_RTSTHRESHOLD,
                                                data);
                if (result) {
                        err = -EFAULT;
index d0597644c0ae18807b29f2617fb71218eb6c196a..9cfbc6177380c3cb4343a21269db7dbfc32ced35 100644 (file)
                        (P80211DID_MKSECTION(2) | \
                        P80211DID_MKGROUP(1) | \
                        P80211DID_MKITEM(1) | 0x18000000)
-#define DIDmib_dot11mac_dot11OperationTable_dot11RTSThreshold \
+#define DIDMIB_DOT11MAC_OPERATIONTABLE_RTSTHRESHOLD \
                        (P80211DID_MKSECTION(2) | \
                        P80211DID_MKGROUP(1) | \
                        P80211DID_MKITEM(2) | 0x18000000)
index 0f2d7834b11b6557baa955a8a94389ef30215475..7b036674e2ead09efa634585a5d464e5597b470b 100644 (file)
@@ -183,7 +183,7 @@ static struct mibrec mibtab[] = {
         F_STA | F_READ | F_WRITE,
         HFA384x_RID_CNFOWNMACADDR, HFA384x_RID_CNFOWNMACADDR_LEN, 0,
         prism2mib_bytearea2pstr},
-       {DIDmib_dot11mac_dot11OperationTable_dot11RTSThreshold,
+       {DIDMIB_DOT11MAC_OPERATIONTABLE_RTSTHRESHOLD,
         F_STA | F_READ | F_WRITE,
         HFA384x_RID_RTSTHRESH, 0, 0,
         prism2mib_uint32},