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: 9986457 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 A66B6602B8 for ; Thu, 5 Oct 2017 06:10:14 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 97DBB28757 for ; Thu, 5 Oct 2017 06:10:14 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8C52428B96; Thu, 5 Oct 2017 06:10:14 +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 2676C28757 for ; Thu, 5 Oct 2017 06:10:14 +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: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:In-Reply-To:References: List-Owner; bh=hbD60gJYv6qMGxgQnjVlvgiAguBVHsCeQ+dgSVwM5a0=; b=VBwrPUWrZlYTLs F8oUC40yMp3/CHB9P6pe4Por7PC+Pu1XDA9wKrtAcGQeBL8sxxdfXJWpi3HQuvu25BE2rMk1dXxAt 0kibU0qxA+lLGSFcQ9LU97OHN9QgmUPht+4REd/ZG26URyGpmcZyYbsYLc/fAdLl6mfZRCfOF8wiO NW2AdvxJqAzS2CPtPlG/9y7J/d6nS8uw6JJcRfVdnHy3poCUQGYBGUp3AvNfA4Ev7987LdDtCnX2O 0CdcF0G7vm62QJwoPKSgvd1qO9wl8Jv655YIsVho6WcRRyeeIpRrCICRY3S8wZTvF4DgpiaXN51oi HVIl0hhU6c94uLdC7P0g==; 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 1dzzM8-0007lW-9v; Thu, 05 Oct 2017 06:10:00 +0000 Received: from alexa-out.qualcomm.com ([129.46.98.28]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dzzM4-0007hC-TM for ath10k@lists.infradead.org; Thu, 05 Oct 2017 06:09:58 +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=1507183797; x=1538719797; h=from:to:cc:subject:date:message-id:mime-version; bh=lF/vkA2KQoK7fz1jc28sSHmiL0menBEyrj7Hugnqbvo=; b=Zl+l5P2ZH2kDEt7wHBWYzoJ4j/Mpi5Niy6rX4/sjg3xTExFhnNUb1oX/ hTQ/JKx4Rkip2suBrG9DSxANXBTtpFiBdn5sxupiu50lTaqwjTMplXo1a 94UqphNPF+7H+/9Xa5WV/v38+OUPsSEYdsSIj3nJpMq92v6QnAXceleIU s=; X-IronPort-AV: E=Sophos;i="5.42,480,1500966000"; d="scan'208";a="6090461" Received: from ironmsg03-r-new.qualcomm.com (HELO Ironmsg03-R.qualcomm.com) ([10.53.140.107]) by alexa-out.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: 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) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20171004_230957_042498_9DC60308 X-CRM114-Status: UNSURE ( 7.92 ) 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: Anilkumar Kolli , akolli@codeaurora.org, 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: 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))