From 855607a147902d6296ef49514f6d45fd7b2ff13e Mon Sep 17 00:00:00 2001 From: "Masti, Narayanraddi" Date: Mon, 22 Aug 2016 11:52:15 +0530 Subject: [PATCH] qcacld-3.0: Fix to Wait for TDLS discovery request/response tx completion qcacld-2.0 to qcacld-3.0 propagation Currently, we are not waiting for tdls_mgmt_comp since supplicant doesn't consider return status but if discvery request/response are sent and mgmtTxCompletionStatus is not set to return status from FW then next consecutive TDLS request's from supplicant are denied which will lead to TDLS connection failure. Fix is to wait for tdls_mgmt_comp for TDLS discover request/response and then return success/failure status to supplicant. Change-Id: I5e825b615095231412f3a82367babaa89e1ab5b3 CRs-Fixed: 973947 --- core/hdd/src/wlan_hdd_tdls.c | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/core/hdd/src/wlan_hdd_tdls.c b/core/hdd/src/wlan_hdd_tdls.c index fce37186bf24..0ce39694c4f1 100644 --- a/core/hdd/src/wlan_hdd_tdls.c +++ b/core/hdd/src/wlan_hdd_tdls.c @@ -4032,17 +4032,6 @@ static int __wlan_hdd_cfg80211_tdls_mgmt(struct wiphy *wiphy, } mutex_unlock(&pHddCtx->tdls_lock); } - - - if ((SIR_MAC_TDLS_DIS_REQ == action_code) || - (SIR_MAC_TDLS_DIS_RSP == action_code)) { - /* for DIS_REQ/DIS_RSP, supplicant does not consider the return - * status. So no need to wait for tdls_mgmt_comp to - * send ack status. - */ - hdd_info("tx done for frm %u", action_code); - return 0; - } hdd_info("Wait for tdls_mgmt_comp. Timeout %u ms", WAIT_TIME_TDLS_MGMT);