diff options
| author | Yeshwanth Sriram Guntuka <ysriramg@codeaurora.org> | 2018-06-25 14:29:14 +0530 |
|---|---|---|
| committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2018-08-14 01:31:02 -0700 |
| commit | c7a2bf9dc29e9cdc151a72630846b2f2d06a6d06 (patch) | |
| tree | 584ae6c4419052c8c8dfcc03d27291fecabe8761 | |
| parent | 6eb965e48a5ad4f4373eec54dc7da03d831ce86f (diff) | |
qcacld-2.0: Drop same seq num auth frame only if retry bit is set
AP configured in WEP open type is sending auth frame with
same sequence number. DUT sends auth frame, first with auth
algo as shared key and then as open system. Since, AP sends
auth frame with same sequence number, DUT drops the frame
which results in authentication failure.
Fix is to drop auth frame with same sequence number only
if retry bit is set.
Change-Id: I0ecc838b072d3b6b0a1dd639f1a24fce14ac70fb
CRs-Fixed: 2266848
| -rw-r--r-- | CORE/MAC/src/pe/lim/limProcessAuthFrame.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/CORE/MAC/src/pe/lim/limProcessAuthFrame.c b/CORE/MAC/src/pe/lim/limProcessAuthFrame.c index d938354d3986..ec6098909447 100644 --- a/CORE/MAC/src/pe/lim/limProcessAuthFrame.c +++ b/CORE/MAC/src/pe/lim/limProcessAuthFrame.c @@ -200,7 +200,14 @@ limProcessAuthFrame(tpAniSirGlobal pMac, tANI_U8 *pRxPacketInfo, tpPESession pse psessionEntry->limMlmState, MAC_ADDR_ARRAY(pHdr->bssId), (uint)abs((tANI_S8)WDA_GET_RX_RSSI_NORMALIZED(pRxPacketInfo))); - if (psessionEntry->prev_auth_seq_num == currSeqNum) { + /* + * IOT AP configured in WEP open type sends auth frame with + * same sequence number. DUT sends auth frame, first with auth + * algo as shared key and then as open system. Since, AP sends + * auth frame with same sequence number, DUT drops the second + * auth frame from AP which results in authentication failure. + */ + if (psessionEntry->prev_auth_seq_num == currSeqNum && pHdr->fc.retry) { limLog(pMac, LOGE, FL("auth frame, seq num: %d is already processed, drop it"), currSeqNum); |
