From patchwork Tue Oct 10 08:02:31 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: 9995257 X-Patchwork-Delegate: johannes@sipsolutions.net 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 4A0D160230 for ; Tue, 10 Oct 2017 08:02:00 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3C29328112 for ; Tue, 10 Oct 2017 08:02:00 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 30D322811E; Tue, 10 Oct 2017 08:02:00 +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=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 90EC628112 for ; Tue, 10 Oct 2017 08:01:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755821AbdJJIB6 (ORCPT ); Tue, 10 Oct 2017 04:01:58 -0400 Received: from alexa-out.qualcomm.com ([129.46.98.28]:40936 "EHLO alexa-out.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755587AbdJJIB5 (ORCPT ); Tue, 10 Oct 2017 04:01:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=qti.qualcomm.com; i=@qti.qualcomm.com; q=dns/txt; s=qcdkim; t=1507622517; x=1539158517; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version; bh=eiXqU8bbx2d47P017ATpEELhqIFpL8bv/8T0ImO1qB0=; b=Iq0PepfyTMXxX3ijpz3GMGFE8WNc6Vjs1YTeTwSVnO/tORluwDu0nMdR TF1WFdtJ28vJ3Xr1Mlb3RCFnpzL2v4IkkK1c3r5JWSvAlTG9Km+0LSKCe IdyyZfTkVh5AeGfXLoIs32JxVDF7I7c65nd3rXpSzWTOllmvEucA+OZlI w=; X-IronPort-AV: E=Sophos;i="5.42,503,1500966000"; d="scan'208";a="6179358" Received: from ironmsg04-l-new.qualcomm.com (HELO Ironmsg04-L.qualcomm.com) ([10.53.140.111]) by alexa-out.qualcomm.com with ESMTP; 10 Oct 2017 01:00:57 -0700 X-IronPort-AV: E=McAfee;i="5900,7806,8679"; a="1439808417" X-MGA-submission: =?us-ascii?q?MDGNJLVYJqcI1mBHjf7u7UGvnHCJdmqetQqctt?= =?us-ascii?q?ImTRjcXiPkI0CRnVTOjlTVE//O6t5hhypstC+34jCOiXdhVIt5BMh10J?= =?us-ascii?q?r1I3fswu0uGd8oV1elQEOtplRQ3sTw1jGpIScssuBvfNdEzMKJV1WPh/?= =?us-ascii?q?ed?= Received: from nasanexm03h.na.qualcomm.com ([10.85.0.50]) by Ironmsg04-L.qualcomm.com with ESMTP/TLS/AES256-SHA; 10 Oct 2017 01:00:56 -0700 Received: from aptaiexm02b.ap.qualcomm.com (10.249.150.12) by nasanexm03h.na.qualcomm.com (10.85.0.50) with Microsoft SMTP Server (TLS) id 15.0.1293.2; Tue, 10 Oct 2017 01:00:55 -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, 10 Oct 2017 16:00:50 +0800 From: To: CC: Subject: [PATCH 5/5] ath10k: Fix TDLS peer TX data failure issue on encryped AP Date: Tue, 10 Oct 2017 16:02:31 +0800 Message-ID: <1507622551-9156-3-git-send-email-yintang@qti.qualcomm.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1507622551-9156-1-git-send-email-yintang@qti.qualcomm.com> References: <1507622551-9156-1-git-send-email-yintang@qti.qualcomm.com> MIME-Version: 1.0 X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: NASANEXM01F.na.qualcomm.com (10.85.0.32) To aptaiexm02b.ap.qualcomm.com (10.249.150.12) Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.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 f6702cb..d2530f7 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;