Received: by 2002:ab2:620c:0:b0:1ef:ffd0:ce49 with SMTP id o12csp1343298lqt; Wed, 20 Mar 2024 00:14:41 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU6VRVstoBsG0/9Peg8axOZpREleIG5h/ovQE7oKrkRN0FCODAamApHA29qAbOTzMhRz74364WJJIAEQGv9QigQCFUa9xW5s+zMLKnPrA== X-Google-Smtp-Source: AGHT+IGNMFUeG7UCtTqfs0Rlow75LFNAnuKbrixZLk9HW38XNcD4czxSkiJu6qVB4HUBojswmEmz X-Received: by 2002:a05:6a21:1507:b0:1a3:579f:1e88 with SMTP id nq7-20020a056a21150700b001a3579f1e88mr12192469pzb.27.1710918881396; Wed, 20 Mar 2024 00:14:41 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710918881; cv=pass; d=google.com; s=arc-20160816; b=ScQ1rN4OyIsvlsOzKrnOqsA6W/c+9OudiSd89w8nZH1+Ic6d4QcQ+xzfvFEF+UfHUb 4cvsuIl3EF/YSm75hAp8ey+QLlJpLn4bcHLx38hKPo/Ipt8e7EnQgWIetecewWdG2jaF r6oiRSCSy6N9fGXuqEp4CGvJuM/Vs7HWhge/E4TqzYtWFIjkvR0hbLGxEfFuK5UnKU9w hYak/oke1rcoQbaKR1QGwx19zUmmxeYn4ctnFkTuDrTgIuM48AN+DEynb/b12Xd/KRPU 08e7sUYOnhuFeA7wmQLHc2h66y2dVvXcaQN+huHBNF4ZqVr5CzrYEJFZUm9YDoL6EAc+ BAxA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:organization:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature; bh=1M/ZKjvgnkxOvu0IdN06J7tzTtadF3skJAbxrl0dVA8=; fh=cP96cs9K3X2Q+lH/xjkrH8lK/6zZ8UeeH1/SHyTX/1g=; b=fMI4xOd3m+bj/AgUiVzTiEz26hZTFmzfXCQGoxl7kW/Pqn69xHCu/TVTGwS6ydNsvX 93b3W0K0hox/ZpzMndIDJK5bJUF1CMVc6Si2QdQCxxGAOMRYlsrDHsZtklGfDwzssC32 0I1S82t3TCIh4X76f0vv4lW3BMLmvJw/ubrZ1GSW5/x2Y1y/rO830t7ux8SLGO+BDaMS WaP0I4599p0mL2SXmCdyfp+WmRgBWtBOc/Ixc8d70FScz6m5g3Sk60OST9DYVQGtu7SY bW/HV07q0bCiX663SHx8G4ovmK38R6c7Cf+DUFrfsb8WQ9Qw2vA325UdJ0JoLL7oalxk kDug==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Os9KdABe; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-wireless+bounces-4943-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-4943-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id az2-20020a17090b028200b0029bc5917d10si845990pjb.58.2024.03.20.00.14.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Mar 2024 00:14:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-4943-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=@intel.com header.s=Intel header.b=Os9KdABe; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-wireless+bounces-4943-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-4943-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com 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 03F34B22BCA for ; Wed, 20 Mar 2024 07:14:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 43D6C24A19; Wed, 20 Mar 2024 07:14:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="Os9KdABe" X-Original-To: linux-wireless@vger.kernel.org Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.21]) (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 CFD8E2208F for ; Wed, 20 Mar 2024 07:14:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.21 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710918859; cv=none; b=jXHhE6YxVjRlUqh7/TdTnoGfqAcvHrNIbdoPwMqnG9IxVIKjz6O4kk0Ulzb6o4gIHBcxEEpwAHWzLqY6NV5pqQEAig0Hhfu7IUOZVz7IJvX7KWk9+dXlpICc0KkBo3ig4kcd6CixLu/wSiUI8ijCIOeuZ89kNtyAJt6PqLby3T8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710918859; c=relaxed/simple; bh=jYA5rmFK6ns6xtK1SrCtNjRmMM6pIneu5GEu2vkYJ44=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=WkMyiMcRS3Etxy7n5GGjlMoN3m5sXWailhrt9OqdJ2qVv2H91mxdBmUEjvi7Me8/3RZ2VwMo2XvbQ69RqHpthwUoCy1phLUPG/F3xDLHcVq2SAfXT3a7Qc4h2LQxEVCJ2qq68h9VMEuLfZv5b2tPDwftA8h+al9rV6yrZtbB9Co= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=Os9KdABe; arc=none smtp.client-ip=198.175.65.21 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1710918857; x=1742454857; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=jYA5rmFK6ns6xtK1SrCtNjRmMM6pIneu5GEu2vkYJ44=; b=Os9KdABe7foWj1qJnv51u7BDilcPOLkeQ8uf70ObDEFokfae6XQiJXGF nx2SQMwdzvoNH7x8Dzt0L4elLVGjL7iRx/VhNtezPBjlN7fICi/LAG56e b0PcixVRMQjEY/BzOxoO4WeFyh1BkOlwzjr2dsB4xClZPFEJ9Sqp/VC33 9Bhmqrr4PJAbNIHXAVCqd6fPRp480EEH5ESDSocDFpyoaTbCT/MDpNoap u0jWZT51Gm5THKKIYC3ZztF2FUwHpq4i0SCQSHI/Xi1PqHLUWAxdWu3c0 Tg47RNbmfMqljT9o9DaUhQ4rPTVHVlzETKV98Rt03ATzxnRFPRhx0VG5n w==; X-IronPort-AV: E=McAfee;i="6600,9927,11018"; a="5763828" X-IronPort-AV: E=Sophos;i="6.07,139,1708416000"; d="scan'208";a="5763828" Received: from orviesa007.jf.intel.com ([10.64.159.147]) by orvoesa113.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Mar 2024 00:14:17 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,139,1708416000"; d="scan'208";a="14477397" Received: from unknown (HELO WEIS0040.iil.intel.com) ([10.12.217.108]) by orviesa007-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Mar 2024 00:14:15 -0700 From: Miri Korenblit To: johannes@sipsolutions.net Cc: linux-wireless@vger.kernel.org, Benjamin Berg , Johannes Berg Subject: [PATCH 1/8] wifi: mac80211: do not call ieee80211_key_switch_links during reconfig Date: Wed, 20 Mar 2024 09:13:58 +0200 Message-Id: <20240320091155.6ab8520bd4a1.Iea3e7e5d8b2bb5db1dd93f6ca589e8ea1bacaf60@changeid> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240320071405.815427-1-miriam.rachel.korenblit@intel.com> References: <20240320071405.815427-1-miriam.rachel.korenblit@intel.com> Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Organization: Intel Israel (74) Limited Content-Transfer-Encoding: 8bit From: Benjamin Berg The keys will be configured later by a call to ieee80211_reenable_keys. Signed-off-by: Benjamin Berg Reviewed-by: Johannes Berg Signed-off-by: Miri Korenblit --- net/mac80211/link.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/net/mac80211/link.c b/net/mac80211/link.c index 685ec66b4264..7f01462f84e9 100644 --- a/net/mac80211/link.c +++ b/net/mac80211/link.c @@ -375,8 +375,10 @@ static int _ieee80211_set_active_links(struct ieee80211_sub_if_data *sdata, WARN_ON_ONCE(ret); } - ret = ieee80211_key_switch_links(sdata, rem, add); - WARN_ON_ONCE(ret); + if (!local->in_reconfig) { + ret = ieee80211_key_switch_links(sdata, rem, add); + WARN_ON_ONCE(ret); + } list_for_each_entry(sta, &local->sta_list, list) { if (sdata != sta->sdata) -- 2.34.1