All of lore.kernel.org
 help / color / mirror / Atom feed
From: gregory.greenman@intel.com
To: johannes@sipsolutions.net
Cc: linux-wireless@vger.kernel.org,
	Johannes Berg <johannes.berg@intel.com>,
	Gregory Greenman <gregory.greenman@intel.com>
Subject: [PATCH 02/11] wifi: mac80211: simplify chanctx allocation
Date: Thu,  4 May 2023 16:45:02 +0300	[thread overview]
Message-ID: <20230504134511.828474-3-gregory.greenman@intel.com> (raw)
In-Reply-To: <20230504134511.828474-1-gregory.greenman@intel.com>

From: Johannes Berg <johannes.berg@intel.com>

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 <johannes.berg@intel.com>
Signed-off-by: Gregory Greenman <gregory.greenman@intel.com>
---
 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


  parent reply	other threads:[~2023-05-04 13:45 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-05-04 13:45 [PATCH 00/11] cfg80211/mac80211 patches from our internal tree 2023-05-04 gregory.greenman
2023-05-04 13:45 ` [PATCH 01/11] wifi: mac80211: fix min center freq offset tracing gregory.greenman
2023-05-04 13:45 ` gregory.greenman [this message]
2023-05-04 13:45 ` [PATCH 03/11] wifi: mac80211: consider reserved chanctx for mindef gregory.greenman
2023-05-04 13:45 ` [PATCH 04/11] wifi: mac80211: recalc chanctx mindef before assigning gregory.greenman
2023-05-04 13:45 ` [PATCH 05/11] wifi: mac80211: HW restart for MLO gregory.greenman
2023-05-04 13:45 ` [PATCH 06/11] wifi: mac80211: Fix elements scratch buffer allocation gregory.greenman
2023-05-04 13:45 ` [PATCH 07/11] wifi: mac80211_hwsim: avoid warning with MLO PS stations gregory.greenman
2023-05-04 13:45 ` [PATCH 08/11] wifi: mac80211: skip EHT BSS membership selector gregory.greenman
2023-05-04 13:45 ` [PATCH 09/11] wifi: cfg80211: Add null check for ie data gregory.greenman
2023-06-05 11:38   ` Johannes Berg
2023-05-04 13:45 ` [PATCH 10/11] wifi: mac80211: fetch and store the EML capability information gregory.greenman
2023-05-04 13:45 ` [PATCH 11/11] wifi: mac80211: implement proper AP MLD HW restart gregory.greenman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230504134511.828474-3-gregory.greenman@intel.com \
    --to=gregory.greenman@intel.com \
    --cc=johannes.berg@intel.com \
    --cc=johannes@sipsolutions.net \
    --cc=linux-wireless@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.