OSDN Git Service

staging: wlan-ng: rename DIDmib_p2_p2MAC_p2CurrentTxRate in p80211metadef.h
authorTim Collier <osdevtc@gmail.com>
Wed, 26 Sep 2018 22:06:26 +0000 (23:06 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 28 Sep 2018 12:42:43 +0000 (14:42 +0200)
Rename DIDmib_p2_p2MAC_p2CurrentTxRate in p80211metadef.h to
DIDMIB_P2_MAC_CURRENTTXRATE to fix "Avoid CamelCase" message from
checkpatch and conform to the coding style guidelines. Also shorten
name by removing repeated use of "P2" 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/p80211metadef.h
drivers/staging/wlan-ng/prism2mib.c
drivers/staging/wlan-ng/prism2sta.c

index d42b91d..95e79a3 100644 (file)
 #define DIDMIB_P2_MAC \
                        (P80211DID_MKSECTION(5) | \
                        P80211DID_MKGROUP(6))
-#define DIDmib_p2_p2MAC_p2CurrentTxRate \
+#define DIDMIB_P2_MAC_CURRENTTXRATE \
                        (P80211DID_MKSECTION(5) | \
                        P80211DID_MKGROUP(6) | \
                        P80211DID_MKITEM(12) | 0x10000000)
index 32d1515..32a6344 100644 (file)
@@ -224,7 +224,7 @@ static struct mibrec mibtab[] = {
 
        /* p2MAC MIB's */
 
-       {DIDmib_p2_p2MAC_p2CurrentTxRate,
+       {DIDMIB_P2_MAC_CURRENTTXRATE,
         F_STA | F_READ,
         HFA384x_RID_CURRENTTXRATE, 0, 0,
         prism2mib_uint32},
index 9926658..83e80fb 100644 (file)
@@ -1950,7 +1950,7 @@ void prism2sta_commsqual_defer(struct work_struct *data)
 
        /* Get the signal rate */
        msg.msgcode = DIDMSG_DOT11REQ_MIBGET;
-       mibitem->did = DIDmib_p2_p2MAC_p2CurrentTxRate;
+       mibitem->did = DIDMIB_P2_MAC_CURRENTTXRATE;
        result = p80211req_dorequest(wlandev, (u8 *)&msg);
 
        if (result) {