mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-11-01 17:08:10 +00:00
staging: wlan-ng: rename DIDmib_dot11smt_dot11PrivacyTable_dot11WEPDefaultKeyID in p80211metadef.h
Rename DIDmib_dot11smt_dot11PrivacyTable_dot11WEPDefaultKeyID in p80211metadef.h to DIDMIB_DOT11SMT_PRIVACYTABLE_WEPDEFAULTKEYID to fix "Avoid CamelCase" message from checkpatch and conform to the coding style guidelines. Also shorten name by removing repeated use of "DOT11" to ease readability and reduce long lines. Signed-off-by: Tim Collier <osdevtc@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
184fcaa193
commit
eeeeacd837
4 changed files with 6 additions and 6 deletions
|
@ -158,7 +158,7 @@ static int prism2_add_key(struct wiphy *wiphy, struct net_device *dev,
|
||||||
}
|
}
|
||||||
|
|
||||||
if (prism2_domibset_uint32(wlandev,
|
if (prism2_domibset_uint32(wlandev,
|
||||||
DIDmib_dot11smt_dot11PrivacyTable_dot11WEPDefaultKeyID,
|
DIDMIB_DOT11SMT_PRIVACYTABLE_WEPDEFAULTKEYID,
|
||||||
key_index))
|
key_index))
|
||||||
return -EFAULT;
|
return -EFAULT;
|
||||||
|
|
||||||
|
@ -234,7 +234,7 @@ static int prism2_set_default_key(struct wiphy *wiphy, struct net_device *dev,
|
||||||
int result = 0;
|
int result = 0;
|
||||||
|
|
||||||
result = prism2_domibset_uint32(wlandev,
|
result = prism2_domibset_uint32(wlandev,
|
||||||
DIDmib_dot11smt_dot11PrivacyTable_dot11WEPDefaultKeyID,
|
DIDMIB_DOT11SMT_PRIVACYTABLE_WEPDEFAULTKEYID,
|
||||||
key_index);
|
key_index);
|
||||||
|
|
||||||
if (result)
|
if (result)
|
||||||
|
@ -482,7 +482,7 @@ static int prism2_connect(struct wiphy *wiphy, struct net_device *dev,
|
||||||
}
|
}
|
||||||
|
|
||||||
result = prism2_domibset_uint32(wlandev,
|
result = prism2_domibset_uint32(wlandev,
|
||||||
DIDmib_dot11smt_dot11PrivacyTable_dot11WEPDefaultKeyID,
|
DIDMIB_DOT11SMT_PRIVACYTABLE_WEPDEFAULTKEYID,
|
||||||
sme->key_idx);
|
sme->key_idx);
|
||||||
if (result)
|
if (result)
|
||||||
goto exit;
|
goto exit;
|
||||||
|
|
|
@ -166,7 +166,7 @@
|
||||||
(P80211DID_MKSECTION(1) | \
|
(P80211DID_MKSECTION(1) | \
|
||||||
P80211DID_MKGROUP(6) | \
|
P80211DID_MKGROUP(6) | \
|
||||||
P80211DID_MKITEM(1) | 0x18000000)
|
P80211DID_MKITEM(1) | 0x18000000)
|
||||||
#define DIDmib_dot11smt_dot11PrivacyTable_dot11WEPDefaultKeyID \
|
#define DIDMIB_DOT11SMT_PRIVACYTABLE_WEPDEFAULTKEYID \
|
||||||
(P80211DID_MKSECTION(1) | \
|
(P80211DID_MKSECTION(1) | \
|
||||||
P80211DID_MKGROUP(6) | \
|
P80211DID_MKGROUP(6) | \
|
||||||
P80211DID_MKITEM(2) | 0x18000000)
|
P80211DID_MKITEM(2) | 0x18000000)
|
||||||
|
|
|
@ -215,7 +215,7 @@ static void p80211req_mibset_mibget(struct wlandevice *wlandev,
|
||||||
key, pstr->len);
|
key, pstr->len);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case DIDmib_dot11smt_dot11PrivacyTable_dot11WEPDefaultKeyID:{
|
case DIDMIB_DOT11SMT_PRIVACYTABLE_WEPDEFAULTKEYID:{
|
||||||
u32 *data = (u32 *)mibitem->data;
|
u32 *data = (u32 *)mibitem->data;
|
||||||
|
|
||||||
if (isget) {
|
if (isget) {
|
||||||
|
|
|
@ -168,7 +168,7 @@ static struct mibrec mibtab[] = {
|
||||||
F_STA | F_READ | F_WRITE,
|
F_STA | F_READ | F_WRITE,
|
||||||
HFA384x_RID_CNFWEPFLAGS, HFA384x_WEPFLAGS_PRIVINVOKED, 0,
|
HFA384x_RID_CNFWEPFLAGS, HFA384x_WEPFLAGS_PRIVINVOKED, 0,
|
||||||
prism2mib_privacyinvoked},
|
prism2mib_privacyinvoked},
|
||||||
{DIDmib_dot11smt_dot11PrivacyTable_dot11WEPDefaultKeyID,
|
{DIDMIB_DOT11SMT_PRIVACYTABLE_WEPDEFAULTKEYID,
|
||||||
F_STA | F_READ | F_WRITE,
|
F_STA | F_READ | F_WRITE,
|
||||||
HFA384x_RID_CNFWEPDEFAULTKEYID, 0, 0,
|
HFA384x_RID_CNFWEPDEFAULTKEYID, 0, 0,
|
||||||
prism2mib_uint32},
|
prism2mib_uint32},
|
||||||
|
|
Loading…
Reference in a new issue