staging: vt6656: 64 bit- Correctly address void structure.
authorMalcolm Priestley <tvboxspy@gmail.com>
Sun, 11 Nov 2012 15:20:52 +0000 (15:20 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 13 Nov 2012 20:51:30 +0000 (12:51 -0800)
Fixes 64 bit deadlock on successful association.

Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vt6656/rxtx.c

index 0f35a9ae3fc0e99624ccf887826d780fdccaf41e..1f87213e77e06254c15dfe4f8cce47267a1b713a 100644 (file)
@@ -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));