mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 20:07:46 +09:00
rtw88: fix NSS of hw_cap
[ Upstream commit4f5bb7ff8b] 8822C is a 2x2 11ac chip, and then NSS must be less or equal to 2. However, current nss of hw cap is 3, likes hw cap: hci=0x0f, bw=0x07, ptcl=0x03, ant_num=7, nss=3 This commit adds constraint to make sure NSS <= rf_path_num, and result looks like hw cap: hci=0x0f, bw=0x07, ptcl=0x03, ant_num=7, nss=2 Fixes:e3037485c6("rtw88: new Realtek 802.11ac driver") Signed-off-by: Ping-Ke Shih <pkshih@realtek.com> Signed-off-by: Yan-Hsuan Chuang <yhchuang@realtek.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
849600bba2
commit
7645298098
@@ -1020,7 +1020,8 @@ static int rtw_dump_hw_feature(struct rtw_dev *rtwdev)
|
||||
|
||||
rtw_hw_config_rf_ant_num(rtwdev, efuse->hw_cap.ant_num);
|
||||
|
||||
if (efuse->hw_cap.nss == EFUSE_HW_CAP_IGNORE)
|
||||
if (efuse->hw_cap.nss == EFUSE_HW_CAP_IGNORE ||
|
||||
efuse->hw_cap.nss > rtwdev->hal.rf_path_num)
|
||||
efuse->hw_cap.nss = rtwdev->hal.rf_path_num;
|
||||
|
||||
rtw_dbg(rtwdev, RTW_DBG_EFUSE,
|
||||
|
||||
Reference in New Issue
Block a user