From patchwork Thu Oct 5 06:12:06 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: akolli@qti.qualcomm.com X-Patchwork-Id: 9986455 X-Patchwork-Delegate: kvalo@adurom.com 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 DA644602B8 for ; Thu, 5 Oct 2017 06:09:39 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C2D5328757 for ; Thu, 5 Oct 2017 06:09:39 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B515828B96; Thu, 5 Oct 2017 06:09:39 +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 377D528757 for ; Thu, 5 Oct 2017 06:09:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751288AbdJEGJh (ORCPT ); Thu, 5 Oct 2017 02:09:37 -0400 Received: from sabertooth01.qualcomm.com ([65.197.215.72]:6806 "EHLO sabertooth01.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751116AbdJEGJg (ORCPT ); Thu, 5 Oct 2017 02:09:36 -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=1507183776; x=1538719776; h=from:to:cc:subject:date:message-id:mime-version; bh=lF/vkA2KQoK7fz1jc28sSHmiL0menBEyrj7Hugnqbvo=; b=H50e5gdBXt4uz4TuEBQ5EVnNYOLYlwGqTg7C4hCCAG5KcyV0EDfCsAx5 4sUbgU/EmYHYWFI12i/JKR2fDfB6Hk/zL81zuN13E7amxQW6fqHcKdEat cX49WHb/DkG2IMTU9/6dJ0gXxJeiBkWAtl9C5efAXkXOtF886Eqk0EYWP M=; X-IronPort-AV: E=Sophos;i="5.42,480,1500966000"; d="scan'208";a="115528525" Received: from unknown (HELO Ironmsg03-R.qualcomm.com) ([10.53.140.107]) by sabertooth01.qualcomm.com with ESMTP; 04 Oct 2017 23:09:36 -0700 X-IronPort-AV: E=McAfee;i="5900,7806,8674"; a="1455426784" X-MGA-submission: =?us-ascii?q?MDFnBjtbSV8pfvLpCIRHLobJKCC1mO0qHSStDd?= =?us-ascii?q?ts0Yv3SzWtI5Va9xoKExRVCnguhPvf+MFjvzVuFh4+DiJ4lELcHStef3?= =?us-ascii?q?q/JVCtrTNdMo2J5YGCAzGty3ze2ibLR0HigAymioe9C8r1CR0RjVrRWp?= =?us-ascii?q?TQ?= Received: from nasanexm03g.na.qualcomm.com ([10.85.0.49]) by Ironmsg03-R.qualcomm.com with ESMTP/TLS/AES256-SHA; 04 Oct 2017 23:09:36 -0700 Received: from aphydexm01a.ap.qualcomm.com (10.252.127.10) by nasanexm03g.na.qualcomm.com (10.85.0.49) with Microsoft SMTP Server (TLS) id 15.0.1293.2; Wed, 4 Oct 2017 23:09:35 -0700 Received: from localhost (10.80.80.8) by aphydexm01a.ap.qualcomm.com (10.252.127.10) with Microsoft SMTP Server (TLS) id 15.0.1293.2; Thu, 5 Oct 2017 11:39:09 +0530 From: To: CC: , , Anilkumar Kolli Subject: [PATCH] ath10k: fix sending wmi cmd during the tdls teardown Date: Thu, 5 Oct 2017 11:42:06 +0530 Message-ID: <1507183926-711-1-git-send-email-akolli@qti.qualcomm.com> X-Mailer: git-send-email 1.7.9.5 MIME-Version: 1.0 X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: NASANEXM01C.na.qualcomm.com (10.85.0.83) To aphydexm01a.ap.qualcomm.com (10.252.127.10) 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: Anilkumar Kolli The current firmware 10.4-3.5.1-00035 on QCA9888 supports TDLS explicit mode, it expects WMI_TDLS_ENABLE_PASSIVE for tdls setup and WMI_TDLS_DISABLE for tdls teardown. Signed-off-by: Anilkumar Kolli --- drivers/net/wireless/ath/ath10k/wmi.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/wireless/ath/ath10k/wmi.c b/drivers/net/wireless/ath/ath10k/wmi.c index 38a97086708b..cad2e42dcef6 100644 --- a/drivers/net/wireless/ath/ath10k/wmi.c +++ b/drivers/net/wireless/ath/ath10k/wmi.c @@ -7870,7 +7870,8 @@ static int ath10k_wmi_10_4_op_get_vdev_subtype(struct ath10k *ar, if (!skb) return ERR_PTR(-ENOMEM); - if (test_bit(WMI_SERVICE_TDLS_EXPLICIT_MODE_ONLY, ar->wmi.svc_map)) + if (test_bit(WMI_SERVICE_TDLS_EXPLICIT_MODE_ONLY, ar->wmi.svc_map) && + state == WMI_TDLS_ENABLE_ACTIVE) state = WMI_TDLS_ENABLE_PASSIVE; if (test_bit(WMI_SERVICE_TDLS_UAPSD_BUFFER_STA, ar->wmi.svc_map))