mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-25 22:23:14 -04:00
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
This commit is contained in:
parent
2cce8a8a36
commit
437c921a8f
1 changed files with 6 additions and 6 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue