]> www.infradead.org Git - users/jedix/linux-maple.git/commit
wifi: rtw88: Fix the random "error beacon valid" messages for USB
authorBitterblue Smith <rtl8821cerfe2@gmail.com>
Sat, 10 May 2025 13:12:34 +0000 (16:12 +0300)
committerPing-Ke Shih <pkshih@realtek.com>
Fri, 16 May 2025 00:40:46 +0000 (08:40 +0800)
commitf24d0d8c3cd7e4237f802c4d2f3bd4ac04572948
treef44f9adee8f3eab7d182b2d480c86f5524044c7d
parent80fe0bc1659c0ccc79d082e426fa376be5df9c04
wifi: rtw88: Fix the random "error beacon valid" messages for USB

All the USB devices have a problem in AP mode: uploading the updated
beacon to the chip's reserved page can randomly fail:

[34996.474304] rtw88_8723du 1-2:1.2: error beacon valid
[34996.474788] rtw88_8723du 1-2:1.2: failed to download drv rsvd page
[34999.956369] rtw88_8723du 1-2:1.2: error beacon valid
[34999.956846] rtw88_8723du 1-2:1.2: failed to download drv rsvd page
[34999.956855] rtw88_8723du 1-2:1.2: failed to download beacon
[35017.978296] rtw88_8723du 1-2:1.2: error beacon valid
[35017.978805] rtw88_8723du 1-2:1.2: failed to download drv rsvd page
[35017.978823] rtw88_8723du 1-2:1.2: failed to download beacon
[35023.200395] rtw88_8723du 1-2:1.2: error beacon valid
[35023.200869] rtw88_8723du 1-2:1.2: failed to download drv rsvd page
[35023.200875] rtw88_8723du 1-2:1.2: failed to download beacon
[35478.680547] rtw88_8723du 1-2:1.2: error beacon valid
[35478.681023] rtw88_8723du 1-2:1.2: failed to download drv rsvd page

Disable some beacon-related hardware functions before uploading the
beacon and enable them again after.

Tested with RTL8723DU, RTL8812BU, RTL8822CE.

Signed-off-by: Bitterblue Smith <rtl8821cerfe2@gmail.com>
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Link: https://patch.msgid.link/c248c40a-d432-47ed-90e0-d81ee6c32464@gmail.com
drivers/net/wireless/realtek/rtw88/fw.c