staging: vt6656: 64 bit fixes pdwIV is now u32
authorMalcolm Priestley <tvboxspy@gmail.com>
Sun, 11 Nov 2012 15:53:14 +0000 (15:53 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 13 Nov 2012 20:51:31 +0000 (12:51 -0800)
Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vt6656/rxtx.c

index cd9debc2078674c02d7cd0f27f851ec8d8cba32d..83c04e120935f5a6c6fa7488ccabc75a58417cfc 100644 (file)
@@ -355,7 +355,7 @@ s_vFillTxKey (
         }
         // Append IV after Mac Header
         *pdwIV &= WEP_IV_MASK;//00000000 11111111 11111111 11111111
-        *pdwIV |= (unsigned long)pDevice->byKeyIndex << 30;
+       *pdwIV |= (u32)pDevice->byKeyIndex << 30;
         *pdwIV = cpu_to_le32(*pdwIV);
         pDevice->dwIVCounter++;
         if (pDevice->dwIVCounter > WEP_IV_MASK) {