mirror of https://gitee.com/openkylin/linux.git
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: Tim Collier <osdevtc@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
0f175be612
commit
08ac857363
|
@ -618,7 +618,7 @@ static int prism2_get_tx_power(struct wiphy *wiphy, struct wireless_dev *wdev,
|
|||
int err = 0;
|
||||
|
||||
mibitem = (struct p80211item_uint32 *)&msg.mibattribute.data;
|
||||
msg.msgcode = DIDmsg_dot11req_mibget;
|
||||
msg.msgcode = DIDMSG_DOT11REQ_MIBGET;
|
||||
mibitem->did =
|
||||
DIDmib_dot11phy_dot11PhyTxPowerTable_dot11CurrentTxPowerLevel;
|
||||
|
||||
|
|
|
@ -48,7 +48,7 @@
|
|||
#ifndef _P80211MKMETADEF_H
|
||||
#define _P80211MKMETADEF_H
|
||||
|
||||
#define DIDmsg_dot11req_mibget \
|
||||
#define DIDMSG_DOT11REQ_MIBGET \
|
||||
(P80211DID_MKSECTION(1) | \
|
||||
P80211DID_MKGROUP(1))
|
||||
#define DIDmsg_dot11req_mibget_mibattribute \
|
||||
|
|
|
@ -125,7 +125,7 @@ int p80211req_dorequest(struct wlandevice *wlandev, u8 *msgbuf)
|
|||
|
||||
/* Check Permissions */
|
||||
if (!capable(CAP_NET_ADMIN) &&
|
||||
(msg->msgcode != DIDmsg_dot11req_mibget)) {
|
||||
(msg->msgcode != DIDMSG_DOT11REQ_MIBGET)) {
|
||||
netdev_err(wlandev->netdev,
|
||||
"%s: only dot11req_mibget allowed for non-root.\n",
|
||||
wlandev->name);
|
||||
|
@ -184,9 +184,9 @@ static void p80211req_handlemsg(struct wlandevice *wlandev,
|
|||
|
||||
break;
|
||||
}
|
||||
case DIDmsg_dot11req_mibget:
|
||||
case DIDMSG_DOT11REQ_MIBGET:
|
||||
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 *)msg;
|
||||
p80211req_mibset_mibget(wlandev, mib_msg, isget);
|
||||
|
|
|
@ -294,7 +294,7 @@ static int prism2_fwapply(const struct ihex_binrec *rfptr,
|
|||
|
||||
/* read the card's PRI-SUP */
|
||||
memset(&getmsg, 0, sizeof(getmsg));
|
||||
getmsg.msgcode = DIDmsg_dot11req_mibget;
|
||||
getmsg.msgcode = DIDMSG_DOT11REQ_MIBGET;
|
||||
getmsg.msglen = sizeof(getmsg);
|
||||
strcpy(getmsg.devname, wlandev->name);
|
||||
|
||||
|
|
|
@ -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.
|
||||
*/
|
||||
|
||||
isget = (msg->msgcode == DIDmsg_dot11req_mibget);
|
||||
isget = (msg->msgcode == DIDMSG_DOT11REQ_MIBGET);
|
||||
|
||||
if (isget) {
|
||||
if (!(mib->flag & F_READ)) {
|
||||
|
|
|
@ -288,7 +288,7 @@ static int prism2sta_mlmerequest(struct wlandevice *wlandev,
|
|||
int result = 0;
|
||||
|
||||
switch (msg->msgcode) {
|
||||
case DIDmsg_dot11req_mibget:
|
||||
case DIDMSG_DOT11REQ_MIBGET:
|
||||
pr_debug("Received mibget request\n");
|
||||
result = prism2mgmt_mibset_mibget(wlandev, msg);
|
||||
break;
|
||||
|
@ -1949,7 +1949,7 @@ void prism2sta_commsqual_defer(struct work_struct *data)
|
|||
}
|
||||
|
||||
/* Get the signal rate */
|
||||
msg.msgcode = DIDmsg_dot11req_mibget;
|
||||
msg.msgcode = DIDMSG_DOT11REQ_MIBGET;
|
||||
mibitem->did = DIDmib_p2_p2MAC_p2CurrentTxRate;
|
||||
result = p80211req_dorequest(wlandev, (u8 *)&msg);
|
||||
|
||||
|
|
Loading…
Reference in New Issue