staging:rtl8192u: Rename octet_string members - Style
Rename the structure octet_string's member variables Octet to octet and Length to length. This change clears the checkpatch issue with CamelCase naming of variables. This is purely a coding style change which should have no impact on runtime code execution. Signed-off-by: John Whitmore <johnfwhitmore@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
4f698fc122
commit
4375c036ca
@ -1066,49 +1066,49 @@ ieee80211_association_req(struct ieee80211_network *beacon,
|
|||||||
struct octet_string osCcxAironetIE;
|
struct octet_string osCcxAironetIE;
|
||||||
|
|
||||||
memset(CcxAironetBuf, 0, 30);
|
memset(CcxAironetBuf, 0, 30);
|
||||||
osCcxAironetIE.Octet = CcxAironetBuf;
|
osCcxAironetIE.octet = CcxAironetBuf;
|
||||||
osCcxAironetIE.Length = sizeof(CcxAironetBuf);
|
osCcxAironetIE.length = sizeof(CcxAironetBuf);
|
||||||
//
|
//
|
||||||
// Ref. CCX test plan v3.61, 3.2.3.1 step 13.
|
// Ref. CCX test plan v3.61, 3.2.3.1 step 13.
|
||||||
// We want to make the device type as "4500-client". 060926, by CCW.
|
// We want to make the device type as "4500-client". 060926, by CCW.
|
||||||
//
|
//
|
||||||
memcpy(osCcxAironetIE.Octet, AironetIeOui, sizeof(AironetIeOui));
|
memcpy(osCcxAironetIE.octet, AironetIeOui, sizeof(AironetIeOui));
|
||||||
|
|
||||||
// CCX1 spec V1.13, A01.1 CKIP Negotiation (page23):
|
// CCX1 spec V1.13, A01.1 CKIP Negotiation (page23):
|
||||||
// "The CKIP negotiation is started with the associate request from the client to the access point,
|
// "The CKIP negotiation is started with the associate request from the client to the access point,
|
||||||
// containing an Aironet element with both the MIC and KP bits set."
|
// containing an Aironet element with both the MIC and KP bits set."
|
||||||
osCcxAironetIE.Octet[IE_CISCO_FLAG_POSITION] |= (SUPPORT_CKIP_PK | SUPPORT_CKIP_MIC);
|
osCcxAironetIE.octet[IE_CISCO_FLAG_POSITION] |= (SUPPORT_CKIP_PK | SUPPORT_CKIP_MIC);
|
||||||
tag = skb_put(skb, ckip_ie_len);
|
tag = skb_put(skb, ckip_ie_len);
|
||||||
*tag++ = MFIE_TYPE_AIRONET;
|
*tag++ = MFIE_TYPE_AIRONET;
|
||||||
*tag++ = osCcxAironetIE.Length;
|
*tag++ = osCcxAironetIE.length;
|
||||||
memcpy(tag, osCcxAironetIE.Octet, osCcxAironetIE.Length);
|
memcpy(tag, osCcxAironetIE.octet, osCcxAironetIE.length);
|
||||||
tag += osCcxAironetIE.Length;
|
tag += osCcxAironetIE.length;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (beacon->bCcxRmEnable) {
|
if (beacon->bCcxRmEnable) {
|
||||||
static u8 CcxRmCapBuf[] = {0x00, 0x40, 0x96, 0x01, 0x01, 0x00};
|
static u8 CcxRmCapBuf[] = {0x00, 0x40, 0x96, 0x01, 0x01, 0x00};
|
||||||
struct octet_string osCcxRmCap;
|
struct octet_string osCcxRmCap;
|
||||||
|
|
||||||
osCcxRmCap.Octet = CcxRmCapBuf;
|
osCcxRmCap.octet = CcxRmCapBuf;
|
||||||
osCcxRmCap.Length = sizeof(CcxRmCapBuf);
|
osCcxRmCap.length = sizeof(CcxRmCapBuf);
|
||||||
tag = skb_put(skb, ccxrm_ie_len);
|
tag = skb_put(skb, ccxrm_ie_len);
|
||||||
*tag++ = MFIE_TYPE_GENERIC;
|
*tag++ = MFIE_TYPE_GENERIC;
|
||||||
*tag++ = osCcxRmCap.Length;
|
*tag++ = osCcxRmCap.length;
|
||||||
memcpy(tag, osCcxRmCap.Octet, osCcxRmCap.Length);
|
memcpy(tag, osCcxRmCap.octet, osCcxRmCap.length);
|
||||||
tag += osCcxRmCap.Length;
|
tag += osCcxRmCap.length;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (beacon->BssCcxVerNumber >= 2) {
|
if (beacon->BssCcxVerNumber >= 2) {
|
||||||
u8 CcxVerNumBuf[] = {0x00, 0x40, 0x96, 0x03, 0x00};
|
u8 CcxVerNumBuf[] = {0x00, 0x40, 0x96, 0x03, 0x00};
|
||||||
struct octet_string osCcxVerNum;
|
struct octet_string osCcxVerNum;
|
||||||
CcxVerNumBuf[4] = beacon->BssCcxVerNumber;
|
CcxVerNumBuf[4] = beacon->BssCcxVerNumber;
|
||||||
osCcxVerNum.Octet = CcxVerNumBuf;
|
osCcxVerNum.octet = CcxVerNumBuf;
|
||||||
osCcxVerNum.Length = sizeof(CcxVerNumBuf);
|
osCcxVerNum.length = sizeof(CcxVerNumBuf);
|
||||||
tag = skb_put(skb, cxvernum_ie_len);
|
tag = skb_put(skb, cxvernum_ie_len);
|
||||||
*tag++ = MFIE_TYPE_GENERIC;
|
*tag++ = MFIE_TYPE_GENERIC;
|
||||||
*tag++ = osCcxVerNum.Length;
|
*tag++ = osCcxVerNum.length;
|
||||||
memcpy(tag, osCcxVerNum.Octet, osCcxVerNum.Length);
|
memcpy(tag, osCcxVerNum.octet, osCcxVerNum.length);
|
||||||
tag += osCcxVerNum.Length;
|
tag += osCcxVerNum.length;
|
||||||
}
|
}
|
||||||
//HT cap element
|
//HT cap element
|
||||||
if (ieee->pHTInfo->bCurrentHTSupport && ieee->pHTInfo->bEnableHT) {
|
if (ieee->pHTInfo->bCurrentHTSupport && ieee->pHTInfo->bEnableHT) {
|
||||||
|
@ -738,10 +738,10 @@ void HTConstructRT2RTAggElement(struct ieee80211_device *ieee, u8 *posRT2RTAgg,
|
|||||||
section of code.
|
section of code.
|
||||||
if(IS_UNDER_11N_AES_MODE(Adapter))
|
if(IS_UNDER_11N_AES_MODE(Adapter))
|
||||||
{
|
{
|
||||||
posRT2RTAgg->Octet[5] |= RT_HT_CAP_USE_AMPDU;
|
posRT2RTAgg->octet[5] |= RT_HT_CAP_USE_AMPDU;
|
||||||
}else
|
}else
|
||||||
{
|
{
|
||||||
posRT2RTAgg->Octet[5] &= 0xfb;
|
posRT2RTAgg->octet[5] &= 0xfb;
|
||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
#else
|
#else
|
||||||
|
@ -73,8 +73,8 @@ struct tspec_body {
|
|||||||
// 802.11 Management frame Status Code field
|
// 802.11 Management frame Status Code field
|
||||||
//----------------------------------------------------------------------------
|
//----------------------------------------------------------------------------
|
||||||
struct octet_string {
|
struct octet_string {
|
||||||
u8 *Octet;
|
u8 *octet;
|
||||||
u16 Length;
|
u16 length;
|
||||||
};
|
};
|
||||||
|
|
||||||
//Added by joseph
|
//Added by joseph
|
||||||
|
Loading…
Reference in New Issue
Block a user