Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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

authored by

Ping-Ke Shih and committed by
Kalle Valo
e69ae29e a29dba47

+2 -2
+2 -2
drivers/net/wireless/realtek/rtw89/rtw8852c.c
··· 1683 1683 const struct rtw89_chan *chan, 1684 1684 enum rtw89_phy_idx phy_idx) 1685 1685 { 1686 + static const u32 ru_alloc_msk[2] = {B_P80_AT_HIGH_FREQ_RU_ALLOC_PHY0, 1687 + B_P80_AT_HIGH_FREQ_RU_ALLOC_PHY1}; 1686 1688 struct rtw89_hal *hal = &rtwdev->hal; 1687 1689 bool cck_en = chan->band_type == RTW89_BAND_2G; 1688 1690 u8 pri_ch_idx = chan->pri_ch_idx; 1689 1691 u32 mask, reg; 1690 - u32 ru_alloc_msk[2] = {B_P80_AT_HIGH_FREQ_RU_ALLOC_PHY0, 1691 - B_P80_AT_HIGH_FREQ_RU_ALLOC_PHY1}; 1692 1692 u8 ntx_path; 1693 1693 1694 1694 if (chan->band_type == RTW89_BAND_2G)