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

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

Rename DIDmsg_dot11req_mibget in p80211metadef.h to
DIDMSG_DOT11REQ_MIBGET 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 0f175be6
...@@ -618,7 +618,7 @@ static int prism2_get_tx_power(struct wiphy *wiphy, struct wireless_dev *wdev, ...@@ -618,7 +618,7 @@ static int prism2_get_tx_power(struct wiphy *wiphy, struct wireless_dev *wdev,
int err = 0; int err = 0;
mibitem = (struct p80211item_uint32 *)&msg.mibattribute.data; mibitem = (struct p80211item_uint32 *)&msg.mibattribute.data;
msg.msgcode = DIDmsg_dot11req_mibget; msg.msgcode = DIDMSG_DOT11REQ_MIBGET;
mibitem->did = mibitem->did =
DIDmib_dot11phy_dot11PhyTxPowerTable_dot11CurrentTxPowerLevel; DIDmib_dot11phy_dot11PhyTxPowerTable_dot11CurrentTxPowerLevel;
......
...@@ -48,7 +48,7 @@ ...@@ -48,7 +48,7 @@
#ifndef _P80211MKMETADEF_H #ifndef _P80211MKMETADEF_H
#define _P80211MKMETADEF_H #define _P80211MKMETADEF_H
#define DIDmsg_dot11req_mibget \ #define DIDMSG_DOT11REQ_MIBGET \
(P80211DID_MKSECTION(1) | \ (P80211DID_MKSECTION(1) | \
P80211DID_MKGROUP(1)) P80211DID_MKGROUP(1))
#define DIDmsg_dot11req_mibget_mibattribute \ #define DIDmsg_dot11req_mibget_mibattribute \
......
...@@ -125,7 +125,7 @@ int p80211req_dorequest(struct wlandevice *wlandev, u8 *msgbuf) ...@@ -125,7 +125,7 @@ int p80211req_dorequest(struct wlandevice *wlandev, u8 *msgbuf)
/* Check Permissions */ /* Check Permissions */
if (!capable(CAP_NET_ADMIN) && if (!capable(CAP_NET_ADMIN) &&
(msg->msgcode != DIDmsg_dot11req_mibget)) { (msg->msgcode != DIDMSG_DOT11REQ_MIBGET)) {
netdev_err(wlandev->netdev, netdev_err(wlandev->netdev,
"%s: only dot11req_mibget allowed for non-root.\n", "%s: only dot11req_mibget allowed for non-root.\n",
wlandev->name); wlandev->name);
...@@ -184,9 +184,9 @@ static void p80211req_handlemsg(struct wlandevice *wlandev, ...@@ -184,9 +184,9 @@ 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;
p80211req_mibset_mibget(wlandev, mib_msg, isget); p80211req_mibset_mibget(wlandev, mib_msg, isget);
......
...@@ -294,7 +294,7 @@ static int prism2_fwapply(const struct ihex_binrec *rfptr, ...@@ -294,7 +294,7 @@ static int prism2_fwapply(const struct ihex_binrec *rfptr,
/* read the card's PRI-SUP */ /* read the card's PRI-SUP */
memset(&getmsg, 0, sizeof(getmsg)); memset(&getmsg, 0, sizeof(getmsg));
getmsg.msgcode = DIDmsg_dot11req_mibget; getmsg.msgcode = DIDMSG_DOT11REQ_MIBGET;
getmsg.msglen = sizeof(getmsg); getmsg.msglen = sizeof(getmsg);
strcpy(getmsg.devname, wlandev->name); strcpy(getmsg.devname, wlandev->name);
......
...@@ -301,7 +301,7 @@ int prism2mgmt_mibset_mibget(struct wlandevice *wlandev, void *msgp) ...@@ -301,7 +301,7 @@ int prism2mgmt_mibset_mibget(struct wlandevice *wlandev, void *msgp)
** this is a "mibset" so make make sure that the MIB may be written. ** this is a "mibset" so make make sure that the MIB may be written.
*/ */
isget = (msg->msgcode == DIDmsg_dot11req_mibget); isget = (msg->msgcode == DIDMSG_DOT11REQ_MIBGET);
if (isget) { if (isget) {
if (!(mib->flag & F_READ)) { if (!(mib->flag & F_READ)) {
......
...@@ -288,7 +288,7 @@ static int prism2sta_mlmerequest(struct wlandevice *wlandev, ...@@ -288,7 +288,7 @@ static int prism2sta_mlmerequest(struct wlandevice *wlandev,
int result = 0; int result = 0;
switch (msg->msgcode) { switch (msg->msgcode) {
case DIDmsg_dot11req_mibget: case DIDMSG_DOT11REQ_MIBGET:
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;
...@@ -1949,7 +1949,7 @@ void prism2sta_commsqual_defer(struct work_struct *data) ...@@ -1949,7 +1949,7 @@ void prism2sta_commsqual_defer(struct work_struct *data)
} }
/* Get the signal rate */ /* Get the signal rate */
msg.msgcode = DIDmsg_dot11req_mibget; msg.msgcode = DIDMSG_DOT11REQ_MIBGET;
mibitem->did = DIDmib_p2_p2MAC_p2CurrentTxRate; mibitem->did = DIDmib_p2_p2MAC_p2CurrentTxRate;
result = p80211req_dorequest(wlandev, (u8 *)&msg); result = p80211req_dorequest(wlandev, (u8 *)&msg);
......
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