From 437c921a8fb6a9cf0e0fb739b8b60daff6d414a8 Mon Sep 17 00:00:00 2001 From: Rajeev Kumar Date: Thu, 14 Apr 2016 15:26:59 -0700 Subject: [PATCH] qcacld-3.0: Try SHARED AUTH first when WEP algo is AUTOSWITCH qcacld-2.0 to qcacld-3.0 propagation When WEP algo is AUTOSWITCH, driver will try OPEN AUTH first, then SHARED AUTH. If AP accepts both OPEN and SHARED AUTH, driver never tries to connect to AP with SHARED AUTH, which makes user is not getting the notification (about wrong password). This change makes driver to try SHARED AUTH first, then OPEN AUTH when WEP algo is AUTOSWITCH. Change-Id: I21841f37d96316a261fd2977229390e751747c4c CRs-fixed: 947898 --- core/mac/src/pe/lim/lim_process_mlm_rsp_messages.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/core/mac/src/pe/lim/lim_process_mlm_rsp_messages.c b/core/mac/src/pe/lim/lim_process_mlm_rsp_messages.c index 82d39cb22dae..40d71e201940 100644 --- a/core/mac/src/pe/lim/lim_process_mlm_rsp_messages.c +++ b/core/mac/src/pe/lim/lim_process_mlm_rsp_messages.c @@ -622,15 +622,15 @@ void lim_process_mlm_auth_cnf(tpAniSirGlobal mac_ctx, uint32_t *msg) } if ((auth_type == eSIR_AUTO_SWITCH) && - (((tLimMlmAuthCnf *) msg)->authType == eSIR_OPEN_SYSTEM) + (((tLimMlmAuthCnf *) msg)->authType == eSIR_SHARED_KEY) && (eSIR_MAC_AUTH_ALGO_NOT_SUPPORTED_STATUS == ((tLimMlmAuthCnf *) msg)->protStatusCode)) { /* - * When Open authentication fails with reason + * When shared authentication fails with reason * code "13" and authType set to 'auto switch', - * Try with Shared Authentication + * Try with open Authentication */ - auth_mode = eSIR_SHARED_KEY; + auth_mode = eSIR_OPEN_SYSTEM; /* Trigger MAC based Authentication */ auth_req = qdf_mem_malloc(sizeof(tLimMlmAuthReq)); if (NULL == auth_req) { @@ -2408,9 +2408,9 @@ lim_process_sta_add_bss_rsp_pre_assoc(tpAniSirGlobal mac_ctx, lim_log(mac_ctx, LOGP, FL("could not retrieve AuthType")); } - /* Try Open Authentication first */ + /* Try shared Authentication first */ if (cfgAuthType == eSIR_AUTO_SWITCH) - authMode = eSIR_OPEN_SYSTEM; + authMode = eSIR_SHARED_KEY; else authMode = cfgAuthType;