From patchwork Mon Nov 24 14:34:48 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Emmanuel Grumbach X-Patchwork-Id: 5367161 Return-Path: X-Original-To: patchwork-linux-wireless@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id F07AAC11AC for ; Mon, 24 Nov 2014 14:37:02 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 2D247203EC for ; Mon, 24 Nov 2014 14:37:02 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 5333E20395 for ; Mon, 24 Nov 2014 14:37:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932371AbaKXOg4 (ORCPT ); Mon, 24 Nov 2014 09:36:56 -0500 Received: from mail-wi0-f181.google.com ([209.85.212.181]:49360 "EHLO mail-wi0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932366AbaKXOgx (ORCPT ); Mon, 24 Nov 2014 09:36:53 -0500 Received: by mail-wi0-f181.google.com with SMTP id r20so6020078wiv.2 for ; Mon, 24 Nov 2014 06:36:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=AQ4wd3iJqSJRDPSorqhOfi5cj9ChKBaG5W9qWdim35A=; b=RPdgLvOyqCYshKLq4IDX4CofpqjBvt25/c9VrDSrjXi8LEIoWkHv0nandhlTUxY+Pv wJp3EUlzSClmGkJ2J3Pusk2zDLUlV/+uZbm9LBEcoEWTSCUKhQHFQhAH68VS2ScXD3oY zm3bKx0DberrL/+ZQZ4OE+/0G1KWHg8Vx4u80DuJ9PH1wqn/BkfAjH2evM7k8FHVVnbN ymW9aa8CPyyqI1kQQLXQaC5kFMlESNwvoddaWJNiTXZKHrL0go2iFZC1v31lds6qPllh zpa7RnNAqUbzAeUnc6rXJ1x6dQpbB2e8SruR4x1QVIpIcDokqKuUX223J85hREQO7Zwx Wi1A== X-Received: by 10.194.79.227 with SMTP id m3mr21460534wjx.126.1416839812679; Mon, 24 Nov 2014 06:36:52 -0800 (PST) Received: from localhost.localdomain (46-116-150-134.bb.netvision.net.il. [46.116.150.134]) by mx.google.com with ESMTPSA id n3sm21274744wjz.21.2014.11.24.06.36.51 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 24 Nov 2014 06:36:52 -0800 (PST) From: Emmanuel Grumbach To: linux-wireless@vger.kernel.org Cc: Arik Nemtsov , Arik Nemtsov , Emmanuel Grumbach Subject: [PATCH 72/75] iwlwifi: mvm: disconnect TDLS peers before channel switch Date: Mon, 24 Nov 2014 16:34:48 +0200 Message-Id: <1416839691-28533-72-git-send-email-egrumbach@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: References: Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Arik Nemtsov In case of channel switch, we need to teardown the TDLS peers. Signed-off-by: Arik Nemtsov Signed-off-by: Emmanuel Grumbach --- drivers/net/wireless/iwlwifi/mvm/mac80211.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/wireless/iwlwifi/mvm/mac80211.c b/drivers/net/wireless/iwlwifi/mvm/mac80211.c index 5dbf547..322d01b 100644 --- a/drivers/net/wireless/iwlwifi/mvm/mac80211.c +++ b/drivers/net/wireless/iwlwifi/mvm/mac80211.c @@ -3245,6 +3245,9 @@ static int iwl_mvm_pre_channel_switch(struct ieee80211_hw *hw, if (ret) goto out_unlock; + /* we won't be on this channel any longer */ + iwl_mvm_teardown_tdls_peers(mvm); + out_unlock: mutex_unlock(&mvm->mutex);