All of lore.kernel.org
 help / color / mirror / Atom feed
From: Luka Gejak <luka.gejak@linux.dev>
To: Ping-Ke Shih <pkshih@realtek.com>
Cc: "Kalle Valo" <kvalo@kernel.org>,
	"Yan-Hsuan Chuang" <yhchuang@realtek.com>,
	linux-wireless@vger.kernel.org,
	"Luka Gejak" <luka.gejak@linux.dev>,
	"Pablo Martínez Ríos" <pabloriosmartinez@gmail.com>,
	stable@vger.kernel.org
Subject: [PATCH rtw-next] wifi: rtw88: fix coexistence setup for 5 GHz authentication
Date: Sun,  6 Dec 2026 00:57:16 +0100	[thread overview]
Message-ID: <20261205235716.66066-1-luka.gejak@linux.dev> (raw)

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


                 reply	other threads:[~2026-12-05 23:57 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20261205235716.66066-1-luka.gejak@linux.dev \
    --to=luka.gejak@linux.dev \
    --cc=kvalo@kernel.org \
    --cc=linux-wireless@vger.kernel.org \
    --cc=pabloriosmartinez@gmail.com \
    --cc=pkshih@realtek.com \
    --cc=stable@vger.kernel.org \
    --cc=yhchuang@realtek.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.