summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAbhinav Kumar <abhikuma@codeaurora.org>2018-02-22 16:21:05 +0530
committernshrivas <nshrivas@codeaurora.org>2018-03-05 05:05:13 -0800
commitf5ebee125cafb89a370b59419f5ad235f2b034f2 (patch)
tree9a5747d07d4327695f2de4e548dbd89eb2ab8229
parente4d885371c9b35001c42c41cfd2e2541a3c1a7a0 (diff)
qcacld-3.0: Prioritize connection req frames in pe queue
If multiple auth req comes, it added to the header of message queue but in between mc thread could be processing some beacon frame. while processing beacon, SAP gets assoc req and adds it to head of message queue and will be processed first instead of auth req. After sending of accoc rsp, mc thread will start to process queued auth req, which is at the top of message queue which will result in deauthentication. Reverts commit 360c5d590ec8 ("qcacld-3.0: Prioritize connection req frames in pe queue") Change-Id: Iaf511be1160e05cfcd9d60f18be4339587308089 CRs-Fixed: 2192836
-rw-r--r--core/mac/src/sys/legacy/src/system/src/sys_entry_func.c17
1 files changed, 3 insertions, 14 deletions
diff --git a/core/mac/src/sys/legacy/src/system/src/sys_entry_func.c b/core/mac/src/sys/legacy/src/system/src/sys_entry_func.c
index 1c87e3ac37c0..9f36260402c5 100644
--- a/core/mac/src/sys/legacy/src/system/src/sys_entry_func.c
+++ b/core/mac/src/sys/legacy/src/system/src/sys_entry_func.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012-2017 The Linux Foundation. All rights reserved.
+ * Copyright (c) 2012-2018 The Linux Foundation. All rights reserved.
*
* Previously licensed under the ISC license by Qualcomm Atheros, Inc.
*
@@ -166,19 +166,8 @@ sys_bbt_process_message_core(tpAniSirGlobal mac_ctx, tpSirMsgQ msg,
mac_ctx->sys.gSysFrameCount[type][subtype]);
}
- /*
- * Post the message to PE Queue. Prioritize the
- * Auth and assoc frames.
- */
- if ((subtype == SIR_MAC_MGMT_AUTH) ||
- (subtype == SIR_MAC_MGMT_ASSOC_RSP) ||
- (subtype == SIR_MAC_MGMT_REASSOC_RSP) ||
- (subtype == SIR_MAC_MGMT_ASSOC_REQ) ||
- (subtype == SIR_MAC_MGMT_REASSOC_REQ))
- ret = (tSirRetStatus)
- lim_post_msg_high_priority(mac_ctx, msg);
- else
- ret = (tSirRetStatus) lim_post_msg_api(mac_ctx, msg);
+ /* Post the message to PE Queue */
+ ret = (tSirRetStatus) lim_post_msg_api(mac_ctx, msg);
if (ret != eSIR_SUCCESS) {
pe_err("posting to LIM2 failed, ret %d\n", ret);
goto fail;