staging: wlan-ng: rename DIDmsg_dot11req_mibset in p80211metadef.h
authorTim Collier <osdevtc@gmail.com>
Wed, 26 Sep 2018 22:05:32 +0000 (23:05 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 28 Sep 2018 12:41:36 +0000 (14:41 +0200)
Rename DIDmsg_dot11req_mibset in p80211metadef.h to
DIDMSG_DOT11REQ_MIBSET to fix "Avoid CamelCase" message from
checkpatch and conform to the coding style guidelines.

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/p80211netdev.c
drivers/staging/wlan-ng/p80211req.c
drivers/staging/wlan-ng/prism2sta.c

index c1cfbbb..8a51dec 100644 (file)
@@ -76,7 +76,7 @@ static int prism2_domibset_uint32(struct wlandevice *wlandev, u32 did, u32 data)
        struct p80211item_uint32 *mibitem =
                        (struct p80211item_uint32 *)&msg.mibattribute.data;
 
-       msg.msgcode = DIDmsg_dot11req_mibset;
+       msg.msgcode = DIDMSG_DOT11REQ_MIBSET;
        mibitem->did = did;
        mibitem->data = data;
 
@@ -90,7 +90,7 @@ static int prism2_domibset_pstr32(struct wlandevice *wlandev,
        struct p80211item_pstr32 *mibitem =
                        (struct p80211item_pstr32 *)&msg.mibattribute.data;
 
-       msg.msgcode = DIDmsg_dot11req_mibset;
+       msg.msgcode = DIDMSG_DOT11REQ_MIBSET;
        mibitem->did = did;
        mibitem->data.len = len;
        memcpy(mibitem->data.data, data, len);
index cee0bee..520ee65 100644 (file)
@@ -59,7 +59,7 @@
                        (P80211DID_MKSECTION(1) | \
                        P80211DID_MKGROUP(1) | \
                        P80211DID_MKITEM(2) | 0x00000000)
-#define DIDmsg_dot11req_mibset \
+#define DIDMSG_DOT11REQ_MIBSET \
                        (P80211DID_MKSECTION(1) | \
                        P80211DID_MKGROUP(2))
 #define DIDmsg_dot11req_mibset_mibattribute \
index ae98ac1..9a563e5 100644 (file)
@@ -638,7 +638,7 @@ static int p80211knetdev_set_mac_address(struct net_device *dev, void *addr)
 
        /* Set up a dot11req_mibset */
        memset(&dot11req, 0, sizeof(dot11req));
-       dot11req.msgcode = DIDmsg_dot11req_mibset;
+       dot11req.msgcode = DIDMSG_DOT11REQ_MIBSET;
        dot11req.msglen = sizeof(dot11req);
        memcpy(dot11req.devname,
               ((struct wlandevice *)dev->ml_priv)->name,
index 45c5a8e..0f72532 100644 (file)
@@ -185,7 +185,7 @@ static void p80211req_handlemsg(struct wlandevice *wlandev,
        break;
        }
        case DIDMSG_DOT11REQ_MIBGET:
-       case DIDmsg_dot11req_mibset:{
+       case DIDMSG_DOT11REQ_MIBSET:{
                int isget = (msg->msgcode == DIDMSG_DOT11REQ_MIBGET);
                struct p80211msg_dot11req_mibget *mib_msg =
                        (struct p80211msg_dot11req_mibget *)msg;
index 78a4875..a255468 100644 (file)
@@ -292,7 +292,7 @@ static int prism2sta_mlmerequest(struct wlandevice *wlandev,
                pr_debug("Received mibget request\n");
                result = prism2mgmt_mibset_mibget(wlandev, msg);
                break;
-       case DIDmsg_dot11req_mibset:
+       case DIDMSG_DOT11REQ_MIBSET:
                pr_debug("Received mibset request\n");
                result = prism2mgmt_mibset_mibget(wlandev, msg);
                break;