Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp3339545rdh; Thu, 28 Sep 2023 08:53:41 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE9gQWMU29vPChEKfXCzMa6y8MW3VeYq5GR0zM69ARE6H8FkCOxY+Qc3pS7QM0jmQz96v+k X-Received: by 2002:a17:90b:1003:b0:274:8be8:f767 with SMTP id gm3-20020a17090b100300b002748be8f767mr1472119pjb.15.1695916421655; Thu, 28 Sep 2023 08:53:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695916421; cv=none; d=google.com; s=arc-20160816; b=edED/nP0W3NR/IN/6F8hmBxssF7Y1jhOQFstjXI8TsP0MYTRUPwLf0C8P2uX6iKjio OwhOTxljItXhO0cH/qCYz86jDwl4GVJfAUwqlmVkXqQgRUj6I4jlPfWgewARwg/ACWzF 7qPU7pczQqcCov3ocXE4FKzvnc5XTduflZE93s35Nz2Kwxdg9fI5nT7zwmnQTug8AWzH 8Qxqaw1hMOKWpsMd0i+oHCfTviVSL5DF77fRH2FpoYHOM5YDW0uaTU8AWA0F0tEbwFR7 f7meUXdB9OkiQSwrDYBM0eXFOSXvNck/sdTsH6t2DGHNivbsiH5iqgIQtQVeWKujcMxf LErg== 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=F+eiKt3b3w2iVTzS505HvyM0pYjuxLNSTCiSa5WCNwI=; fh=Y2IfAqdjkYQAx7XZcGq/8JceY1atOOwfX771vvMvH7o=; b=cPDbvv7ty7Hcnidn5OHlk/lWWriATZPV7mWf/tCPxDCYj63/WAtzIw2wd44ZRkwE0W L+PeeHCUxo6JU3dyUJhRXd9er8fCE3wGAyjNwZoJURJFJUg+FhYVrxunlrKseYIlFKGP dhC/3e30WY5PyzwMqeMuLe93p86jQEJXg7vKqAq5yI4pSYSaMX8WSrzTj7NW0EBkyjnO uttObRS6eVca2BvjUuYEZdocQDwKfh1WuVO1J9Muj78ibFgx0ZSZK+S7KqStVFl7JJgo QTlD4whMwMEFeK6DAtGGb/Q53UA0ZsuUUNFfqKmwyzcNZWip3WM4tXbAQy1/Uh42dATL VgTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=aZlDMzq3; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.31 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 morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id pc5-20020a17090b3b8500b0027920d6f85bsi891183pjb.94.2023.09.28.08.53.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Sep 2023 08:53:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=aZlDMzq3; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.31 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 morse.vger.email (Postfix) with ESMTP id 68C8D811338E; Thu, 28 Sep 2023 07:36:04 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230377AbjI1OgB (ORCPT + 55 others); Thu, 28 Sep 2023 10:36:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34432 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229469AbjI1OgA (ORCPT ); Thu, 28 Sep 2023 10:36:00 -0400 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.9]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 68FBC19E for ; Thu, 28 Sep 2023 07:35:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1695911759; x=1727447759; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=b94g+ONjafCwQ0/vWHGJALy5Kr7HChBWeh4Cpj5gZTI=; b=aZlDMzq3COg5gWJCN+BUNsRoYPqiJyVDXatXe4F746azHO7IHIRUlXc3 RCzA9hIkXtWFy6AY1kMlgUNiQqrx4lsWj1xHt9UmUJ4Q8qVnHjkmFnnZM zAnXMKGCm6L77kd6QvUxq6HeQU7C+Sfpy2N0QtCgNOHR/J1SBrjfZaNUv DXNrMaQ/vMsHY1uLi2OVyPJ50Vk596AFtMdl+wnsdLxzrF4kcaotYZ4y1 UGEUT1bd2PyvFDWuU2SzG9i+XsJX4r+A9rk5/dLHeAMzk5fpTtR6psrDs gSKz132LybsxCv8SC004ONc2boPbkr16DtFIvLC4MAT9tjOHayJFiVQ7Y w==; X-IronPort-AV: E=McAfee;i="6600,9927,10847"; a="688411" X-IronPort-AV: E=Sophos;i="6.03,184,1694761200"; d="scan'208";a="688411" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by orvoesa101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Sep 2023 07:35:59 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10847"; a="996590394" X-IronPort-AV: E=Sophos;i="6.03,184,1694761200"; d="scan'208";a="996590394" Received: from smoriles-mobl1.ger.corp.intel.com (HELO ggreenma-mobl2.intel.com) ([10.249.92.89]) by fmsmga006-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Sep 2023 07:35:57 -0700 From: gregory.greenman@intel.com To: johannes@sipsolutions.net Cc: linux-wireless@vger.kernel.org, Johannes Berg , Gregory Greenman Subject: [PATCH 03/18] wifi: mac80211: don't recreate driver link debugfs in reconfig Date: Thu, 28 Sep 2023 17:35:24 +0300 Message-Id: <20230928172905.3d0214838421.I512a0ff86f631ff42bf25ea0cb2e8e8616794a94@changeid> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230928143539.1037500-1-gregory.greenman@intel.com> References: <20230928143539.1037500-1-gregory.greenman@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.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 (morse.vger.email [0.0.0.0]); Thu, 28 Sep 2023 07:36:04 -0700 (PDT) From: Johannes Berg We can delete any that we want to remove, but we can't recreate the links as they already exist. Fixes: 170cd6a66d9a ("wifi: mac80211: add netdev per-link debugfs data and driver hook") Signed-off-by: Johannes Berg Signed-off-by: Gregory Greenman --- net/mac80211/driver-ops.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/net/mac80211/driver-ops.c b/net/mac80211/driver-ops.c index 169dbbca54b6..9112715a749a 100644 --- a/net/mac80211/driver-ops.c +++ b/net/mac80211/driver-ops.c @@ -526,10 +526,13 @@ int drv_change_vif_links(struct ieee80211_local *local, if (ret) return ret; - for_each_set_bit(link_id, &links_to_add, IEEE80211_MLD_MAX_NUM_LINKS) { - link = rcu_access_pointer(sdata->link[link_id]); + if (!local->in_reconfig) { + for_each_set_bit(link_id, &links_to_add, + IEEE80211_MLD_MAX_NUM_LINKS) { + link = rcu_access_pointer(sdata->link[link_id]); - ieee80211_link_debugfs_drv_add(link); + ieee80211_link_debugfs_drv_add(link); + } } return 0; -- 2.38.1