mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-05 18:39:59 +00:00
wifi: rtw89: correct polling address of address CAM
Writing address to kick hardware to initialize address CAM, and then poll ready bit to determine completed. Old wrong code poll wrong register address, so it can lead error and fail to bring up interface. Signed-off-by: Ping-Ke Shih <pkshih@realtek.com> Signed-off-by: Kalle Valo <kvalo@kernel.org> Link: https://lore.kernel.org/r/20220826061011.9037-2-pkshih@realtek.com
This commit is contained in:
parent
0d466f0526
commit
ad275d0a82
1 changed files with 1 additions and 1 deletions
|
@ -1745,7 +1745,7 @@ static int addr_cam_init(struct rtw89_dev *rtwdev, u8 mac_idx)
|
|||
rtw89_write32(rtwdev, reg, val);
|
||||
|
||||
ret = read_poll_timeout(rtw89_read16, p_val, !(p_val & B_AX_ADDR_CAM_CLR),
|
||||
1, TRXCFG_WAIT_CNT, false, rtwdev, B_AX_ADDR_CAM_CLR);
|
||||
1, TRXCFG_WAIT_CNT, false, rtwdev, reg);
|
||||
if (ret) {
|
||||
rtw89_err(rtwdev, "[ERR]ADDR_CAM reset\n");
|
||||
return ret;
|
||||
|
|
Loading…
Reference in a new issue