Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp545836rwr; Thu, 4 May 2023 06:46:23 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5czmrbV+12K/WJQyPuoFozSrNR3AX/dVRuRJIw8AjgIqIqMBRx1JrZrQ9kPGxeOJYY7KJR X-Received: by 2002:a17:902:e882:b0:1ab:74c:bdf2 with SMTP id w2-20020a170902e88200b001ab074cbdf2mr4713330plg.28.1683207982768; Thu, 04 May 2023 06:46:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683207982; cv=none; d=google.com; s=arc-20160816; b=gLNi1TMvpV3eOc3OSjNWSTYdpVt6o9qip3NzocYQDhGQXvTIkEUMRcWQdSLL6g1Vr+ Ct46d0uzSDEl6NnSkTWhm+MMMnigdkS6Bn+JD+o3bE8fAT0l3/+gYDzm2KvUGXzgj+QL QqeNUpGJ6h8GwmdbchK88touHadjNm51UufDcZPAd8a6K3tN8qVRgUED+pnS+HIYE9B1 8j+/x6vo+jWsfLeZu9IM0dHgtELIbvSIRLP6fcICULBJtsTYt9xw28aPvbR5p/kI0uBl 55tRWYY0aonz478wLlm3q5gu9kc1vhHYdid5oZn0ckPBd2rCQm8AB+j/lNQJHyi82mAr Gsxw== 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=vIBBDsvT6KLr8wZJ1lFjLBIHdH3koV/TXotcDMBTcsE=; b=AZgNn+be97NrVndJOv/o6YZsfb8BGlFjWVRf7xl5qO4fdZHQkSdHrXgCXbq+HZNB70 7Hi6ty592swIbuf40blZNjlANpocT4jYs1lI6H93d2vz+CBygRLNvzMvadBjCNEmxEmb f5BFsmJIIaSyo2s+Q/bo/yBMeh9BJhZIywSKTwN76euDqERllkSlkrmw6zyuPpIWmd4+ bVp4Uoz0PTw5A9tcUc5NEvXRf7uFrdtPAAVsPdx5qrGFKWGjP3Y6A+uVnBLRJqm1xOic OzdFdTC84McqPhIrK1TbbmJ4/1VpOdu3RFn+PP+QLsYKLvhwHfkJWMM1NyDGyzzwYaN4 Ocag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="XN/xRu/D"; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n17-20020a170903111100b0019e2bd0fea8si36123899plh.143.2023.05.04.06.46.07; Thu, 04 May 2023 06:46:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="XN/xRu/D"; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231139AbjEDNpe (ORCPT + 61 others); Thu, 4 May 2023 09:45:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36270 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231130AbjEDNpc (ORCPT ); Thu, 4 May 2023 09:45:32 -0400 Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 759C87D9C for ; Thu, 4 May 2023 06:45:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1683207931; x=1714743931; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=xoFpV5sNFzrWwQXQhffevupVk/eKIEqrP6bR2ykDYeM=; b=XN/xRu/DLYurXVLV7D4Wdga1ZJgvVeDKh0PsTxI4P8rjzv1cGNdcF+7j 0hhdC8f4VxFD7hJhFDpYsQ8SCOApJ6sQXfqUEGdoOI50icl7cK/dnto8e XXAfaTFyd/sxfNUKx+ePCpRgF/pOMcsWeW3DkktUrOJ4tjKAv6k7nICK1 ylKeG3sbS2bjIEtQckSuX4LCyHhn+7EKSgdClHEE/LfNtrxhJsXTWaH/3 L94hd7YjFVRm5Hu7tXx1lkuufKXEDrBjwsFah+U2/V2E5/rtRFfCQvXEh dTlVO/Jhlj7FHPSDgMfLZkua7/rswURA2hOj755maN4PmBws/MDnDdWbW A==; X-IronPort-AV: E=McAfee;i="6600,9927,10700"; a="435242592" X-IronPort-AV: E=Sophos;i="5.99,249,1677571200"; d="scan'208";a="435242592" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 May 2023 06:45:31 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10700"; a="766591669" X-IronPort-AV: E=Sophos;i="5.99,249,1677571200"; d="scan'208";a="766591669" Received: from haddadra-mobl1.ger.corp.intel.com (HELO ggreenma-mobl2.intel.com) ([10.214.238.144]) by fmsmga004-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 May 2023 06:45:29 -0700 From: gregory.greenman@intel.com To: johannes@sipsolutions.net Cc: linux-wireless@vger.kernel.org, Johannes Berg , Gregory Greenman Subject: [PATCH 02/11] wifi: mac80211: simplify chanctx allocation Date: Thu, 4 May 2023 16:45:02 +0300 Message-Id: <20230504134511.828474-3-gregory.greenman@intel.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230504134511.828474-1-gregory.greenman@intel.com> References: <20230504134511.828474-1-gregory.greenman@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org From: Johannes Berg There's no need to call ieee80211_recalc_chanctx_min_def() since it cannot and won't call the driver anyway; just use _ieee80211_recalc_chanctx_min_def() instead. Signed-off-by: Johannes Berg Signed-off-by: Gregory Greenman --- net/mac80211/chan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/mac80211/chan.c b/net/mac80211/chan.c index dbc34fbe7c8f..d23d1a7b4cc3 100644 --- a/net/mac80211/chan.c +++ b/net/mac80211/chan.c @@ -638,7 +638,7 @@ ieee80211_alloc_chanctx(struct ieee80211_local *local, ctx->conf.rx_chains_dynamic = 1; ctx->mode = mode; ctx->conf.radar_enabled = false; - ieee80211_recalc_chanctx_min_def(local, ctx); + _ieee80211_recalc_chanctx_min_def(local, ctx); return ctx; } -- 2.38.1