Skip to content
Snippets Groups Projects
Commit e02bc940 authored by Srinivas Girigowda's avatar Srinivas Girigowda Committed by Ecco Park
Browse files

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: I4066139487ed56d4bccf46c03f9113505d9e8927
Signed-off-by: default avatarSrinivas Girigowda <sgirigow@codeaurora.org>
parent 1b650d4a
Branches
Tags
No related merge requests found
...@@ -607,9 +607,9 @@ limEncryptAuthFrame(tpAniSirGlobal pMac, tANI_U8 keyId, tANI_U8 *pKey, tANI_U8 * ...@@ -607,9 +607,9 @@ limEncryptAuthFrame(tpAniSirGlobal pMac, tANI_U8 keyId, tANI_U8 *pKey, tANI_U8 *
vos_mem_copy((tANI_U8 *) &seed[3], pKey, keyLength - 3); vos_mem_copy((tANI_U8 *) &seed[3], pKey, keyLength - 3);
// Compute CRC-32 and place them in last 4 bytes of plain text // Compute CRC-32 and place them in last 4 bytes of plain text
limComputeCrc32(icv, pPlainText, sizeof(tSirMacAuthFrameBody)); limComputeCrc32(icv, pPlainText, framelen);
vos_mem_copy( pPlainText + sizeof(tSirMacAuthFrameBody), vos_mem_copy( pPlainText + framelen,
icv, SIR_MAC_WEP_ICV_LENGTH); icv, SIR_MAC_WEP_ICV_LENGTH);
// Run RC4 on plain text with the seed // Run RC4 on plain text with the seed
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment