Received: by 2002:a89:288:0:b0:1f7:eeee:6653 with SMTP id j8csp89690lqh; Mon, 6 May 2024 12:10:58 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX9OeeG7wJXwt0mN/BA9l2IePojf/CB9Qdx4Wc3cGisuqo/cvu/p7gOXq6E4it6DeeSA/XCSIjbmYWGgP50cC8wgcs+LYd5Hpt2sPTLcw== X-Google-Smtp-Source: AGHT+IHDVmzN7mYe8+8HC+S8zOdlESXN4RmGf9qXNqORXst6YpmPXYCud5AfMjEaPRAvGJPlz/rP X-Received: by 2002:a17:902:e848:b0:1eb:d7bd:c0d0 with SMTP id t8-20020a170902e84800b001ebd7bdc0d0mr15327460plg.60.1715022658485; Mon, 06 May 2024 12:10:58 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715022658; cv=pass; d=google.com; s=arc-20160816; b=wJlyScBj9Yu0OhdsnNfxCuXHyCgrJ9Mk9OQfZoeNrqqMwaSabM1q2fyLGYKoXMYTar UMwAqNZKbeg+1coiq6hu5j9y0I2Z24JFweShSk+yU5DzrrP0m7xNLm+kKtS6GpFnO6qI 5hWFky+oAWnDmQ389jjufJw/mgaIYzNvi1A11F6t37Cr1X3YmlZ/6psvSZis9vQK3uez KqmO+FAvlpxuQUHHknx6JHuncpOUbrWFcDYdKkCFD9m8c4w2zFdPF26akEwy5gFMCi/y eOncGIx+ONX8GwdcEdejuuCtOPx2wAD1sUfo4B7vNrNYkDg3oO6BR3TESpRy89dYzJDE BF3g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=aNY+0nK6q0pEgSp3NsTAxoeeRRjfxMRo9+I59wMAixI=; fh=0ZKV22Mpi0Z+/zRlCC9GRUAKl0wLMxmYgR1nXO1NAEs=; b=te7JFL/7Qz/5PBcegubWs2Qgx5WjyE0W+mW2V5OwMZxtO5iW6nBelQ3nuhxSGlLWdv p3jV5bUIIQWQoag/ZOE+YjPHANNA/TMqDYmLWqqZNQZcp7kjJNnoZHj5y4tVIMM0b18g Vw/z6Yvzoa8VgNdyUZ+a+LW2YeSZ7iuJAI0SEFaiWD1dHyNeUHtBQcfa41gT/Ecg6CAf ERD6VXl+pc+OE2M6wTG9kzfnFuVeMENIKgQ8JDGgwlvH7F2qaisyUW7OzLT5jthOrpUD 5q4gepHgiN3t/LCKSKv+IGv0b7S2b4aLfsS8AQZhXBziArJ/BzNepCSjEKhCJ4OTYlDw 3RoA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b=CVjecVzD; arc=pass (i=1 spf=pass spfdomain=sipsolutions.net dkim=pass dkdomain=sipsolutions.net dmarc=pass fromdomain=sipsolutions.net); spf=pass (google.com: domain of linux-wireless+bounces-7235-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-7235-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=sipsolutions.net Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id y8-20020a17090322c800b001e7a248eaafsi8908678plg.6.2024.05.06.12.10.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 May 2024 12:10:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-7235-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b=CVjecVzD; arc=pass (i=1 spf=pass spfdomain=sipsolutions.net dkim=pass dkdomain=sipsolutions.net dmarc=pass fromdomain=sipsolutions.net); spf=pass (google.com: domain of linux-wireless+bounces-7235-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-7235-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=sipsolutions.net Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 04A03B213BE for ; Mon, 6 May 2024 19:10:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3DCE613DDD8; Mon, 6 May 2024 19:10:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=sipsolutions.net header.i=@sipsolutions.net header.b="CVjecVzD" X-Original-To: linux-wireless@vger.kernel.org Received: from sipsolutions.net (s3.sipsolutions.net [168.119.38.16]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9EB03158DC4 for ; Mon, 6 May 2024 19:10:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=168.119.38.16 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715022642; cv=none; b=RQacjtynD6zY5QDi0cJdDCOsMvQjWmEXr6CYfqVux8Rpt1PUsUag0l8DoX6aGoVMjBbH/uAS2GCfNvB1B5nCJXQ5t6L7TZwbHvB/vjUdD4QLmkC3Sml87WFvc/BvW2nz4Htf8hcg1jx0GpFyQMA3bVpJt5UKjKz/gM2Q0IaAiIs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715022642; c=relaxed/simple; bh=/rXrdo3guuU7PaSMKhSAyCkNqtmcZL6SPoVLSwhntkw=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=ui4gsiHKxb21SvnA+ucIrBsaFWFHesRXy7LSvupPlHPl9SUVjjVHLgJC38/IL1imUjclIDcBM4reuYXtP4I1iTORNsmBYGiczcY/EW71U0yRitT3eHZLQD4TzqSebP2LzeuE+QKxj5j1qjUtZDcR9ZsCCQaikxf+dZw+vy4DZlU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=sipsolutions.net; spf=pass smtp.mailfrom=sipsolutions.net; dkim=pass (2048-bit key) header.d=sipsolutions.net header.i=@sipsolutions.net header.b=CVjecVzD; arc=none smtp.client-ip=168.119.38.16 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=sipsolutions.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sipsolutions.net DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sipsolutions.net; s=mail; h=Content-Transfer-Encoding:MIME-Version: References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Content-Type:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-To: Resent-Cc:Resent-Message-ID; bh=aNY+0nK6q0pEgSp3NsTAxoeeRRjfxMRo9+I59wMAixI=; t=1715022640; x=1716232240; b=CVjecVzDnUuhmIbRqfS1YSjuLHMfpejDm0yZfqSSXcYtJ9c ur3o5cSeKonGmrlQyKbSlKCcI24+qx0k3KjhaqsR4PEv553Ly8Wh5qR6MEZbFarOLx+ujLWeswRI/ xSbgB24JJnLegwiNRPwB0xckqC9JtAshVRH4NgfFk0BUysfzU9uchrITQgXGQ8ICRXxnaDeTg3B8I QbJIUDRpzzS1UmLQd6q92U5CcBj7e0snhl3nC+Zh8kTXBZI49MYqk7A53VnmR7uB3doV9TM3sV4EI mrZH14ksQ8p5o2XPJMCOoafcnOLMdXDYiJDyAx9147R+i4aBGvtLNO1OpirLjV6Q==; Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.97) (envelope-from ) id 1s43jR-000000089kh-44Pe; Mon, 06 May 2024 21:10:38 +0200 From: Johannes Berg To: linux-wireless@vger.kernel.org Cc: Johannes Berg , Miriam Rachel Korenblit Subject: [PATCH 2/3] wifi: mac80211: cancel TTLM teardown work earlier Date: Mon, 6 May 2024 21:10:34 +0200 Message-ID: <20240506211034.096a10ccebec.I5584a21c27eb9b3e87b9e26380b627114b32ccba@changeid> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20240506211034.ac754794279f.Ib9fbb1dab50c6b67f6de9be09a6c452ce89bbd50@changeid> References: <20240506211034.ac754794279f.Ib9fbb1dab50c6b67f6de9be09a6c452ce89bbd50@changeid> Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Johannes Berg It shouldn't be possible to run this after disconnecting, so cancel the work earlier. Fixes: a17a58ad2ff2 ("wifi: mac80211: add support for tearing down negotiated TTLM") Reviewed-by: Miriam Rachel Korenblit Signed-off-by: Johannes Berg --- net/mac80211/mlme.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c index 49bcd800bdca..9b0598b42d48 100644 --- a/net/mac80211/mlme.c +++ b/net/mac80211/mlme.c @@ -3294,6 +3294,9 @@ static void ieee80211_set_disassoc(struct ieee80211_sub_if_data *sdata, wiphy_delayed_work_cancel(sdata->local->hw.wiphy, &sdata->u.mgd.ml_reconf_work); + wiphy_work_cancel(sdata->local->hw.wiphy, + &ifmgd->teardown_ttlm_work); + ieee80211_vif_set_links(sdata, 0, 0); ifmgd->mcast_seq_last = IEEE80211_SN_MODULO; @@ -8709,8 +8712,6 @@ void ieee80211_mgd_stop(struct ieee80211_sub_if_data *sdata) &ifmgd->beacon_connection_loss_work); wiphy_work_cancel(sdata->local->hw.wiphy, &ifmgd->csa_connection_drop_work); - wiphy_work_cancel(sdata->local->hw.wiphy, - &ifmgd->teardown_ttlm_work); wiphy_delayed_work_cancel(sdata->local->hw.wiphy, &ifmgd->tdls_peer_del_work); wiphy_delayed_work_cancel(sdata->local->hw.wiphy, &ifmgd->ttlm_work); -- 2.44.0