projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a29dba4
)
wifi: rtw89: 8852c: make table of RU mask constant
author
Ping-Ke Shih
<pkshih@realtek.com>
Thu, 20 Oct 2022 05:27:02 +0000
(13:27 +0800)
committer
Kalle Valo
<kvalo@kernel.org>
Tue, 1 Nov 2022 09:25:04 +0000
(11:25 +0200)
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
drivers/net/wireless/realtek/rtw89/rtw8852c.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/realtek/rtw89/rtw8852c.c
b/drivers/net/wireless/realtek/rtw89/rtw8852c.c
index f6bcac82681664e6926a6775b6a45b0389c93329..7e208a8fdf4bbc9874c3305fe536207cb47160fd 100644
(file)
--- 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)