Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp701177rdg; Wed, 11 Oct 2023 03:10:24 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH8W5GxVmVh4+3auk31f+YqH5NFZ5Rdtnq6dREXa+KhAl3YbW7w7H1ydyiSVJ9lrxWWynty X-Received: by 2002:a05:6358:999f:b0:140:f6ab:b11e with SMTP id j31-20020a056358999f00b00140f6abb11emr23446039rwb.28.1697019023947; Wed, 11 Oct 2023 03:10:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697019023; cv=none; d=google.com; s=arc-20160816; b=TqsOcn3jeqYam6QghW4H1gRXArZnf80g8kjtcMBkgv5muUTRaqy2pmK1LOKKt29t9e 4b2P1BlG+N9kOPtbyEJTdS19oIb2qSn+XiC1BK9Kvkxxk6Ye82I+Rz3w2iJ6MHPNZMqN KvC61a0Sf304T5vjuRa1j1jcAJPUjYPjlgDxCM3n/33JpbtrVs5fOV48k1D7A9GGTSqW dxRWiDQOBRPXTPvCrEcirSdHSYNTW/UoIUhDUW7P+5YzPs7mfGA9mWhcx7ESqU0i30In W2tCn01NG5ZlFdWPc2ZVfwJY+iCt/9lJC1ANFtUXiLf5MW9Vp29Al8azUa3gr66yZ5W1 WrrA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=MkcFthl6Dny6Z21BMfZS4MJTk/kH1ES6b8H+iq5wCQ4=; fh=Y2IfAqdjkYQAx7XZcGq/8JceY1atOOwfX771vvMvH7o=; b=Av3ESzeoVyimqJjkmxHmDkGZcq2iKKl1egdEQy/QUTWwr0WCGDIAQ8FoURaZY5pxxr 0FboXGwMnEK6qDrmygXKsdaAZdz8/+RnHaOdpA6wb30XGAyPqTrTmldJbf5ee6eTzb+G qVqDrFY67dX5J4juL2RR1ZsILMmB7Mujz2rZb9lg5piwDJY7+Uty/kfR66gWV4r+sEcR asiKzZlTIOFlzXZ41XznsB42g1TbhZ3zpcH/uD6XUqvqhkUC2h9jt0v92i4vRUIFY1Ph 7NgUhZ+ndSKjUjS225Ho+kIf2HrtI5qJ3Y7AehMYzPcWT5Fjn7vgBdR+dh/gr/bkmut4 Odvg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=UAu0RUMY; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id s27-20020a63925b000000b00573fc592e9dsi818299pgn.848.2023.10.11.03.10.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Oct 2023 03:10:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=UAu0RUMY; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 20A0F80EE742; Wed, 11 Oct 2023 03:10:06 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346327AbjJKKKB (ORCPT + 52 others); Wed, 11 Oct 2023 06:10:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53240 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345865AbjJKKJg (ORCPT ); Wed, 11 Oct 2023 06:09:36 -0400 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.88]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1D750BA for ; Wed, 11 Oct 2023 03:08:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1697018898; x=1728554898; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=lUgz0zbGTY3lPoxsvOvdndEIm7/5HlDv8RhZw0hN/1Q=; b=UAu0RUMYp3edIwlm9xqKQoCMC04aAZLmudno5MjizBczQhLB2RVk7Q/X yELbNpWD5J60wW4yeX69X2S1jY89B+GlL9jp1Vx0X69/XMV3wV99mqyV9 JAgM/QdSd2v72e8TBqOkRPPyik3JCDToqQMPq+6JaqBygM6lotBEXtVJ6 mxAKJ2Xy9+k80wqf7euOvTj18uRo7ucsZLNosRgDL207U8gL/GlmLgNwC s9EwiCkEv3oUEfagWBiy9nB5BXjySPcDo/kVev8v3GJp7zPMW/K6ABiaY +5G5es0LMZaxfrNVvryFqB62JYVpM9AovvBMCcSHYn/PoOL5rn8ZSdbc5 w==; X-IronPort-AV: E=McAfee;i="6600,9927,10859"; a="415670698" X-IronPort-AV: E=Sophos;i="6.03,214,1694761200"; d="scan'208";a="415670698" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Oct 2023 03:08:17 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10859"; a="1001050336" X-IronPort-AV: E=Sophos;i="6.03,214,1694761200"; d="scan'208";a="1001050336" Received: from mzarix-mobl.ger.corp.intel.com (HELO ggreenma-mobl2.intel.com) ([10.249.94.125]) by fmsmga006-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Oct 2023 03:08:16 -0700 From: gregory.greenman@intel.com To: johannes@sipsolutions.net Cc: linux-wireless@vger.kernel.org, Johannes Berg , Gregory Greenman Subject: [PATCH 15/16] wifi: iwlwifi: mvm: remove TDLS stations from FW Date: Wed, 11 Oct 2023 13:07:30 +0300 Message-Id: <20231011130030.933011e710a9.I77c069c781e8b2b698b86cc3f43fc3c7e2dde114@changeid> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20231011100731.361200-1-gregory.greenman@intel.com> References: <20231011100731.361200-1-gregory.greenman@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=2.7 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Wed, 11 Oct 2023 03:10:06 -0700 (PDT) X-Spam-Level: ** From: Johannes Berg When we remove TDLS stations, we need to remove them from FW immediately, even while associated. Some previous refactoring here lost the sta ID condition, add it back. Fixes: 57974a55d995 ("wifi: iwlwifi: mvm: refactor iwl_mvm_mac_sta_state_common()") Signed-off-by: Johannes Berg Signed-off-by: Gregory Greenman --- drivers/net/wireless/intel/iwlwifi/mvm/sta.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/sta.c b/drivers/net/wireless/intel/iwlwifi/mvm/sta.c index d67103d3eea9..9c5ce4c52a05 100644 --- a/drivers/net/wireless/intel/iwlwifi/mvm/sta.c +++ b/drivers/net/wireless/intel/iwlwifi/mvm/sta.c @@ -2060,7 +2060,8 @@ bool iwl_mvm_sta_del(struct iwl_mvm *mvm, struct ieee80211_vif *vif, *status = IWL_MVM_QUEUE_FREE; } - if (vif->type == NL80211_IFTYPE_STATION) { + if (vif->type == NL80211_IFTYPE_STATION && + mvm_link->ap_sta_id == sta_id) { /* if associated - we can't remove the AP STA now */ if (vif->cfg.assoc) return true; -- 2.38.1