Commit cf5d170e authored by Malcolm Priestley's avatar Malcolm Priestley Committed by Greg Kroah-Hartman

staging: vt6656: 64 bit fixes: RXbBulkInProcessData Framesize

Size of long issues.

Framesize correction replace DWORD with u32.
Signed-off-by: default avatarMalcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent d3b6f870
...@@ -332,7 +332,7 @@ RXbBulkInProcessData ( ...@@ -332,7 +332,7 @@ RXbBulkInProcessData (
PBYTE pbyFrame; PBYTE pbyFrame;
BOOL bDeFragRx = FALSE; BOOL bDeFragRx = FALSE;
unsigned int cbHeaderOffset; unsigned int cbHeaderOffset;
unsigned int FrameSize; u32 FrameSize;
WORD wEtherType = 0; WORD wEtherType = 0;
signed int iSANodeIndex = -1; signed int iSANodeIndex = -1;
signed int iDANodeIndex = -1; signed int iDANodeIndex = -1;
...@@ -351,7 +351,7 @@ RXbBulkInProcessData ( ...@@ -351,7 +351,7 @@ RXbBulkInProcessData (
/* signed long ldBm = 0; */ /* signed long ldBm = 0; */
BOOL bIsWEP = FALSE; BOOL bIsWEP = FALSE;
BOOL bExtIV = FALSE; BOOL bExtIV = FALSE;
DWORD dwWbkStatus; u32 dwWbkStatus;
PRCB pRCBIndicate = pRCB; PRCB pRCBIndicate = pRCB;
PBYTE pbyDAddress; PBYTE pbyDAddress;
PWORD pwPLCP_Length; PWORD pwPLCP_Length;
...@@ -366,13 +366,13 @@ RXbBulkInProcessData ( ...@@ -366,13 +366,13 @@ RXbBulkInProcessData (
skb = pRCB->skb; skb = pRCB->skb;
//[31:16]RcvByteCount ( not include 4-byte Status ) /* [31:16]RcvByteCount ( not include 4-byte Status ) */
dwWbkStatus = *( (PDWORD)(skb->data) ); dwWbkStatus = *((u32 *)(skb->data));
FrameSize = (unsigned int)(dwWbkStatus >> 16); FrameSize = dwWbkStatus >> 16;
FrameSize += 4; FrameSize += 4;
if (BytesToIndicate != FrameSize) { if (BytesToIndicate != FrameSize) {
DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO"---------- WRONG Length 1 \n"); DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO"------- WRONG Length 1\n");
return FALSE; return FALSE;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment