summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKrunal Soni <ksoni@qca.qualcomm.com>2014-09-24 16:09:43 -0700
committerAnjaneeDevi Kapparapu <c_akappa@qti.qualcomm.com>2014-09-25 17:32:50 +0530
commitadbc4026aeb9c2f301813325d0f251afe4e915eb (patch)
treeddd676a04ca1c88cddfc844901a065629b1aaf82
parent2098ad1c9fef33fb589745e2c09a56fc9896f378 (diff)
qcacld:PMF:Fix to read correct the PN sequence from received SA query
When SAP or STA receives SA query response in PMF state, it reads the PN sequence from the packet in reverse order. This fix will read and interpret correct PN sequence from the packet. Change-Id: Ifcc4d95dd4ea78cff5be87a8de89e7e33d2b3919 CRs-Fixed: 729766
-rw-r--r--CORE/CLD_TXRX/TLSHIM/tl_shim.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/CORE/CLD_TXRX/TLSHIM/tl_shim.c b/CORE/CLD_TXRX/TLSHIM/tl_shim.c
index 157fc7d1956d..8eb01a096b2b 100644
--- a/CORE/CLD_TXRX/TLSHIM/tl_shim.c
+++ b/CORE/CLD_TXRX/TLSHIM/tl_shim.c
@@ -383,12 +383,12 @@ tl_shim_extract_ccmp_pn(u_int8_t *ccmp_ptr)
pn[5] = (u_int8_t)*(ccmp_ptr+7);
/* Form 6 byte PN with 6 individual bytes of PN */
- new_pn = ((uint64_t)pn[0] << 40) |
- ((uint64_t)pn[1] << 32) |
- ((uint64_t)pn[2] << 24) |
- ((uint64_t)pn[3] << 16) |
- ((uint64_t)pn[4] << 8) |
- ((uint64_t)pn[5] << 0);
+ new_pn = ((uint64_t)pn[5] << 40) |
+ ((uint64_t)pn[4] << 32) |
+ ((uint64_t)pn[3] << 24) |
+ ((uint64_t)pn[2] << 16) |
+ ((uint64_t)pn[1] << 8) |
+ ((uint64_t)pn[0] << 0);
TLSHIM_LOGD("PN of received packet is %llu", new_pn);
return new_pn;