You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
50 lines
1.8 KiB
50 lines
1.8 KiB
From 04d625bd28b099ff6205b5211c6514ce7b0bfd56 Mon Sep 17 00:00:00 2001
|
|
From: =?UTF-8?q?=C3=8D=C3=B1igo=20Huguet?= <ihuguet@redhat.com>
|
|
Date: Wed, 24 May 2023 15:00:27 +0200
|
|
Subject: [PATCH 044/142] wifi: rtw89: 8852c: make table of RU mask constant
|
|
MIME-Version: 1.0
|
|
Content-Type: text/plain; charset=UTF-8
|
|
Content-Transfer-Encoding: 8bit
|
|
|
|
Bugzilla: https://bugzilla.redhat.com/2207499
|
|
|
|
commit e69ae29e00cec66609bd555398aa4f59f2a9ae84
|
|
Author: Ping-Ke Shih <pkshih@realtek.com>
|
|
Date: Thu Oct 20 13:27:02 2022 +0800
|
|
|
|
wifi: rtw89: 8852c: make table of RU mask constant
|
|
|
|
This table must be constant, so change it as expectation.
|
|
|
|
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
|
|
Signed-off-by: Kalle Valo <kvalo@kernel.org>
|
|
Link: https://lore.kernel.org/r/20221020052702.33988-2-pkshih@realtek.com
|
|
|
|
Signed-off-by: Íñigo Huguet <ihuguet@redhat.com>
|
|
---
|
|
drivers/net/wireless/realtek/rtw89/rtw8852c.c | 4 ++--
|
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/drivers/net/wireless/realtek/rtw89/rtw8852c.c b/drivers/net/wireless/realtek/rtw89/rtw8852c.c
|
|
index f6bcac8268166..7e208a8fdf4bb 100644
|
|
--- a/drivers/net/wireless/realtek/rtw89/rtw8852c.c
|
|
+++ b/drivers/net/wireless/realtek/rtw89/rtw8852c.c
|
|
@@ -1683,12 +1683,12 @@ static void rtw8852c_set_channel_bb(struct rtw89_dev *rtwdev,
|
|
const struct rtw89_chan *chan,
|
|
enum rtw89_phy_idx phy_idx)
|
|
{
|
|
+ static const u32 ru_alloc_msk[2] = {B_P80_AT_HIGH_FREQ_RU_ALLOC_PHY0,
|
|
+ B_P80_AT_HIGH_FREQ_RU_ALLOC_PHY1};
|
|
struct rtw89_hal *hal = &rtwdev->hal;
|
|
bool cck_en = chan->band_type == RTW89_BAND_2G;
|
|
u8 pri_ch_idx = chan->pri_ch_idx;
|
|
u32 mask, reg;
|
|
- u32 ru_alloc_msk[2] = {B_P80_AT_HIGH_FREQ_RU_ALLOC_PHY0,
|
|
- B_P80_AT_HIGH_FREQ_RU_ALLOC_PHY1};
|
|
u8 ntx_path;
|
|
|
|
if (chan->band_type == RTW89_BAND_2G)
|
|
--
|
|
2.13.6
|
|
|