From: Zong-Zhe Yang <kevin_yang@realtek.com>
To: Aditya Kumar Singh <quic_adisi@quicinc.com>,
Johannes Berg <johannes@sipsolutions.net>
Cc: "linux-wireless@vger.kernel.org" <linux-wireless@vger.kernel.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: RE: [PATCH] wifi: mac80211: re-order unassigning channel in activate links
Date: Thu, 5 Dec 2024 08:38:37 +0000 [thread overview]
Message-ID: <65d22960ca6e47e19cf7c1c6a60dd72a@realtek.com> (raw)
In-Reply-To: <20241205-unassign_activate_links-v1-1-84097a1abdeb@quicinc.com>
Aditya Kumar Singh <quic_adisi@quicinc.com> wrote:
>
> [...]
>
> net/mac80211/link.c | 44 ++++++++++++++++++++++----------------------
> 1 file changed, 22 insertions(+), 22 deletions(-)
>
> diff --git a/net/mac80211/link.c b/net/mac80211/link.c index
> 58a76bcd6ae68670fbbe7fa7d07540c04ff996f8..3c46d2b2ee254fab324d57f4d0fbe94ace76d8
> 9d 100644
> --- a/net/mac80211/link.c
> +++ b/net/mac80211/link.c
> @@ -367,28 +367,6 @@ static int _ieee80211_set_active_links(struct ieee80211_sub_if_data
> *sdata,
> }
> }
>
> - for_each_set_bit(link_id, &rem, IEEE80211_MLD_MAX_NUM_LINKS) {
> - struct ieee80211_link_data *link;
> -
> - link = sdata_dereference(sdata->link[link_id], sdata);
> -
> - ieee80211_teardown_tdls_peers(link);
> -
> - __ieee80211_link_release_channel(link, true);
> -
> - /*
> - * If CSA is (still) active while the link is deactivated,
> - * just schedule the channel switch work for the time we
> - * had previously calculated, and we'll take the process
> - * from there.
> - */
> - if (link->conf->csa_active)
> - wiphy_delayed_work_queue(local->hw.wiphy,
> - &link->u.mgd.csa.switch_work,
> - link->u.mgd.csa.time -
> - jiffies);
> - }
> -
> for_each_set_bit(link_id, &add, IEEE80211_MLD_MAX_NUM_LINKS) {
> struct ieee80211_link_data *link;
>
> @@ -458,6 +436,28 @@ static int _ieee80211_set_active_links(struct ieee80211_sub_if_data
> *sdata,
> __ieee80211_sta_recalc_aggregates(sta, active_links);
> }
>
> + for_each_set_bit(link_id, &rem, IEEE80211_MLD_MAX_NUM_LINKS) {
> + struct ieee80211_link_data *link;
> +
> + link = sdata_dereference(sdata->link[link_id], sdata);
> +
> + ieee80211_teardown_tdls_peers(link);
> +
> + __ieee80211_link_release_channel(link, true);
> +
> + /*
> + * If CSA is (still) active while the link is deactivated,
> + * just schedule the channel switch work for the time we
> + * had previously calculated, and we'll take the process
> + * from there.
> + */
> + if (link->conf->csa_active)
> + wiphy_delayed_work_queue(local->hw.wiphy,
> + &link->u.mgd.csa.switch_work,
> + link->u.mgd.csa.time -
> + jiffies);
> + }
> +
> for_each_set_bit(link_id, &add, IEEE80211_MLD_MAX_NUM_LINKS) {
> struct ieee80211_link_data *link;
>
Could you also update the description of ieee80211_set_active_links() (include/net/mac80211.h) to align the changes?
I think it would be like:
change_vif_links(0x11)
assign_vif_chanctx(link_id=4)
change_sta_links(0x11) for each affected STA (the AP)
[...]
change_sta_links(0x10) for each affected STA (the AP)
unassign_vif_chanctx(link_id=0)
change_vif_links(0x10)
next prev parent reply other threads:[~2024-12-05 8:38 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-05 6:59 [PATCH] wifi: mac80211: re-order unassigning channel in activate links Aditya Kumar Singh
2024-12-05 8:38 ` Zong-Zhe Yang [this message]
2024-12-05 11:10 ` Aditya Kumar Singh
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=65d22960ca6e47e19cf7c1c6a60dd72a@realtek.com \
--to=kevin_yang@realtek.com \
--cc=johannes@sipsolutions.net \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-wireless@vger.kernel.org \
--cc=quic_adisi@quicinc.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox