Received: by 10.213.65.68 with SMTP id h4csp1788552imn; Mon, 19 Mar 2018 13:17:22 -0700 (PDT) X-Google-Smtp-Source: AG47ELsFTr7jXD+slzLdMBpwOdvTBXjXs4ebyts6BeVXrWMTqbNwr9XhE6WcsX6Kxg7+uH68GqZz X-Received: by 2002:a17:902:b582:: with SMTP id a2-v6mr13998929pls.353.1521490642901; Mon, 19 Mar 2018 13:17:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521490642; cv=none; d=google.com; s=arc-20160816; b=DwYA2qGZQNT2PRFcqVa02xyqAE5/o27u9Kvzysbc1Ptt5kQx5v5recp2isQND1dC62 inVWoDESGgWu6k/kLcPKQK5oMIbdcBI7v0VaOdgSlVV47Da3ANEkTBDWPzhICdsbYBxE v0jFwmLR47tthDbkN9LOgKTvn55Fiq3JSlruG32laBs7xLxtInhs7ee44rasR/f5a0M8 K978hu4N0hWABpySojZ3JV2WwHxyav9QE/KOaxinzcgY/7zEx9W6gKh/MgkmCzfpmCdO 1LBKvNdC0GLkGMlsUHB2/tDkpLiXz8HJYXM4MYadrUTqQTSgFctQI5QZyyTGlRb792UN Q2FQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=A0AoE6TSWj/BUWwYKnmc1i80KCbTKIy5s3Rsa+XQhrg=; b=o0TIPmR9hAKREfxxFjIpAyrWEVl39KNU/+EIqRgjQ+KQO/aKeSfNcexPgjtA6Mrwz+ JuMZUgvaEJOVc5DUSanTOBtirKgBFL2nsB8QZysqMwUK9bO+gU3hMndOIlXJQOz3Romi NxheIrCFCsHjSbE3/bMifHyXEr9Q4zQCDiUFuioO5Zu8USnzYEkrjKUvvKsw7gWbs6B+ oSfayN0sTsLmP1ExFKw5Nq1YEmIUUI31tE+rg/NgwQ7wDqrcnL4Gn+mSxaUj6hpwU7Km fvCoPmsuqUUNzkHG1+yYkWB63XVqaUjlTi4aDs8X6sI79Y7cgyQHGiT+0cWbQ2/vGaOF VZaQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v7-v6si4675plo.642.2018.03.19.13.17.08; Mon, 19 Mar 2018 13:17:22 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S969044AbeCSSQD (ORCPT + 99 others); Mon, 19 Mar 2018 14:16:03 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:44762 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S969006AbeCSSPt (ORCPT ); Mon, 19 Mar 2018 14:15:49 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 19E5B1150; Mon, 19 Mar 2018 18:15:48 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Manikanta Pubbisetty , Kalle Valo , Sasha Levin Subject: [PATCH 4.4 091/134] ath10k: update tdls teardown state to target Date: Mon, 19 Mar 2018 19:06:14 +0100 Message-Id: <20180319171902.444965845@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180319171849.024066323@linuxfoundation.org> References: <20180319171849.024066323@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.4-stable review patch. If anyone has any objections, please let me know. ------------------ From: Manikanta Pubbisetty [ Upstream commit 424ea0d174e82365f85c6770225dba098b8f1d5f ] It is required to update the teardown state of the peer when a tdls link with that peer is terminated. This information is useful for the target to perform some cleanups wrt the tdls peer. Without proper cleanup, target assumes that the peer is connected and blocks future connection requests, updating the teardown state of the peer addresses the problem. Tested this change on QCA9888 with 10.4-3.5.1-00018 fw version. Signed-off-by: Manikanta Pubbisetty Signed-off-by: Kalle Valo Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- drivers/net/wireless/ath/ath10k/mac.c | 10 ++++++++++ 1 file changed, 10 insertions(+) --- a/drivers/net/wireless/ath/ath10k/mac.c +++ b/drivers/net/wireless/ath/ath10k/mac.c @@ -5497,6 +5497,16 @@ static int ath10k_sta_state(struct ieee8 "mac vdev %d peer delete %pM (sta gone)\n", arvif->vdev_id, sta->addr); + if (sta->tdls) { + ret = ath10k_mac_tdls_peer_update(ar, arvif->vdev_id, + sta, + WMI_TDLS_PEER_STATE_TEARDOWN); + if (ret) + ath10k_warn(ar, "failed to update tdls peer state for %pM state %d: %i\n", + sta->addr, + WMI_TDLS_PEER_STATE_TEARDOWN, ret); + } + ret = ath10k_peer_delete(ar, arvif->vdev_id, sta->addr); if (ret) ath10k_warn(ar, "failed to delete peer %pM for vdev %d: %i\n",