mirror of
https://github.com/morrownr/8821cu-20210916.git
synced 2024-09-07 23:56:37 +00:00
According to the makefile, it should be possible to keep roaming active: Set #bit2 of CONFIG_ROAMING_FLAG, like this: CONFIG_ROAMING_FLAG = 0x7 But, when trying out this option, it appears that active roaming is not working as expected. It only changes if the old AP is expired. This patch fixes this behaviour, but does NOT set BIT2. Reason for failure: The linked_status_chk function runs every 2 seconds. There is an internal roaming flag (need_to_roam) that is set when the current signal is below a threshold AND if it hasn't been set during a predefined time. Setting the flag also updates the last_time_roaming timestamp. If either of these fails, then the flag (need_to_roam) is cleared. This causes a race condition: 1) Threshold is too low + long last_time_roaming -> flag is set + last_time_roaming is updated. 2) Chipset starts scanning / surveying (this takes > 3 sec) 3) Conditions are rechecked: threshold is still to low, but last_time_roaming is now too recent -> flag is cleared. 4) Survey finishes, but since the flag is cleared, roaming will be ignored. The solution in this patch: Once the flag (need_to_roam) has been set, it should only be cleared if the signal strength is above the threshold. It should not be cleared based on the last_time_roaming timestamp. |
||
---|---|---|
.. | ||
crypto | ||
efuse | ||
mesh | ||
monitor | ||
wds | ||
rtw_ap.c | ||
rtw_beamforming.c | ||
rtw_br_ext.c | ||
rtw_bt_mp.c | ||
rtw_btcoex_wifionly.c | ||
rtw_btcoex.c | ||
rtw_chplan.c | ||
rtw_chplan.h | ||
rtw_cmd.c | ||
rtw_debug.c | ||
rtw_eeprom.c | ||
rtw_ft.c | ||
rtw_ieee80211.c | ||
rtw_io.c | ||
rtw_ioctl_query.c | ||
rtw_ioctl_set.c | ||
rtw_iol.c | ||
rtw_mbo.c | ||
rtw_mem.c | ||
rtw_mi.c | ||
rtw_mlme_ext.c | ||
rtw_mlme.c | ||
rtw_mp.c | ||
rtw_odm.c | ||
rtw_p2p.c | ||
rtw_pwrctrl.c | ||
rtw_recv.c | ||
rtw_rf.c | ||
rtw_rm_fsm.c | ||
rtw_rm_util.c | ||
rtw_rm.c | ||
rtw_roch.c | ||
rtw_rson.c | ||
rtw_sdio.c | ||
rtw_security.c | ||
rtw_sreset.c | ||
rtw_sta_mgt.c | ||
rtw_swcrypto.c | ||
rtw_tdls.c | ||
rtw_vht.c | ||
rtw_wapi_sms4.c | ||
rtw_wapi.c | ||
rtw_wlan_util.c | ||
rtw_wnm.c | ||
rtw_xmit.c |