Commit e409d2bc authored by Tim Collier's avatar Tim Collier Committed by Greg Kroah-Hartman

staging: wlan-ng: rename DIDmsg_dot11req_mibset in p80211metadef.h

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: default avatarTim Collier <osdevtc@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 42ccd88b
...@@ -76,7 +76,7 @@ static int prism2_domibset_uint32(struct wlandevice *wlandev, u32 did, u32 data) ...@@ -76,7 +76,7 @@ static int prism2_domibset_uint32(struct wlandevice *wlandev, u32 did, u32 data)
struct p80211item_uint32 *mibitem = struct p80211item_uint32 *mibitem =
(struct p80211item_uint32 *)&msg.mibattribute.data; (struct p80211item_uint32 *)&msg.mibattribute.data;
msg.msgcode = DIDmsg_dot11req_mibset; msg.msgcode = DIDMSG_DOT11REQ_MIBSET;
mibitem->did = did; mibitem->did = did;
mibitem->data = data; mibitem->data = data;
...@@ -90,7 +90,7 @@ static int prism2_domibset_pstr32(struct wlandevice *wlandev, ...@@ -90,7 +90,7 @@ static int prism2_domibset_pstr32(struct wlandevice *wlandev,
struct p80211item_pstr32 *mibitem = struct p80211item_pstr32 *mibitem =
(struct p80211item_pstr32 *)&msg.mibattribute.data; (struct p80211item_pstr32 *)&msg.mibattribute.data;
msg.msgcode = DIDmsg_dot11req_mibset; msg.msgcode = DIDMSG_DOT11REQ_MIBSET;
mibitem->did = did; mibitem->did = did;
mibitem->data.len = len; mibitem->data.len = len;
memcpy(mibitem->data.data, data, len); memcpy(mibitem->data.data, data, len);
......
...@@ -59,7 +59,7 @@ ...@@ -59,7 +59,7 @@
(P80211DID_MKSECTION(1) | \ (P80211DID_MKSECTION(1) | \
P80211DID_MKGROUP(1) | \ P80211DID_MKGROUP(1) | \
P80211DID_MKITEM(2) | 0x00000000) P80211DID_MKITEM(2) | 0x00000000)
#define DIDmsg_dot11req_mibset \ #define DIDMSG_DOT11REQ_MIBSET \
(P80211DID_MKSECTION(1) | \ (P80211DID_MKSECTION(1) | \
P80211DID_MKGROUP(2)) P80211DID_MKGROUP(2))
#define DIDmsg_dot11req_mibset_mibattribute \ #define DIDmsg_dot11req_mibset_mibattribute \
......
...@@ -638,7 +638,7 @@ static int p80211knetdev_set_mac_address(struct net_device *dev, void *addr) ...@@ -638,7 +638,7 @@ static int p80211knetdev_set_mac_address(struct net_device *dev, void *addr)
/* Set up a dot11req_mibset */ /* Set up a dot11req_mibset */
memset(&dot11req, 0, sizeof(dot11req)); memset(&dot11req, 0, sizeof(dot11req));
dot11req.msgcode = DIDmsg_dot11req_mibset; dot11req.msgcode = DIDMSG_DOT11REQ_MIBSET;
dot11req.msglen = sizeof(dot11req); dot11req.msglen = sizeof(dot11req);
memcpy(dot11req.devname, memcpy(dot11req.devname,
((struct wlandevice *)dev->ml_priv)->name, ((struct wlandevice *)dev->ml_priv)->name,
......
...@@ -185,7 +185,7 @@ static void p80211req_handlemsg(struct wlandevice *wlandev, ...@@ -185,7 +185,7 @@ static void p80211req_handlemsg(struct wlandevice *wlandev,
break; break;
} }
case DIDMSG_DOT11REQ_MIBGET: case DIDMSG_DOT11REQ_MIBGET:
case DIDmsg_dot11req_mibset:{ case DIDMSG_DOT11REQ_MIBSET:{
int isget = (msg->msgcode == DIDMSG_DOT11REQ_MIBGET); int isget = (msg->msgcode == DIDMSG_DOT11REQ_MIBGET);
struct p80211msg_dot11req_mibget *mib_msg = struct p80211msg_dot11req_mibget *mib_msg =
(struct p80211msg_dot11req_mibget *)msg; (struct p80211msg_dot11req_mibget *)msg;
......
...@@ -292,7 +292,7 @@ static int prism2sta_mlmerequest(struct wlandevice *wlandev, ...@@ -292,7 +292,7 @@ static int prism2sta_mlmerequest(struct wlandevice *wlandev,
pr_debug("Received mibget request\n"); pr_debug("Received mibget request\n");
result = prism2mgmt_mibset_mibget(wlandev, msg); result = prism2mgmt_mibset_mibget(wlandev, msg);
break; break;
case DIDmsg_dot11req_mibset: case DIDMSG_DOT11REQ_MIBSET:
pr_debug("Received mibset request\n"); pr_debug("Received mibset request\n");
result = prism2mgmt_mibset_mibget(wlandev, msg); result = prism2mgmt_mibset_mibget(wlandev, msg);
break; break;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment