2024-03-14 10:10:13

by Johannes Berg

[permalink] [raw]
Subject: [PATCH 2/2] wifi: iwlwifi: mvm: disable MLO for the time being

From: Johannes Berg <[email protected]>

MLO ended up not really fully stable yet, we want to make
sure it works well with the ecosystem before enabling it.
Thus, remove the flag, but set WIPHY_FLAG_DISABLE_WEXT so
we don't get wireless extensions back until we enable MLO
for this hardware.

Cc: [email protected]
Reviewed-by: Miri Korenblit <[email protected]>
Signed-off-by: Johannes Berg <[email protected]>
---
drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c b/drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c
index 1935630d3def..69227954e281 100644
--- a/drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c
+++ b/drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c
@@ -360,7 +360,7 @@ int iwl_mvm_mac_setup_register(struct iwl_mvm *mvm)
if (mvm->mld_api_is_used && mvm->nvm_data->sku_cap_11be_enable &&
!iwlwifi_mod_params.disable_11ax &&
!iwlwifi_mod_params.disable_11be)
- hw->wiphy->flags |= WIPHY_FLAG_SUPPORTS_MLO;
+ hw->wiphy->flags |= WIPHY_FLAG_DISABLE_WEXT;

/* With MLD FW API, it tracks timing by itself,
* no need for any timing from the host
--
2.44.0



2024-03-14 16:08:17

by Kalle Valo

[permalink] [raw]
Subject: Re: [PATCH 2/2] wifi: iwlwifi: mvm: disable MLO for the time being

+ ath12k

Johannes Berg <[email protected]> writes:

> From: Johannes Berg <[email protected]>
>
> MLO ended up not really fully stable yet, we want to make
> sure it works well with the ecosystem before enabling it.
> Thus, remove the flag, but set WIPHY_FLAG_DISABLE_WEXT so
> we don't get wireless extensions back until we enable MLO
> for this hardware.
>
> Cc: [email protected]
> Reviewed-by: Miri Korenblit <[email protected]>
> Signed-off-by: Johannes Berg <[email protected]>
> ---
> drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c b/drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c
> index 1935630d3def..69227954e281 100644
> --- a/drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c
> +++ b/drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c
> @@ -360,7 +360,7 @@ int iwl_mvm_mac_setup_register(struct iwl_mvm *mvm)
> if (mvm->mld_api_is_used && mvm->nvm_data->sku_cap_11be_enable &&
> !iwlwifi_mod_params.disable_11ax &&
> !iwlwifi_mod_params.disable_11be)
> - hw->wiphy->flags |= WIPHY_FLAG_SUPPORTS_MLO;
> + hw->wiphy->flags |= WIPHY_FLAG_DISABLE_WEXT;

I think we should add the same for ath12k, right?

--
https://patchwork.kernel.org/project/linux-wireless/list/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches

2024-03-14 16:10:07

by Johannes Berg

[permalink] [raw]
Subject: Re: [PATCH 2/2] wifi: iwlwifi: mvm: disable MLO for the time being

On Thu, 2024-03-14 at 18:08 +0200, Kalle Valo wrote:
>
> > - hw->wiphy->flags |= WIPHY_FLAG_SUPPORTS_MLO;
> > + hw->wiphy->flags |= WIPHY_FLAG_DISABLE_WEXT;
>
> I think we should add the same for ath12k, right?
>

It's really up to you, I think. I'm hoping to even get this into stable,
FWIW.

The biggest issue here was our firmware, but the stack is also missing
some things, e.g. we see CQM problems (warnings?) if you actually use
multi-link "in the real world".

johannes

2024-03-14 16:34:30

by Jeff Johnson

[permalink] [raw]
Subject: Re: [PATCH 2/2] wifi: iwlwifi: mvm: disable MLO for the time being

On 3/14/2024 9:09 AM, Johannes Berg wrote:
> On Thu, 2024-03-14 at 18:08 +0200, Kalle Valo wrote:
>>
>>> - hw->wiphy->flags |= WIPHY_FLAG_SUPPORTS_MLO;
>>> + hw->wiphy->flags |= WIPHY_FLAG_DISABLE_WEXT;
>>
>> I think we should add the same for ath12k, right?
>>
>
> It's really up to you, I think. I'm hoping to even get this into stable,
> FWIW.
>
> The biggest issue here was our firmware, but the stack is also missing
> some things, e.g. we see CQM problems (warnings?) if you actually use
> multi-link "in the real world".

what does it mean "disable wext" if we are a mac80211 driver that doesn't
utilize wext?


2024-03-14 16:36:35

by Johannes Berg

[permalink] [raw]
Subject: Re: [PATCH 2/2] wifi: iwlwifi: mvm: disable MLO for the time being

>
> what does it mean "disable wext" if we are a mac80211 driver that doesn't
> utilize wext?
>

You don't have a choice about wireless extension support - cfg80211 will
support wext for any non-MLO drivers.

However now we're faced with the situation where we have devices today
that enable MLO, and thus don't have wext. But if we disable MLO, then
those devices would get wext, and then when we later enable MLO again,
they'd lose wext again ... all that seems very unreasonable, and more
likely to lead to complaints than "new device doesn't support wext",
hence the first patch and disabling it explicitly for a device that will
again get MLO later.

johannes

2024-03-14 16:39:12

by Kalle Valo

[permalink] [raw]
Subject: Re: [PATCH 2/2] wifi: iwlwifi: mvm: disable MLO for the time being

Johannes Berg <[email protected]> writes:

> On Thu, 2024-03-14 at 18:08 +0200, Kalle Valo wrote:
>>
>> > - hw->wiphy->flags |= WIPHY_FLAG_SUPPORTS_MLO;
>> > + hw->wiphy->flags |= WIPHY_FLAG_DISABLE_WEXT;
>>
>> I think we should add the same for ath12k, right?
>>
>
> It's really up to you, I think. I'm hoping to even get this into stable,
> FWIW.

ath12k doesn't support MLO yet but I feel that disabling wext already
now would be consistent from user's point of view.

--
https://patchwork.kernel.org/project/linux-wireless/list/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches

2024-03-14 16:40:29

by Johannes Berg

[permalink] [raw]
Subject: Re: [PATCH 2/2] wifi: iwlwifi: mvm: disable MLO for the time being

On Thu, 2024-03-14 at 18:39 +0200, Kalle Valo wrote:
> Johannes Berg <[email protected]> writes:
>
> > On Thu, 2024-03-14 at 18:08 +0200, Kalle Valo wrote:
> > >
> > > > - hw->wiphy->flags |= WIPHY_FLAG_SUPPORTS_MLO;
> > > > + hw->wiphy->flags |= WIPHY_FLAG_DISABLE_WEXT;
> > >
> > > I think we should add the same for ath12k, right?
> > >
> >
> > It's really up to you, I think. I'm hoping to even get this into stable,
> > FWIW.
>
> ath12k doesn't support MLO yet but I feel that disabling wext already
> now would be consistent from user's point of view.

Ah, you're in the situation where wext is still enabled now, but will
disappear when you enable MLO.

Agree then that it would make sense to disable wext right now so it's
not a software upgrade for the same hardware that removes it.

johannes

2024-03-14 16:42:54

by Jeff Johnson

[permalink] [raw]
Subject: Re: [PATCH 2/2] wifi: iwlwifi: mvm: disable MLO for the time being

On 3/14/2024 9:39 AM, Kalle Valo wrote:
> Johannes Berg <[email protected]> writes:
>
>> On Thu, 2024-03-14 at 18:08 +0200, Kalle Valo wrote:
>>>
>>>> - hw->wiphy->flags |= WIPHY_FLAG_SUPPORTS_MLO;
>>>> + hw->wiphy->flags |= WIPHY_FLAG_DISABLE_WEXT;
>>>
>>> I think we should add the same for ath12k, right?
>>>
>>
>> It's really up to you, I think. I'm hoping to even get this into stable,
>> FWIW.
>
> ath12k doesn't support MLO yet but I feel that disabling wext already
> now would be consistent from user's point of view.

Now that I understand what this is doing I completely agree. We should prevent
the use of wext with ath12k.

/jeff


2024-03-14 16:45:07

by Kalle Valo

[permalink] [raw]
Subject: Re: [PATCH 2/2] wifi: iwlwifi: mvm: disable MLO for the time being

Johannes Berg <[email protected]> writes:

> On Thu, 2024-03-14 at 18:39 +0200, Kalle Valo wrote:
>> Johannes Berg <[email protected]> writes:
>>
>> > On Thu, 2024-03-14 at 18:08 +0200, Kalle Valo wrote:
>> > >
>> > > > - hw->wiphy->flags |= WIPHY_FLAG_SUPPORTS_MLO;
>> > > > + hw->wiphy->flags |= WIPHY_FLAG_DISABLE_WEXT;
>> > >
>> > > I think we should add the same for ath12k, right?
>> > >
>> >
>> > It's really up to you, I think. I'm hoping to even get this into stable,
>> > FWIW.
>>
>> ath12k doesn't support MLO yet but I feel that disabling wext already
>> now would be consistent from user's point of view.
>
> Ah, you're in the situation where wext is still enabled now, but will
> disappear when you enable MLO.

Exactly.

> Agree then that it would make sense to disable wext right now so it's
> not a software upgrade for the same hardware that removes it.

Good, thanks for confirming.

--
https://patchwork.kernel.org/project/linux-wireless/list/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches

2024-03-14 18:48:07

by Kalle Valo

[permalink] [raw]
Subject: Re: [PATCH 2/2] wifi: iwlwifi: mvm: disable MLO for the time being

Jeff Johnson <[email protected]> writes:

> On 3/14/2024 9:39 AM, Kalle Valo wrote:
>> Johannes Berg <[email protected]> writes:
>>
>>> On Thu, 2024-03-14 at 18:08 +0200, Kalle Valo wrote:
>>>>
>>>>> - hw->wiphy->flags |= WIPHY_FLAG_SUPPORTS_MLO;
>>>>> + hw->wiphy->flags |= WIPHY_FLAG_DISABLE_WEXT;
>>>>
>>>> I think we should add the same for ath12k, right?
>>>>
>>>
>>> It's really up to you, I think. I'm hoping to even get this into stable,
>>> FWIW.
>>
>> ath12k doesn't support MLO yet but I feel that disabling wext already
>> now would be consistent from user's point of view.
>
> Now that I understand what this is doing I completely agree. We should prevent
> the use of wext with ath12k.

And thinking more about this I think it would be good that other drivers
supporting Wi-Fi 7 hardware do the same until they also support MLO. Of
course Wi-Fi 6 and older hardware should still support wext,
unfortunately :/

--
https://patchwork.kernel.org/project/linux-wireless/list/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches