From: Aditya Kumar Singh <aditya.kumar.singh@oss.qualcomm.com>
To: Johannes Berg <johannes@sipsolutions.net>
Cc: linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH wireless-next 1/2] wifi: mac80211: validate SCAN_FLAG_AP in scan request during MLO
Date: Tue, 13 May 2025 16:02:38 +0530 [thread overview]
Message-ID: <77fe950d-c5af-4c28-8b0b-bd1aa08d885a@oss.qualcomm.com> (raw)
In-Reply-To: <296b9aa887022258f8ec8e4f352822c24b41ab82.camel@sipsolutions.net>
On 5/13/2025 3:51 PM, Johannes Berg wrote:
> On Tue, 2025-05-13 at 15:47 +0530, Aditya Kumar Singh wrote:
>> On 5/13/2025 12:47 PM, Johannes Berg wrote:
>>> On Tue, 2025-05-13 at 09:26 +0530, Aditya Kumar Singh wrote:
>>>>
>>>> - if (sdata->deflink.u.ap.beacon &&
>>>> + if ((sdata->deflink.u.ap.beacon ||
>>>> + ieee80211_num_beaconing_links(sdata)) &&
>>>>
>>>
>>> Do we even still need the deflink check? Seems like
>>> num_beaconing_links() _should_ return 1 anyway even though it currently
>>> doesn't, and we need to fix that?
>>
>> If the ieee80211_num_beaconing_links() is modified then deflink check is
>> not required. Do you want to me to send a clean up for that function
>> first or would take this and later the clean up part?
>
> Given that you're targeting wireless-next for all, I guess I'd prefer
> you clean up ieee80211_num_beaconing_links() first? But no strong
> preferences.
Okay sure let me first send a clean up. So,
ieee80211_num_beaconing_links() should return 1 for non-MLO as well? And
callers should test for == 1 instead of <= 1.
>
>>> Also seems the VLAN carrier handling is broken.
>> With this patch? Or in general you are saying? HWSIM test cases seems to
>> be working fine for me with this series applied. May be there is no test
>> case to make it evident?
>
> Oh, I meant in general.
>
> So here I looked at callers of ieee80211_num_beaconing_links(), and many
> of them seemed wrong because it doesn't handle non-MLO? But now that I
> look again, I'm actually wrong, it simply always returns 0 for non-MLO,
> but the comparisons are for <=1 which makes that ... OK but unexpected I
> guess.
>
>
> But still - also unrelated to this patch - the VLAN handling here seems
> wrong?
>
Yes VLAN handling with MLO is not handled with the change which brought
this beaconing links API.
> if (ieee80211_num_beaconing_links(sdata) <= 1)
> netif_carrier_on(dev);
>
> list_for_each_entry(vlan, &sdata->u.ap.vlans, u.vlan.list)
> netif_carrier_on(vlan->dev);
>
> Shouldn't that loop be inside the ieee80211_num_beaconing_links() if?
> Also on the netif_carrier_off() side? At least someone was fixing VLAN
> vs. MLO recently, so maybe that needs fixes too.
>
Yes. MLO VLAN changes should handle this part. Since at this moment,
code does not claim to support MLO VLAN fully. So change introducing the
support should ideally handle it.
--
Aditya
next prev parent reply other threads:[~2025-05-13 10:32 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-05-13 3:56 [PATCH wireless-next 0/2] wifi: mac80211: some bug fixes in MLO scan handling Aditya Kumar Singh
2025-05-13 3:56 ` [PATCH wireless-next 1/2] wifi: mac80211: validate SCAN_FLAG_AP in scan request during MLO Aditya Kumar Singh
2025-05-13 7:17 ` Johannes Berg
2025-05-13 10:17 ` Aditya Kumar Singh
2025-05-13 10:21 ` Johannes Berg
2025-05-13 10:32 ` Aditya Kumar Singh [this message]
2025-05-13 10:48 ` Johannes Berg
2025-05-13 10:56 ` Aditya Kumar Singh
2025-05-15 18:05 ` Aditya Kumar Singh
2025-05-13 3:56 ` [PATCH wireless-next 2/2] wifi: mac80211: accept probe response on link address as well 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=77fe950d-c5af-4c28-8b0b-bd1aa08d885a@oss.qualcomm.com \
--to=aditya.kumar.singh@oss.qualcomm.com \
--cc=johannes@sipsolutions.net \
--cc=linux-kernel@vger.kernel.org \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®