Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 205595
b: refs/heads/master
c: 2989e96
h: refs/heads/master
i:
  205593: 92e95c9
  205591: 7aa563b
v: v3
  • Loading branch information
Charles Clément authored and Greg Kroah-Hartman committed Jun 18, 2010
1 parent bf4426e commit 216ed68
Show file tree
Hide file tree
Showing 58 changed files with 504 additions and 504 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: b2e876b6089160e5ecaed859eb1b87cd4913793e
refs/heads/master: 2989e96f17f2dcbd73aee37856899c2885df0686
4 changes: 2 additions & 2 deletions trunk/drivers/staging/vt6655/80211hdr.h
Original file line number Diff line number Diff line change
Expand Up @@ -282,8 +282,8 @@
#define WLAN_MGMT_GET_TIM_OFFSET(b) (((b) & ~BIT0) >> 1)

/* 3-Addr & 4-Addr */
#define WLAN_HDR_A3_DATA_PTR(p) (((PBYTE)(p)) + WLAN_HDR_ADDR3_LEN)
#define WLAN_HDR_A4_DATA_PTR(p) (((PBYTE)(p)) + WLAN_HDR_ADDR4_LEN)
#define WLAN_HDR_A3_DATA_PTR(p) (((unsigned char *)(p)) + WLAN_HDR_ADDR3_LEN)
#define WLAN_HDR_A4_DATA_PTR(p) (((unsigned char *)(p)) + WLAN_HDR_ADDR4_LEN)

/* IEEE ADDR */
#define IEEE_ADDR_UNIVERSAL 0x02
Expand Down
34 changes: 18 additions & 16 deletions trunk/drivers/staging/vt6655/80211mgr.c
Original file line number Diff line number Diff line change
Expand Up @@ -139,9 +139,9 @@ vMgrDecodeBeacon(
+ WLAN_BEACON_OFF_CAPINFO);

// Information elements
pItem = (PWLAN_IE)((PBYTE)(WLAN_HDR_A3_DATA_PTR(&(pFrame->pHdr->sA3)))
pItem = (PWLAN_IE)((unsigned char *)(WLAN_HDR_A3_DATA_PTR(&(pFrame->pHdr->sA3)))
+ WLAN_BEACON_OFF_SSID);
while( ((PBYTE)pItem) < (pFrame->pBuf + pFrame->len) ){
while( ((unsigned char *)pItem) < (pFrame->pBuf + pFrame->len) ){

switch (pItem->byElementID) {
case WLAN_EID_SSID:
Expand Down Expand Up @@ -223,7 +223,7 @@ vMgrDecodeBeacon(
break;

}
pItem = (PWLAN_IE)(((PBYTE)pItem) + 2 + pItem->len);
pItem = (PWLAN_IE)(((unsigned char *)pItem) + 2 + pItem->len);
}

return;
Expand Down Expand Up @@ -386,7 +386,7 @@ vMgrDecodeAssocRequest(
pItem = (PWLAN_IE)(WLAN_HDR_A3_DATA_PTR(&(pFrame->pHdr->sA3))
+ WLAN_ASSOCREQ_OFF_SSID);

while (((PBYTE)pItem) < (pFrame->pBuf + pFrame->len)) {
while (((unsigned char *)pItem) < (pFrame->pBuf + pFrame->len)) {
switch (pItem->byElementID){
case WLAN_EID_SSID:
if (pFrame->pSSID == NULL)
Expand Down Expand Up @@ -418,7 +418,7 @@ vMgrDecodeAssocRequest(
pItem->byElementID);
break;
}
pItem = (PWLAN_IE)(((PBYTE)pItem) + 2 + pItem->len);
pItem = (PWLAN_IE)(((unsigned char *)pItem) + 2 + pItem->len);
}
return;
}
Expand Down Expand Up @@ -488,9 +488,10 @@ vMgrDecodeAssocResponse(
+ WLAN_ASSOCRESP_OFF_SUPP_RATES);

pItem = (PWLAN_IE)(pFrame->pSuppRates);
pItem = (PWLAN_IE)(((PBYTE)pItem) + 2 + pItem->len);
pItem = (PWLAN_IE)(((unsigned char *)pItem) + 2 + pItem->len);

if ((((PBYTE)pItem) < (pFrame->pBuf + pFrame->len)) && (pItem->byElementID == WLAN_EID_EXTSUPP_RATES)) {
if ((((unsigned char *)pItem) < (pFrame->pBuf + pFrame->len)) &&
(pItem->byElementID == WLAN_EID_EXTSUPP_RATES)) {
pFrame->pExtSuppRates = (PWLAN_IE_SUPP_RATES)pItem;
DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "pFrame->pExtSuppRates=[%p].\n", pItem);
}
Expand Down Expand Up @@ -564,7 +565,7 @@ vMgrDecodeReassocRequest(
pItem = (PWLAN_IE)(WLAN_HDR_A3_DATA_PTR(&(pFrame->pHdr->sA3))
+ WLAN_REASSOCREQ_OFF_SSID);

while(((PBYTE)pItem) < (pFrame->pBuf + pFrame->len)) {
while(((unsigned char *)pItem) < (pFrame->pBuf + pFrame->len)) {

switch (pItem->byElementID){
case WLAN_EID_SSID:
Expand Down Expand Up @@ -597,7 +598,7 @@ vMgrDecodeReassocRequest(
pItem->byElementID);
break;
}
pItem = (PWLAN_IE)(((PBYTE)pItem) + 2 + pItem->len);
pItem = (PWLAN_IE)(((unsigned char *)pItem) + 2 + pItem->len);
}
return;
}
Expand Down Expand Up @@ -649,7 +650,7 @@ vMgrDecodeProbeRequest(
// Information elements
pItem = (PWLAN_IE)(WLAN_HDR_A3_DATA_PTR(&(pFrame->pHdr->sA3)));

while( ((PBYTE)pItem) < (pFrame->pBuf + pFrame->len) ) {
while( ((unsigned char *)pItem) < (pFrame->pBuf + pFrame->len) ) {

switch (pItem->byElementID) {
case WLAN_EID_SSID:
Expand All @@ -672,7 +673,7 @@ vMgrDecodeProbeRequest(
break;
}

pItem = (PWLAN_IE)(((PBYTE)pItem) + 2 + pItem->len);
pItem = (PWLAN_IE)(((unsigned char *)pItem) + 2 + pItem->len);
}
return;
}
Expand Down Expand Up @@ -746,7 +747,7 @@ vMgrDecodeProbeResponse(
pItem = (PWLAN_IE)(WLAN_HDR_A3_DATA_PTR(&(pFrame->pHdr->sA3))
+ WLAN_PROBERESP_OFF_SSID);

while( ((PBYTE)pItem) < (pFrame->pBuf + pFrame->len) ) {
while( ((unsigned char *)pItem) < (pFrame->pBuf + pFrame->len) ) {
switch (pItem->byElementID) {
case WLAN_EID_SSID:
if (pFrame->pSSID == NULL)
Expand Down Expand Up @@ -821,7 +822,7 @@ vMgrDecodeProbeResponse(
break;
}

pItem = (PWLAN_IE)(((PBYTE)pItem) + 2 + pItem->len);
pItem = (PWLAN_IE)(((unsigned char *)pItem) + 2 + pItem->len);
}
return;
}
Expand Down Expand Up @@ -890,7 +891,7 @@ vMgrDecodeAuthen(
pItem = (PWLAN_IE)(WLAN_HDR_A3_DATA_PTR(&(pFrame->pHdr->sA3))
+ WLAN_AUTHEN_OFF_CHALLENGE);

if ((((PBYTE)pItem) < (pFrame->pBuf + pFrame->len)) && (pItem->byElementID == WLAN_EID_CHALLENGE)) {
if ((((unsigned char *)pItem) < (pFrame->pBuf + pFrame->len)) && (pItem->byElementID == WLAN_EID_CHALLENGE)) {
pFrame->pChallenge = (PWLAN_IE_CHALLENGE)pItem;
}

Expand Down Expand Up @@ -1017,9 +1018,10 @@ vMgrDecodeReassocResponse(
+ WLAN_REASSOCRESP_OFF_SUPP_RATES);

pItem = (PWLAN_IE)(pFrame->pSuppRates);
pItem = (PWLAN_IE)(((PBYTE)pItem) + 2 + pItem->len);
pItem = (PWLAN_IE)(((unsigned char *)pItem) + 2 + pItem->len);

if ((((PBYTE)pItem) < (pFrame->pBuf + pFrame->len)) && (pItem->byElementID == WLAN_EID_EXTSUPP_RATES)) {
if ((((unsigned char *)pItem) < (pFrame->pBuf + pFrame->len)) &&
(pItem->byElementID == WLAN_EID_EXTSUPP_RATES)) {
pFrame->pExtSuppRates = (PWLAN_IE_SUPP_RATES)pItem;
}
return;
Expand Down
24 changes: 12 additions & 12 deletions trunk/drivers/staging/vt6655/80211mgr.h
Original file line number Diff line number Diff line change
Expand Up @@ -497,7 +497,7 @@ typedef struct tagWLAN_FR_MGMT {

unsigned int uType;
unsigned int len;
PBYTE pBuf;
unsigned char *pBuf;
PUWLAN_80211HDR pHdr;

} WLAN_FR_MGMT, *PWLAN_FR_MGMT;
Expand All @@ -507,7 +507,7 @@ typedef struct tagWLAN_FR_BEACON {

unsigned int uType;
unsigned int len;
PBYTE pBuf;
unsigned char *pBuf;
PUWLAN_80211HDR pHdr;
// fixed fields
PQWORD pqwTimestamp;
Expand Down Expand Up @@ -539,7 +539,7 @@ typedef struct tagWLAN_FR_IBSSATIM {

unsigned int uType;
unsigned int len;
PBYTE pBuf;
unsigned char *pBuf;
PUWLAN_80211HDR pHdr;

// fixed fields
Expand All @@ -553,7 +553,7 @@ typedef struct tagWLAN_FR_DISASSOC {

unsigned int uType;
unsigned int len;
PBYTE pBuf;
unsigned char *pBuf;
PUWLAN_80211HDR pHdr;
/*-- fixed fields -----------*/
PWORD pwReason;
Expand All @@ -566,7 +566,7 @@ typedef struct tagWLAN_FR_ASSOCREQ {

unsigned int uType;
unsigned int len;
PBYTE pBuf;
unsigned char *pBuf;
PUWLAN_80211HDR pHdr;
/*-- fixed fields -----------*/
PWORD pwCapInfo;
Expand All @@ -587,7 +587,7 @@ typedef struct tagWLAN_FR_ASSOCRESP {

unsigned int uType;
unsigned int len;
PBYTE pBuf;
unsigned char *pBuf;
PUWLAN_80211HDR pHdr;
/*-- fixed fields -----------*/
PWORD pwCapInfo;
Expand All @@ -604,7 +604,7 @@ typedef struct tagWLAN_FR_REASSOCREQ {

unsigned int uType;
unsigned int len;
PBYTE pBuf;
unsigned char *pBuf;
PUWLAN_80211HDR pHdr;

/*-- fixed fields -----------*/
Expand All @@ -626,7 +626,7 @@ typedef struct tagWLAN_FR_REASSOCRESP {

unsigned int uType;
unsigned int len;
PBYTE pBuf;
unsigned char *pBuf;
PUWLAN_80211HDR pHdr;
/*-- fixed fields -----------*/
PWORD pwCapInfo;
Expand All @@ -643,7 +643,7 @@ typedef struct tagWLAN_FR_PROBEREQ {

unsigned int uType;
unsigned int len;
PBYTE pBuf;
unsigned char *pBuf;
PUWLAN_80211HDR pHdr;
/*-- fixed fields -----------*/
/*-- info elements ----------*/
Expand All @@ -658,7 +658,7 @@ typedef struct tagWLAN_FR_PROBERESP {

unsigned int uType;
unsigned int len;
PBYTE pBuf;
unsigned char *pBuf;
PUWLAN_80211HDR pHdr;
/*-- fixed fields -----------*/
PQWORD pqwTimestamp;
Expand Down Expand Up @@ -687,7 +687,7 @@ typedef struct tagWLAN_FR_AUTHEN {

unsigned int uType;
unsigned int len;
PBYTE pBuf;
unsigned char *pBuf;
PUWLAN_80211HDR pHdr;
/*-- fixed fields -----------*/
PWORD pwAuthAlgorithm;
Expand All @@ -703,7 +703,7 @@ typedef struct tagWLAN_FR_DEAUTHEN {

unsigned int uType;
unsigned int len;
PBYTE pBuf;
unsigned char *pBuf;
PUWLAN_80211HDR pHdr;
/*-- fixed fields -----------*/
PWORD pwReason;
Expand Down
6 changes: 3 additions & 3 deletions trunk/drivers/staging/vt6655/IEEE11h.c
Original file line number Diff line number Diff line change
Expand Up @@ -125,9 +125,9 @@ static BOOL s_bRxTPCReq(PSMgmtObject pMgmt, PWLAN_FRAME_TPCREQ pTPCReq, BYTE byR

pTxPacket = (PSTxMgmtPacket)pMgmt->pbyMgmtPacketPool;
memset(pTxPacket, 0, sizeof(STxMgmtPacket) + WLAN_A3FR_MAXLEN);
pTxPacket->p80211Header = (PUWLAN_80211HDR)((PBYTE)pTxPacket + sizeof(STxMgmtPacket));
pTxPacket->p80211Header = (PUWLAN_80211HDR)((unsigned char *)pTxPacket + sizeof(STxMgmtPacket));

pFrame = (PWLAN_FRAME_TPCREP)((PBYTE)pTxPacket + sizeof(STxMgmtPacket));
pFrame = (PWLAN_FRAME_TPCREP)((unsigned char *)pTxPacket + sizeof(STxMgmtPacket));

pFrame->Header.wFrameCtl = ( WLAN_SET_FC_FTYPE(WLAN_FTYPE_MGMT) |
WLAN_SET_FC_FSTYPE(WLAN_FSTYPE_ACTION)
Expand Down Expand Up @@ -276,7 +276,7 @@ BOOL IEEE11hbMSRRepTx (

pTxPacket = (PSTxMgmtPacket)pMgmt->abyCurrentMSRRep;
memset(pTxPacket, 0, sizeof(STxMgmtPacket) + WLAN_A3FR_MAXLEN);
pTxPacket->p80211Header = (PUWLAN_80211HDR)((PBYTE)pTxPacket + sizeof(STxMgmtPacket));
pTxPacket->p80211Header = (PUWLAN_80211HDR)((unsigned char *)pTxPacket + sizeof(STxMgmtPacket));


pMSRRep->Header.wFrameCtl = ( WLAN_SET_FC_FTYPE(WLAN_FTYPE_MGMT) |
Expand Down
6 changes: 3 additions & 3 deletions trunk/drivers/staging/vt6655/aes_ccmp.c
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ BYTE abyRoundKey[16];
* Return Value: MIC compare result
*
*/
BOOL AESbGenCCMP(PBYTE pbyRxKey, PBYTE pbyFrame, WORD wFrameSize)
BOOL AESbGenCCMP(unsigned char *pbyRxKey, unsigned char *pbyFrame, WORD wFrameSize)
{
BYTE abyNonce[13];
BYTE MIC_IV[16];
Expand All @@ -256,8 +256,8 @@ BYTE abyPlainText[16];
BYTE abyLastCipher[16];

PS802_11Header pMACHeader = (PS802_11Header) pbyFrame;
PBYTE pbyIV;
PBYTE pbyPayload;
unsigned char *pbyIV;
unsigned char *pbyPayload;
WORD wHLen = 22;
WORD wPayloadSize = wFrameSize - 8 - 8 - 4 - WLAN_HDR_ADDR3_LEN;//8 is IV, 8 is MIC, 4 is CRC
BOOL bA4 = FALSE;
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/staging/vt6655/aes_ccmp.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,6 @@
/*--------------------- Export Variables --------------------------*/

/*--------------------- Export Functions --------------------------*/
BOOL AESbGenCCMP(PBYTE pbyRxKey, PBYTE pbyFrame, WORD wFrameSize);
BOOL AESbGenCCMP(unsigned char *pbyRxKey, unsigned char *pbyFrame, WORD wFrameSize);

#endif //__AES_H__
8 changes: 4 additions & 4 deletions trunk/drivers/staging/vt6655/baseband.c
Original file line number Diff line number Diff line change
Expand Up @@ -1850,8 +1850,8 @@ BBvCaculateParameter (
WORD wRate,
BYTE byPacketType,
PWORD pwPhyLen,
PBYTE pbyPhySrv,
PBYTE pbyPhySgn
unsigned char *pbyPhySrv,
unsigned char *pbyPhySgn
)
{
unsigned int cbBitCount;
Expand Down Expand Up @@ -2015,7 +2015,7 @@ BBvCaculateParameter (
* Return Value: TRUE if succeeded; FALSE if failed.
*
*/
BOOL BBbReadEmbeded (DWORD_PTR dwIoBase, BYTE byBBAddr, PBYTE pbyData)
BOOL BBbReadEmbeded (DWORD_PTR dwIoBase, BYTE byBBAddr, unsigned char *pbyData)
{
WORD ww;
BYTE byValue;
Expand Down Expand Up @@ -2321,7 +2321,7 @@ BOOL BBbVT3253Init (PSDevice pDevice)
* Return Value: none
*
*/
void BBvReadAllRegs (DWORD_PTR dwIoBase, PBYTE pbyBBRegs)
void BBvReadAllRegs (DWORD_PTR dwIoBase, unsigned char *pbyBBRegs)
{
int ii;
BYTE byBase = 1;
Expand Down
8 changes: 4 additions & 4 deletions trunk/drivers/staging/vt6655/baseband.h
Original file line number Diff line number Diff line change
Expand Up @@ -133,14 +133,14 @@ BBvCaculateParameter (
WORD wRate,
BYTE byPacketType,
PWORD pwPhyLen,
PBYTE pbyPhySrv,
PBYTE pbyPhySgn
unsigned char *pbyPhySrv,
unsigned char *pbyPhySgn
);

BOOL BBbReadEmbeded(DWORD_PTR dwIoBase, BYTE byBBAddr, PBYTE pbyData);
BOOL BBbReadEmbeded(DWORD_PTR dwIoBase, BYTE byBBAddr, unsigned char *pbyData);
BOOL BBbWriteEmbeded(DWORD_PTR dwIoBase, BYTE byBBAddr, BYTE byData);

void BBvReadAllRegs(DWORD_PTR dwIoBase, PBYTE pbyBBRegs);
void BBvReadAllRegs(DWORD_PTR dwIoBase, unsigned char *pbyBBRegs);
void BBvLoopbackOn(PSDevice pDevice);
void BBvLoopbackOff(PSDevice pDevice);
void BBvSetShortSlotTime(PSDevice pDevice);
Expand Down
Loading

0 comments on commit 216ed68

Please sign in to comment.