The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* [PATCH] wifi: rtw89: 8851b: fix swapped DPK channel/bandwidth backup fields
@ 2026-08-07  8:10 Yi Cong
  2026-08-10  3:30 ` Ping-Ke Shih
  0 siblings, 1 reply; 2+ messages in thread
From: Yi Cong @ 2026-08-07  8:10 UTC (permalink / raw)
  To: pkshih; +Cc: kvalo, linux-wireless, linux-kernel, Yi Cong, stable

From: Yi Cong <yicong@kylinos.cn>

The .ch and .bw backup fields are swapped; .ch should store the channel
and .bw the bandwidth, matching all other chips.

Fixes: 0194a95cbe721a ("wifi: rtw89: 8851b: rfk: add DPK")
Cc: stable@vger.kernel.org
Signed-off-by: Yi Cong <yicong@kylinos.cn>
---
 drivers/net/wireless/realtek/rtw89/rtw8851b_rfk.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/net/wireless/realtek/rtw89/rtw8851b_rfk.c b/drivers/net/wireless/realtek/rtw89/rtw8851b_rfk.c
index c63f0e6364dad..71342461f2b30 100644
--- a/drivers/net/wireless/realtek/rtw89/rtw8851b_rfk.c
+++ b/drivers/net/wireless/realtek/rtw89/rtw8851b_rfk.c
@@ -1895,8 +1895,8 @@ static void _dpk_information(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy,
 	u8 kidx = dpk->cur_idx[path];
 
 	dpk->bp[path][kidx].band = chan->band_type;
-	dpk->bp[path][kidx].ch = chan->band_width;
-	dpk->bp[path][kidx].bw = chan->channel;
+	dpk->bp[path][kidx].ch = chan->channel;
+	dpk->bp[path][kidx].bw = chan->band_width;
 
 	rtw89_debug(rtwdev, RTW89_DBG_RFK,
 		    "[DPK] S%d[%d] (PHY%d): TSSI %s/ DBCC %s/ %s/ CH%d/ %s\n",
-- 
2.25.1


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

* RE: [PATCH] wifi: rtw89: 8851b: fix swapped DPK channel/bandwidth backup fields
  2026-08-07  8:10 [PATCH] wifi: rtw89: 8851b: fix swapped DPK channel/bandwidth backup fields Yi Cong
@ 2026-08-10  3:30 ` Ping-Ke Shih
  0 siblings, 0 replies; 2+ messages in thread
From: Ping-Ke Shih @ 2026-08-10  3:30 UTC (permalink / raw)
  To: Yi Cong
  Cc: kvalo@kernel.org, linux-wireless@vger.kernel.org,
	linux-kernel@vger.kernel.org, Yi Cong, stable@vger.kernel.org

Yi Cong <cong.yi@linux.dev> wrote:
> From: Yi Cong <yicong@kylinos.cn>
> 
> The .ch and .bw backup fields are swapped; .ch should store the channel
> and .bw the bandwidth, matching all other chips.
> 
> Fixes: 0194a95cbe721a ("wifi: rtw89: 8851b: rfk: add DPK")
> Cc: stable@vger.kernel.org
> Signed-off-by: Yi Cong <yicong@kylinos.cn>

Acked-by: Ping-Ke Shih <pkshih@realtek.com>



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

end of thread, other threads:[~2026-08-10  3:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-07  8:10 [PATCH] wifi: rtw89: 8851b: fix swapped DPK channel/bandwidth backup fields Yi Cong
2026-08-10  3:30 ` 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