From patchwork Tue Oct 24 08:52:23 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: yintang@qti.qualcomm.com X-Patchwork-Id: 10023793 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 75A4C60381 for ; Tue, 24 Oct 2017 09:01:44 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6624B289C0 for ; Tue, 24 Oct 2017 09:01:44 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5A810289C2; Tue, 24 Oct 2017 09:01:44 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id E1D6E289C0 for ; Tue, 24 Oct 2017 09:01:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=MxUTpIGna6zbVfKjQcIML1lJ6bKG5QRl5fesOMfoE/Y=; b=dRsjx73WhMaTTs uoMec5iR2ItlIW0unzelYs7HraKA2I1my6JBF3kqFHetIO+7Qg0s0jJw195QhyOmefF3wDz1rR4gz Cp5uJkpzZFb6hI4/IoBH79C61Rid41DO98AFmLhbxn9bSo7SAk1tIVa2GZaVO9b9vRdjRvZMGo3v2 +msXhZauv3Wg06WJjiixAgkxws2n6iiG/BGNH/qGs2edF2RGj3hMszG+DgxhytomaAcHYbwVqqDkX sKfqODNuC/HNrHkhalT4LpZByftm3pyKXaz4gl3tjP1KNL2gN9p+ntjukjkSauANQgynOLFdMiKEu DXbGm3YTNjZQ7veI3nYg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1e6v5e-0002CA-V7; Tue, 24 Oct 2017 09:01:38 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1e6v5d-0001wI-3r for ath10k@bombadil.infradead.org; Tue, 24 Oct 2017 09:01:37 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Type:MIME-Version:References: In-Reply-To:Message-ID:Date:Subject:CC:To:From:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=7111CpMFi9Ftl/tO5/huB0Vg78Xs9zsfu/77ZKhufug=; b=tsa/Zop2IEL92/aqBDKsL909f Op40sDxk6riYDWWnC1t7RG+F0FEygX4+bQ2bE2PO8/YRtZixjEHXrIEAL3Ii8nz50bkU7AbmX4C+F b+fr2IqO/9ousCuJI9tZys/BdehFcoJqZjmf6Sttb0Ucht4wipbmLt6zQ/bw9T8U3dexVZ6vVyTVn px0u3V0qO6w0Dy2MHi5R/CFrOmzcoii9iXSA6uiINi+fgem8JCwJgwXMnjt0KN9ZpsqFvBhekh50G 0v1NLk+f6zkfYCl0D0554tlPvTkqHYoceFryamnAPp4OWwxwVn11kZ7S6IFtvYG8BjydV04fZZf0t Jfkfq3usQ==; Received: from alexa-out.qualcomm.com ([129.46.98.28]) by casper.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1e6uur-0001fO-2B for ath10k@lists.infradead.org; Tue, 24 Oct 2017 08:50:30 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=qti.qualcomm.com; i=@qti.qualcomm.com; q=dns/txt; s=qcdkim; t=1508835029; x=1540371029; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version; bh=Bqi56Q+fHcUs6lzdv1oPx2dGuVOjW4RSO35QmugZpK0=; b=RBih6B5BMulC1l/686m5AcGP9x97o0P6dzurLpViUICXDwcWun27/3YS pyHWjrwQPVTN5ZpJjetIGqw96C9J9RmXieCAbIb4D3XxWA4u/D2zhwA2m oxwf4i29tpSWrAIeyJBwdzvch0sKivN3KhPFkn5DHAzoCTyBkeh4FnBWL U=; Received: from ironmsg02-l-new.qualcomm.com (HELO ironmsg02-L.qualcomm.com) ([10.53.140.109]) by alexa-out.qualcomm.com with ESMTP; 24 Oct 2017 01:50:07 -0700 X-IronPort-AV: E=McAfee;i="5900,7806,8693"; a="1022785318" X-MGA-submission: =?us-ascii?q?MDELRhbaC8U8i8sr+U33BpDqpdpJVtbVrS/M60?= =?us-ascii?q?NIrmFZQRFRu5dgphXHpgwcA0Jk2x8/1iAegJSqvKmw0TxF2+bctsrzQs?= =?us-ascii?q?ZAjdQ/psMcZgAc3NiGSnfwhSvH181QrrAs6yJFO4FfFLJazWmOZ3fsxF?= =?us-ascii?q?YX?= Received: from nasanexm03f.na.qualcomm.com ([10.85.0.47]) by ironmsg02-L.qualcomm.com with ESMTP/TLS/AES256-SHA; 24 Oct 2017 01:50:07 -0700 Received: from aptaiexm02b.ap.qualcomm.com (10.249.150.12) by nasanexm03f.na.qualcomm.com (10.85.0.47) with Microsoft SMTP Server (TLS) id 15.0.1293.2; Tue, 24 Oct 2017 01:50:06 -0700 Received: from yintang-HP-EliteBook-1.qca.qualcomm.com (10.80.80.8) by aptaiexm02b.ap.qualcomm.com (10.249.150.12) with Microsoft SMTP Server (TLS) id 15.0.1293.2; Tue, 24 Oct 2017 16:50:01 +0800 From: To: Subject: [PATCH v7 5/5] ath10k: Fix TDLS peer TX data failure issue on encryped AP Date: Tue, 24 Oct 2017 16:52:23 +0800 Message-ID: <1508835143-3426-1-git-send-email-yintang@qti.qualcomm.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: References: MIME-Version: 1.0 X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: NASANEXM01G.na.qualcomm.com (10.85.0.33) To aptaiexm02b.ap.qualcomm.com (10.249.150.12) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20171024_095029_429563_D25352FD X-CRM114-Status: UNSURE ( 7.49 ) X-CRM114-Notice: Please train this message. X-BeenThere: ath10k@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-wireless@vger.kernel.org Sender: "ath10k" Errors-To: ath10k-bounces+patchwork-ath10k=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP From: Yingying Tang For WPA encryption, QCA6174 firmware(version: WLAN.RM.4.4) will unblock data when M4 was sent successfully. For other encryption which didn't need 4-way handshake firmware will unblock the data when peer authorized. Since TDLS is 3-way handshake host need send authorize cmd to firmware to unblock data. Signed-off-by: Yingying Tang --- drivers/net/wireless/ath/ath10k/mac.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/net/wireless/ath/ath10k/mac.c b/drivers/net/wireless/ath/ath10k/mac.c index a984a72..fe14d3c 100644 --- a/drivers/net/wireless/ath/ath10k/mac.c +++ b/drivers/net/wireless/ath/ath10k/mac.c @@ -5841,6 +5841,10 @@ static int ath10k_set_key(struct ieee80211_hw *hw, enum set_key_cmd cmd, ath10k_warn(ar, "Peer %pM disappeared!\n", peer_addr); spin_unlock_bh(&ar->data_lock); + if (sta && sta->tdls) + ath10k_wmi_peer_set_param(ar, arvif->vdev_id, sta->addr, + WMI_PEER_AUTHORIZE, 1); + exit: mutex_unlock(&ar->conf_mutex); return ret;