Skip to content

Commit

Permalink
staging: vt6656: 64 bit- Correctly address void structure.
Browse files Browse the repository at this point in the history
Fixes 64 bit deadlock on successful association.

Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Malcolm Priestley authored and Greg Kroah-Hartman committed Nov 13, 2012
1 parent 0421226 commit e2efba7
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions drivers/staging/vt6656/rxtx.c
Original file line number Diff line number Diff line change
Expand Up @@ -1452,12 +1452,10 @@ s_bPacketToWirelessUsb(


pvRrvTime = pMICHDR = pvRTS = pvCTS = pvTxDataHd = NULL;
if ((bNeedEncryption) && (pTransmitKey != NULL)) {
if (((PSKeyTable) (pTransmitKey->pvKeyTable))->bSoftWEP == TRUE) {
// WEP 256
bSoftWEP = TRUE;
}
}
if (bNeedEncryption && pTransmitKey->pvKeyTable) {
if (((PSKeyTable)&pTransmitKey->pvKeyTable)->bSoftWEP == TRUE)
bSoftWEP = TRUE; /* WEP 256 */
}

pTxBufHead = (PTX_BUFFER) usbPacketBuf;
memset(pTxBufHead, 0, sizeof(TX_BUFFER));
Expand Down

0 comments on commit e2efba7

Please sign in to comment.