Skip to content

Commit

Permalink
staging: rtl8192e: Convert typedef OCTET_STRING to struct octet_string
Browse files Browse the repository at this point in the history
Remove typedef from struct.
Rename struct.
Rename uses.

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
  • Loading branch information
Larry Finger authored and Larry Finger committed Aug 24, 2011
1 parent 95ce5fc commit 8310b6c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions drivers/staging/rtl8192e/rtl819x_Qos.h
Original file line number Diff line number Diff line change
Expand Up @@ -103,10 +103,10 @@ struct wmm_tspec {
TSPEC_BODY Body;
};

typedef struct _OCTET_STRING{
struct octet_string {
u8 *Octet;
u16 Length;
}OCTET_STRING, *POCTET_STRING;
};//, *struct octet_string *;
#define MAX_WMMELE_LENGTH 64

typedef u32 QOS_MODE, *PQOS_MODE;
Expand Down Expand Up @@ -356,7 +356,7 @@ struct bss_qos {

QOS_MODE bdQoSMode;
u8 bdWMMIEBuf[MAX_WMMELE_LENGTH];
OCTET_STRING bdWMMIE;
struct octet_string bdWMMIE;

QOS_ELE_SUBTYPE EleSubType;

Expand Down
4 changes: 2 additions & 2 deletions drivers/staging/rtl8192e/rtllib.h
Original file line number Diff line number Diff line change
Expand Up @@ -1882,14 +1882,14 @@ typedef struct _RT_POWER_SAVE_CONTROL
bool bTmpFilterHiddenAP;
bool bTmpUpdateParms;
u8 tmpSsidBuf[33];
OCTET_STRING tmpSsid2Scan;
struct octet_string tmpSsid2Scan;
bool bTmpSsid2Scan;
u8 tmpNetworkType;
u8 tmpChannelNumber;
u16 tmpBcnPeriod;
u8 tmpDtimPeriod;
u16 tmpmCap;
OCTET_STRING tmpSuppRateSet;
struct octet_string tmpSuppRateSet;
u8 tmpSuppRateBuf[MAX_NUM_RATES];
bool bTmpSuppRate;
IbssParms tmpIbpm;
Expand Down
6 changes: 3 additions & 3 deletions drivers/staging/rtl8192e/rtllib_softmac.c
Original file line number Diff line number Diff line change
Expand Up @@ -1351,7 +1351,7 @@ inline struct sk_buff *rtllib_association_req(struct rtllib_network *beacon,stru
{
static u8 AironetIeOui[] = {0x00, 0x01, 0x66};
u8 CcxAironetBuf[30];
OCTET_STRING osCcxAironetIE;
struct octet_string osCcxAironetIE;

memset(CcxAironetBuf, 0,30);
osCcxAironetIE.Octet = CcxAironetBuf;
Expand All @@ -1369,7 +1369,7 @@ inline struct sk_buff *rtllib_association_req(struct rtllib_network *beacon,stru
if (beacon->bCcxRmEnable)
{
static u8 CcxRmCapBuf[] = {0x00, 0x40, 0x96, 0x01, 0x01, 0x00};
OCTET_STRING osCcxRmCap;
struct octet_string osCcxRmCap;

osCcxRmCap.Octet = CcxRmCapBuf;
osCcxRmCap.Length = sizeof(CcxRmCapBuf);
Expand All @@ -1383,7 +1383,7 @@ inline struct sk_buff *rtllib_association_req(struct rtllib_network *beacon,stru
if ( beacon->BssCcxVerNumber >= 2 )
{
u8 CcxVerNumBuf[] = {0x00, 0x40, 0x96, 0x03, 0x00};
OCTET_STRING osCcxVerNum;
struct octet_string osCcxVerNum;
CcxVerNumBuf[4] = beacon->BssCcxVerNumber;
osCcxVerNum.Octet = CcxVerNumBuf;
osCcxVerNum.Length = sizeof(CcxVerNumBuf);
Expand Down

0 comments on commit 8310b6c

Please sign in to comment.