summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSundar Subramaniyan <subrams@qti.qualcomm.com>2013-10-16 23:45:41 +0530
committerMadan Mohan Koyyalamudi <mkoyyala@qca.qualcomm.com>2013-10-23 20:06:53 -0700
commit114284b2c4912546838d8bbe97a2f8dda98de1dc (patch)
tree124cb2d556fe556d60d6f18e292bcf9a2805d1f1
parent6b6b5b0fc6d138ee7f38d909dd29a5a42114e661 (diff)
cld: Fix authentication timeout issue
When supplicant does set key operation, a check is done in the driver to ensure that upper layer authentication is completed to avoid race condition between set key and EAPOL packets in TL queue. There is a wait for completion timeout for 800ms for the EAPOL packets to be processed before set key is done. In the case of CLD, complete is not called and so there is an 800ms delay in performing set_key and as a result authentication times out when connecting to certain APs. For CLD this check is not required since there is no TL queue in the driver. So do not perform this check for CLD. Change-Id: I3866c381378fa4be06a8888e0396ed71a99c612a CRs-Fixed: 552243
-rw-r--r--CORE/HDD/src/wlan_hdd_cfg80211.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/CORE/HDD/src/wlan_hdd_cfg80211.c b/CORE/HDD/src/wlan_hdd_cfg80211.c
index 1c86dff9a5d7..0983312a1cba 100644
--- a/CORE/HDD/src/wlan_hdd_cfg80211.c
+++ b/CORE/HDD/src/wlan_hdd_cfg80211.c
@@ -3145,7 +3145,9 @@ static int wlan_hdd_cfg80211_add_key( struct wiphy *wiphy,
v_U32_t roamId= 0xFF;
v_CONTEXT_t pVosContext = (WLAN_HDD_GET_CTX(pAdapter))->pvosContext;
hdd_hostapd_state_t *pHostapdState;
+#ifndef QCA_WIFI_2_0
VOS_STATUS vos_status;
+#endif
eHalStatus halStatus;
ENTER();
@@ -3362,6 +3364,7 @@ static int wlan_hdd_cfg80211_add_key( struct wiphy *wiphy,
setKey.peerMac[4], setKey.peerMac[5],
setKey.keyDirection);
+#ifndef QCA_WIFI_2_0
vos_status = wlan_hdd_check_ula_done(pAdapter);
if ( vos_status != VOS_STATUS_SUCCESS )
@@ -3375,6 +3378,7 @@ static int wlan_hdd_cfg80211_add_key( struct wiphy *wiphy,
return -EINVAL;
}
+#endif
#ifdef WLAN_FEATURE_VOWIFI_11R
/* The supplicant may attempt to set the PTK once pre-authentication