Ping-Ke Shih <pkshih@xxxxxxxxxxx> wrote: > From: Kuan-Chung Chen <damon.chen@xxxxxxxxxxx> > > In ideal scenario, AP's beacon should transmit at the Target Beacon > Transmission Time (TBTT). However, in practice, beacon may be slightly > off-schedule. This beacon "drift" prevents the firmware from receiving > beacon at the expected TBTT, leading to connection disruptions. > > To address this, we introduce beacon tracking mechanism to enhance overall > connection stability. This mechanism executes the following steps in each > cycle (2 seconds): 1) Based on the last 32 received beacons, compute the > minimum TBTT offset to use for the next cycle 2) Using the same 32 beacons, > calculate the drift of each. A histogram is plotted, and outliers are > identified using a boxplot. 3) According to the statistical results from > the second step, a maximum receive window size (beacon timeout) is selected > to cover approximately 80% of the beacons and applied to the next cycle. > > Signed-off-by: Kuan-Chung Chen <damon.chen@xxxxxxxxxxx> > Signed-off-by: Ping-Ke Shih <pkshih@xxxxxxxxxxx> 8 patch(es) applied to rtw-next branch of rtw.git, thanks. d360551f265e wifi: rtw89: introduce beacon tracking to improve connection stability 194b7ce98247 wifi: rtw89: debug: add beacon_info debugfs 38846585f9df wifi: rtw89: wow: remove notify during WoWLAN net-detect b521685da35e wifi: rtw89: 8851b: rfk: update IQK TIA setting 5b2341efbb7a wifi: rtw89: 8851b: rfk: update TX wideband IQK 46ac5412e406 wifi: rtw89: 8852c: check LPS H2C command complete by C2H reg instead of done ack c4c16c88e784 wifi: rtw89: fix BSSID comparison for non-transmitted BSSID bf02a01d1dd5 wifi: rtw89: fix group frames loss when connected to non-transmitted BSSID --- https://github.com/pkshih/rtw.git