diff options
Diffstat (limited to 'drivers/staging/vt6656/hostap.c')
-rw-r--r-- | drivers/staging/vt6656/hostap.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/staging/vt6656/hostap.c b/drivers/staging/vt6656/hostap.c index 0a73d4060ee..26a7d0e4b04 100644 --- a/drivers/staging/vt6656/hostap.c +++ b/drivers/staging/vt6656/hostap.c | |||
@@ -542,9 +542,9 @@ static int hostap_set_encryption(PSDevice pDevice, | |||
542 | 542 | ||
543 | if (param->u.crypt.seq) { | 543 | if (param->u.crypt.seq) { |
544 | memcpy(&abySeq, param->u.crypt.seq, 8); | 544 | memcpy(&abySeq, param->u.crypt.seq, 8); |
545 | for (ii = 0 ; ii < 8 ; ii++) { | 545 | for (ii = 0 ; ii < 8 ; ii++) |
546 | KeyRSC |= (abySeq[ii] << (ii * 8)); | 546 | KeyRSC |= (unsigned long)abySeq[ii] << (ii * 8); |
547 | } | 547 | |
548 | dwKeyIndex |= 1 << 29; | 548 | dwKeyIndex |= 1 << 29; |
549 | pMgmt->sNodeDBTable[iNodeIndex].KeyRSC = KeyRSC; | 549 | pMgmt->sNodeDBTable[iNodeIndex].KeyRSC = KeyRSC; |
550 | } | 550 | } |