Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 267731
b: refs/heads/master
c: 407e998
h: refs/heads/master
i:
  267729: a9f154e
  267727: 2668fa2
v: v3
  • Loading branch information
Larry Finger authored and Larry Finger committed Aug 24, 2011
1 parent 733aede commit 316a24e
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7f5e8a0ab632fa900f2b744f0f392e3c456c3ef3
refs/heads/master: 407e998e593d379a30e32e71d10e4f589404d0f2
6 changes: 3 additions & 3 deletions trunk/drivers/staging/rtl8192e/rtl819x_HT.h
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ typedef struct _HT_CAPABILITY_ELE{
} __attribute__ ((packed)) HT_CAPABILITY_ELE, *PHT_CAPABILITY_ELE;


typedef struct _HT_INFORMATION_ELE{
struct ht_info_ele {
u8 ControlChl;

u8 ExtChlOffset:2;
Expand All @@ -193,7 +193,7 @@ typedef struct _HT_INFORMATION_ELE{
u8 Rsvd4:4;

u8 BasicMSC[16];
} __attribute__ ((packed)) HT_INFORMATION_ELE, *PHT_INFORMATION_ELE;
} __packed;

struct mimops_ctrl {
u8 MimoPsEnable:1;
Expand Down Expand Up @@ -233,7 +233,7 @@ struct rt_hi_throughput {


HT_CAPABILITY_ELE SelfHTCap;
HT_INFORMATION_ELE SelfHTInfo;
struct ht_info_ele SelfHTInfo;

u8 PeerHTCapBuf[32];
u8 PeerHTInfoBuf[32];
Expand Down
16 changes: 8 additions & 8 deletions trunk/drivers/staging/rtl8192e/rtl819x_HTProc.c
Original file line number Diff line number Diff line change
Expand Up @@ -126,14 +126,14 @@ void HTDebugHTInfo(u8* InfoIE, u8* TitleString)
{

static u8 EWC11NHTInfo[] = {0x00, 0x90, 0x4c, 0x34};
PHT_INFORMATION_ELE pHTInfoEle;
struct ht_info_ele *pHTInfoEle;

if (!memcmp(InfoIE, EWC11NHTInfo, sizeof(EWC11NHTInfo)))
{
RTLLIB_DEBUG(RTLLIB_DL_HT, "EWC IE in %s()\n", __func__);
pHTInfoEle = (PHT_INFORMATION_ELE)(&InfoIE[4]);
pHTInfoEle = (struct ht_info_ele *)(&InfoIE[4]);
}else
pHTInfoEle = (PHT_INFORMATION_ELE)(&InfoIE[0]);
pHTInfoEle = (struct ht_info_ele *)(&InfoIE[0]);


RTLLIB_DEBUG(RTLLIB_DL_HT, "<Log HT Information Element>. Called by %s\n", TitleString);
Expand Down Expand Up @@ -676,7 +676,7 @@ void HTConstructCapabilityElement(struct rtllib_device* ieee, u8* posHTCap, u8*
void HTConstructInfoElement(struct rtllib_device* ieee, u8* posHTInfo, u8* len, u8 IsEncrypt)
{
struct rt_hi_throughput *pHT = ieee->pHTInfo;
PHT_INFORMATION_ELE pHTInfoEle = (PHT_INFORMATION_ELE)posHTInfo;
struct ht_info_ele *pHTInfoEle = (struct ht_info_ele *)posHTInfo;
if ((posHTInfo == NULL) || (pHTInfoEle == NULL))
{
RTLLIB_DEBUG(RTLLIB_DL_ERR, "posHTInfo or pHTInfoEle can't be null in HTConstructInfoElement()\n");
Expand Down Expand Up @@ -836,7 +836,7 @@ void HTOnAssocRsp(struct rtllib_device *ieee)
{
struct rt_hi_throughput *pHTInfo = ieee->pHTInfo;
PHT_CAPABILITY_ELE pPeerHTCap = NULL;
PHT_INFORMATION_ELE pPeerHTInfo = NULL;
struct ht_info_ele *pPeerHTInfo = NULL;
u16 nMaxAMSDUSize = 0;
u8* pMcsFilter = NULL;

Expand All @@ -856,9 +856,9 @@ void HTOnAssocRsp(struct rtllib_device *ieee)
pPeerHTCap = (PHT_CAPABILITY_ELE)(pHTInfo->PeerHTCapBuf);

if (!memcmp(pHTInfo->PeerHTInfoBuf, EWC11NHTInfo, sizeof(EWC11NHTInfo)))
pPeerHTInfo = (PHT_INFORMATION_ELE)(&pHTInfo->PeerHTInfoBuf[4]);
pPeerHTInfo = (struct ht_info_ele *)(&pHTInfo->PeerHTInfoBuf[4]);
else
pPeerHTInfo = (PHT_INFORMATION_ELE)(pHTInfo->PeerHTInfoBuf);
pPeerHTInfo = (struct ht_info_ele *)(pHTInfo->PeerHTInfoBuf);

RTLLIB_DEBUG_DATA(RTLLIB_DL_DATA|RTLLIB_DL_HT, pPeerHTCap, sizeof(HT_CAPABILITY_ELE));
HTSetConnectBwMode(ieee, (HT_CHANNEL_WIDTH)(pPeerHTCap->ChlWidth), (HT_EXTCHNL_OFFSET)(pPeerHTInfo->ExtChlOffset));
Expand Down Expand Up @@ -1078,7 +1078,7 @@ void HTResetSelfAndSavePeerSetting(struct rtllib_device* ieee, struct rtllib_net
void HTUpdateSelfAndPeerSetting(struct rtllib_device* ieee, struct rtllib_network * pNetwork)
{
struct rt_hi_throughput *pHTInfo = ieee->pHTInfo;
PHT_INFORMATION_ELE pPeerHTInfo = (PHT_INFORMATION_ELE)pNetwork->bssht.bdHTInfoBuf;
struct ht_info_ele *pPeerHTInfo = (struct ht_info_ele *)pNetwork->bssht.bdHTInfoBuf;

if (pHTInfo->bCurrentHTSupport)
{
Expand Down

0 comments on commit 316a24e

Please sign in to comment.