Linux kernel -stable discussions
 help / color / mirror / Atom feed
* [PATCH rtw-next] wifi: rtw88: fix coexistence setup for 5 GHz authentication
@ 2026-12-05 23:57 Luka Gejak
  2026-12-06  2:57 ` Ping-Ke Shih
  0 siblings, 1 reply; 2+ messages in thread
From: Luka Gejak @ 2026-12-05 23:57 UTC (permalink / raw)
  To: Ping-Ke Shih
  Cc: Kalle Valo, Yan-Hsuan Chuang, linux-wireless, Luka Gejak,
	Pablo Martínez Ríos, stable

rtw88 selects the 2.4 GHz coexistence path before authentication even
on 5 GHz. This can prevent authentication, as seen on an RTL8822BE.

Select the coexistence notification for the current band.

Fixes: 4136214f7c46 ("rtw88: add BT co-existence support")
Reported-by: Pablo Martínez Ríos <pabloriosmartinez@gmail.com>
Closes: https://lore.kernel.org/linux-wireless/CALTviDkEWERPrtc51WFB1K3Sn7wLdt6YhB=_Ck4PwBPdLcojBQ@mail.gmail.com/
Cc: stable@vger.kernel.org
Signed-off-by: Luka Gejak <luka.gejak@linux.dev>
---
 drivers/net/wireless/realtek/rtw88/mac80211.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/drivers/net/wireless/realtek/rtw88/mac80211.c b/drivers/net/wireless/realtek/rtw88/mac80211.c
index 0e4970d65958..69e8cb09b2c5 100644
--- a/drivers/net/wireless/realtek/rtw88/mac80211.c
+++ b/drivers/net/wireless/realtek/rtw88/mac80211.c
@@ -731,7 +731,10 @@ static void rtw_ops_mgd_prepare_tx(struct ieee80211_hw *hw,
 
 	mutex_lock(&rtwdev->mutex);
 	rtw_leave_lps_deep(rtwdev);
-	rtw_coex_connect_notify(rtwdev, COEX_ASSOCIATE_START);
+	if (rtwdev->hal.current_band_type == RTW_BAND_5G)
+		rtw_coex_connect_notify(rtwdev, COEX_ASSOCIATE_5G_START);
+	else
+		rtw_coex_connect_notify(rtwdev, COEX_ASSOCIATE_START);
 	rtw_chip_prepare_tx(rtwdev);
 	mutex_unlock(&rtwdev->mutex);
 }
-- 
2.56.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* RE: [PATCH rtw-next] wifi: rtw88: fix coexistence setup for 5 GHz authentication
  2026-12-05 23:57 [PATCH rtw-next] wifi: rtw88: fix coexistence setup for 5 GHz authentication Luka Gejak
@ 2026-12-06  2:57 ` Ping-Ke Shih
  0 siblings, 0 replies; 2+ messages in thread
From: Ping-Ke Shih @ 2026-12-06  2:57 UTC (permalink / raw)
  To: Luka Gejak
  Cc: Kalle Valo, Yan-Hsuan Chuang, linux-wireless@vger.kernel.org,
	Pablo Martínez Ríos, stable@vger.kernel.org

Luka Gejak <luka.gejak@linux.dev> wrote:
> @@ -731,7 +731,10 @@ static void rtw_ops_mgd_prepare_tx(struct ieee80211_hw *hw,
> 
>         mutex_lock(&rtwdev->mutex);
>         rtw_leave_lps_deep(rtwdev);
> -       rtw_coex_connect_notify(rtwdev, COEX_ASSOCIATE_START);
> +       if (rtwdev->hal.current_band_type == RTW_BAND_5G)
> +               rtw_coex_connect_notify(rtwdev, COEX_ASSOCIATE_5G_START);
> +       else
> +               rtw_coex_connect_notify(rtwdev, COEX_ASSOCIATE_START);

For the FINISH case, should it add COEX_ASSOCIATE_5G_FINISH?

>         rtw_chip_prepare_tx(rtwdev);
>         mutex_unlock(&rtwdev->mutex);
>  }
> --
> 2.56.1


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-12-06  2:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-05 23:57 [PATCH rtw-next] wifi: rtw88: fix coexistence setup for 5 GHz authentication Luka Gejak
2026-12-06  2:57 ` Ping-Ke Shih

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox