]> www.infradead.org Git - users/jedix/linux-maple.git/commit
wifi: rtw88: Detect beacon loss with chips other than 8822c
authorBitterblue Smith <rtl8821cerfe2@gmail.com>
Wed, 23 Oct 2024 14:13:45 +0000 (17:13 +0300)
committerPing-Ke Shih <pkshih@realtek.com>
Tue, 29 Oct 2024 04:01:42 +0000 (12:01 +0800)
commit57289d30cd2ae315ab9b28213d63d1dbf8570cf3
tree1c9df61cf0ca1c9281d8e70004d05650c7a933eb
parent85bf3041a0ea40a60b5295749268e179f056546a
wifi: rtw88: Detect beacon loss with chips other than 8822c

The driver is supposed to avoid entering LPS (power saving) when there
is beacon loss, but only RTL8822C detects the beacon loss (because it
has beacon filtering in the firmware).

Detect beacon loss with the other chips by checking if we received less
than half the expected number of beacons in the last 2-second interval.

This gets rid of the occasional "failed to get tx report from firmware"
warnings with RTL8821AU. It may also avoid some disconnections.

Signed-off-by: Bitterblue Smith <rtl8821cerfe2@gmail.com>
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Link: https://patch.msgid.link/f52b2fcf-bf94-48bc-89bd-e55ebc3a2f2d@gmail.com
drivers/net/wireless/realtek/rtw88/main.c