* [PATCH ath-next] wifi: ath12k: Set up MLO after SSR
@ 2026-02-27 4:11 Roopni Devanathan
2026-02-27 10:33 ` Vasanthakumar Thiagarajan
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Roopni Devanathan @ 2026-02-27 4:11 UTC (permalink / raw)
To: ath12k; +Cc: linux-wireless, Ramya Gnanasekar, Roopni Devanathan
From: Ramya Gnanasekar <ramya.gnanasekar@oss.qualcomm.com>
During recovery of an MLO setup from a core reset,
ATH12K_GROUP_FLAG_REGISTERED is set because ath12k_mac_unregister is not
called during core reset. So, when an MLO setup is recovering from a core
reset, ath12k_core_mlo_setup() is skipped. Hence, the firmware will not
have information about partner links. This makes MLO association fail
after recovery.
To resolve this, call ath12k_core_mlo_setup() during recovery, to set up
MLO. Also, if MLO setup fails during recovery, call
ath12k_mac_unregister() and ath12k_mac_destroy() to unregister mac and
then tear down the mac structures.
Also, initiate MLO teardown in the hardware group stop sequence to align
with the hardware group start sequence.
Tested-on: QCN9274 hw2.0 PCI WLAN.WBE.1.6-01181-QCAHKSWPL_SILICONZ-1
Signed-off-by: Ramya Gnanasekar <ramya.gnanasekar@oss.qualcomm.com>
Signed-off-by: Roopni Devanathan <roopni.devanathan@oss.qualcomm.com>
---
drivers/net/wireless/ath/ath12k/core.c | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/drivers/net/wireless/ath/ath12k/core.c b/drivers/net/wireless/ath/ath12k/core.c
index 9dca1a0af73e..218c0a0c9699 100644
--- a/drivers/net/wireless/ath/ath12k/core.c
+++ b/drivers/net/wireless/ath/ath12k/core.c
@@ -1017,6 +1017,8 @@ static void ath12k_core_hw_group_stop(struct ath12k_hw_group *ag)
ath12k_mac_unregister(ag);
+ ath12k_mac_mlo_teardown(ag);
+
for (i = ag->num_devices - 1; i >= 0; i--) {
ab = ag->ab[i];
if (!ab)
@@ -1134,8 +1136,14 @@ static int ath12k_core_hw_group_start(struct ath12k_hw_group *ag)
lockdep_assert_held(&ag->mutex);
- if (test_bit(ATH12K_GROUP_FLAG_REGISTERED, &ag->flags))
+ if (test_bit(ATH12K_GROUP_FLAG_REGISTERED, &ag->flags)) {
+ ret = ath12k_core_mlo_setup(ag);
+ if (WARN_ON(ret)) {
+ ath12k_mac_unregister(ag);
+ goto err_mac_destroy;
+ }
goto core_pdev_create;
+ }
ret = ath12k_mac_allocate(ag);
if (WARN_ON(ret))
base-commit: 20ad0d58517073b3b683ff786c65dd3142321707
--
2.43.0
^ permalink raw reply related [flat|nested] 4+ messages in thread* Re: [PATCH ath-next] wifi: ath12k: Set up MLO after SSR
2026-02-27 4:11 [PATCH ath-next] wifi: ath12k: Set up MLO after SSR Roopni Devanathan
@ 2026-02-27 10:33 ` Vasanthakumar Thiagarajan
2026-02-27 10:35 ` Baochen Qiang
2026-03-02 21:07 ` Jeff Johnson
2 siblings, 0 replies; 4+ messages in thread
From: Vasanthakumar Thiagarajan @ 2026-02-27 10:33 UTC (permalink / raw)
To: Roopni Devanathan, ath12k; +Cc: linux-wireless, Ramya Gnanasekar
On 2/27/2026 9:41 AM, Roopni Devanathan wrote:
> From: Ramya Gnanasekar <ramya.gnanasekar@oss.qualcomm.com>
>
> During recovery of an MLO setup from a core reset,
> ATH12K_GROUP_FLAG_REGISTERED is set because ath12k_mac_unregister is not
> called during core reset. So, when an MLO setup is recovering from a core
> reset, ath12k_core_mlo_setup() is skipped. Hence, the firmware will not
> have information about partner links. This makes MLO association fail
> after recovery.
>
> To resolve this, call ath12k_core_mlo_setup() during recovery, to set up
> MLO. Also, if MLO setup fails during recovery, call
> ath12k_mac_unregister() and ath12k_mac_destroy() to unregister mac and
> then tear down the mac structures.
>
> Also, initiate MLO teardown in the hardware group stop sequence to align
> with the hardware group start sequence.
>
> Tested-on: QCN9274 hw2.0 PCI WLAN.WBE.1.6-01181-QCAHKSWPL_SILICONZ-1
>
> Signed-off-by: Ramya Gnanasekar <ramya.gnanasekar@oss.qualcomm.com>
> Signed-off-by: Roopni Devanathan <roopni.devanathan@oss.qualcomm.com>
Reviewed-by: Vasanthakumar Thiagarajan <vasanthakumar.thiagarajan@oss.qualcomm.com>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH ath-next] wifi: ath12k: Set up MLO after SSR
2026-02-27 4:11 [PATCH ath-next] wifi: ath12k: Set up MLO after SSR Roopni Devanathan
2026-02-27 10:33 ` Vasanthakumar Thiagarajan
@ 2026-02-27 10:35 ` Baochen Qiang
2026-03-02 21:07 ` Jeff Johnson
2 siblings, 0 replies; 4+ messages in thread
From: Baochen Qiang @ 2026-02-27 10:35 UTC (permalink / raw)
To: Roopni Devanathan, ath12k; +Cc: linux-wireless, Ramya Gnanasekar
On 2/27/2026 12:11 PM, Roopni Devanathan wrote:
> From: Ramya Gnanasekar <ramya.gnanasekar@oss.qualcomm.com>
>
> During recovery of an MLO setup from a core reset,
> ATH12K_GROUP_FLAG_REGISTERED is set because ath12k_mac_unregister is not
> called during core reset. So, when an MLO setup is recovering from a core
> reset, ath12k_core_mlo_setup() is skipped. Hence, the firmware will not
> have information about partner links. This makes MLO association fail
> after recovery.
>
> To resolve this, call ath12k_core_mlo_setup() during recovery, to set up
> MLO. Also, if MLO setup fails during recovery, call
> ath12k_mac_unregister() and ath12k_mac_destroy() to unregister mac and
> then tear down the mac structures.
>
> Also, initiate MLO teardown in the hardware group stop sequence to align
> with the hardware group start sequence.
>
> Tested-on: QCN9274 hw2.0 PCI WLAN.WBE.1.6-01181-QCAHKSWPL_SILICONZ-1
>
> Signed-off-by: Ramya Gnanasekar <ramya.gnanasekar@oss.qualcomm.com>
> Signed-off-by: Roopni Devanathan <roopni.devanathan@oss.qualcomm.com>
> ---
> drivers/net/wireless/ath/ath12k/core.c | 10 +++++++++-
> 1 file changed, 9 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/net/wireless/ath/ath12k/core.c b/drivers/net/wireless/ath/ath12k/core.c
> index 9dca1a0af73e..218c0a0c9699 100644
> --- a/drivers/net/wireless/ath/ath12k/core.c
> +++ b/drivers/net/wireless/ath/ath12k/core.c
> @@ -1017,6 +1017,8 @@ static void ath12k_core_hw_group_stop(struct ath12k_hw_group *ag)
>
> ath12k_mac_unregister(ag);
>
> + ath12k_mac_mlo_teardown(ag);
> +
> for (i = ag->num_devices - 1; i >= 0; i--) {
> ab = ag->ab[i];
> if (!ab)
> @@ -1134,8 +1136,14 @@ static int ath12k_core_hw_group_start(struct ath12k_hw_group *ag)
>
> lockdep_assert_held(&ag->mutex);
>
> - if (test_bit(ATH12K_GROUP_FLAG_REGISTERED, &ag->flags))
> + if (test_bit(ATH12K_GROUP_FLAG_REGISTERED, &ag->flags)) {
> + ret = ath12k_core_mlo_setup(ag);
> + if (WARN_ON(ret)) {
> + ath12k_mac_unregister(ag);
> + goto err_mac_destroy;
> + }
> goto core_pdev_create;
> + }
>
> ret = ath12k_mac_allocate(ag);
> if (WARN_ON(ret))
>
> base-commit: 20ad0d58517073b3b683ff786c65dd3142321707
Reviewed-by: Baochen Qiang <baochen.qiang@oss.qualcomm.com>
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: [PATCH ath-next] wifi: ath12k: Set up MLO after SSR
2026-02-27 4:11 [PATCH ath-next] wifi: ath12k: Set up MLO after SSR Roopni Devanathan
2026-02-27 10:33 ` Vasanthakumar Thiagarajan
2026-02-27 10:35 ` Baochen Qiang
@ 2026-03-02 21:07 ` Jeff Johnson
2 siblings, 0 replies; 4+ messages in thread
From: Jeff Johnson @ 2026-03-02 21:07 UTC (permalink / raw)
To: ath12k, Roopni Devanathan; +Cc: linux-wireless, Ramya Gnanasekar
On Fri, 27 Feb 2026 09:41:27 +0530, Roopni Devanathan wrote:
> During recovery of an MLO setup from a core reset,
> ATH12K_GROUP_FLAG_REGISTERED is set because ath12k_mac_unregister is not
> called during core reset. So, when an MLO setup is recovering from a core
> reset, ath12k_core_mlo_setup() is skipped. Hence, the firmware will not
> have information about partner links. This makes MLO association fail
> after recovery.
>
> [...]
Applied, thanks!
[1/1] wifi: ath12k: Set up MLO after SSR
commit: f33a8e41826831fc8ceb5f62833488cd9388ed59
Best regards,
--
Jeff Johnson <jeff.johnson@oss.qualcomm.com>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2026-03-02 21:07 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-02-27 4:11 [PATCH ath-next] wifi: ath12k: Set up MLO after SSR Roopni Devanathan
2026-02-27 10:33 ` Vasanthakumar Thiagarajan
2026-02-27 10:35 ` Baochen Qiang
2026-03-02 21:07 ` Jeff Johnson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox