mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
qcacld-2.0: Fix incorrect frame length of encrypted auth frame
STA is not able to connect to AP configured with WEP shared due to incorrect frame length of encrypted auth frame. Fix this by using the correct frame length. Bug: 67754642 Change-Id: Ida8d78b512ecf79314200a7c96f5b5c293e5474e Signed-off-by: Srinivas Girigowda <sgirigow@codeaurora.org>
This commit is contained in:
parent
b40d05a047
commit
87d7ec3737
1 changed files with 2 additions and 2 deletions
|
@ -571,9 +571,9 @@ limEncryptAuthFrame(tpAniSirGlobal pMac, tANI_U8 keyId, tANI_U8 *pKey, tANI_U8 *
|
|||
palCopyMemory( pMac->hHdd, (tANI_U8 *) &seed[3], pKey, keyLength - 3);
|
||||
|
||||
// Compute CRC-32 and place them in last 4 bytes of plain text
|
||||
limComputeCrc32(icv, pPlainText, sizeof(tSirMacAuthFrameBody));
|
||||
limComputeCrc32(icv, pPlainText, framelen);
|
||||
|
||||
palCopyMemory( pMac->hHdd, pPlainText + sizeof(tSirMacAuthFrameBody),
|
||||
palCopyMemory( pMac->hHdd, pPlainText + framelen,
|
||||
icv, SIR_MAC_WEP_ICV_LENGTH);
|
||||
|
||||
// Run RC4 on plain text with the seed
|
||||
|
|
Loading…
Reference in a new issue