1
0
mirror of https://github.com/morrownr/8821cu-20210916.git synced 2024-11-16 02:40:41 +00:00
8821cu-20210916/core
Theo Debrouwere 154cdb82e3 Bugfix: fix active roaming capability.
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.
2023-04-24 18:43:19 +02:00
..
crypto initial commit 2022-11-17 08:26:57 -06:00
efuse various minor updates 2023-02-09 09:11:23 -06:00
mesh Correct executable bits 2022-12-09 11:08:52 +02:00
monitor various minor updates 2023-02-09 09:11:23 -06:00
wds initial commit 2022-11-17 08:26:57 -06:00
rtw_ap.c cleanup code and minor mods to docs 2023-02-23 14:29:27 -06:00
rtw_beamforming.c initial commit 2022-11-17 08:26:57 -06:00
rtw_br_ext.c various minor updates 2023-02-09 09:11:23 -06:00
rtw_bt_mp.c initial commit 2022-11-17 08:26:57 -06:00
rtw_btcoex_wifionly.c initial commit 2022-11-17 08:26:57 -06:00
rtw_btcoex.c initial commit 2022-11-17 08:26:57 -06:00
rtw_chplan.c initial commit 2022-11-17 08:26:57 -06:00
rtw_chplan.h initial commit 2022-11-17 08:26:57 -06:00
rtw_cmd.c Correct executable bits 2022-12-09 11:08:52 +02:00
rtw_debug.c detect previously dkms installed driver 2022-12-18 01:05:54 -06:00
rtw_eeprom.c initial commit 2022-11-17 08:26:57 -06:00
rtw_ft.c Correct executable bits 2022-12-09 11:08:52 +02:00
rtw_ieee80211.c Correct executable bits 2022-12-09 11:08:52 +02:00
rtw_io.c initial commit 2022-11-17 08:26:57 -06:00
rtw_ioctl_query.c initial commit 2022-11-17 08:26:57 -06:00
rtw_ioctl_set.c initial commit 2022-11-17 08:26:57 -06:00
rtw_iol.c initial commit 2022-11-17 08:26:57 -06:00
rtw_mbo.c Correct executable bits 2022-12-09 11:08:52 +02:00
rtw_mem.c initial commit 2022-11-17 08:26:57 -06:00
rtw_mi.c initial commit 2022-11-17 08:26:57 -06:00
rtw_mlme_ext.c Bugfix: fix active roaming capability. 2023-04-24 18:43:19 +02:00
rtw_mlme.c Correct executable bits 2022-12-09 11:08:52 +02:00
rtw_mp.c initial commit 2022-11-17 08:26:57 -06:00
rtw_odm.c cleanup 2023-03-14 07:57:22 -05:00
rtw_p2p.c initial commit 2022-11-17 08:26:57 -06:00
rtw_pwrctrl.c cleanup logging 2022-12-29 16:14:24 -06:00
rtw_recv.c cleanup 2023-03-14 07:57:22 -05:00
rtw_rf.c initial commit 2022-11-17 08:26:57 -06:00
rtw_rm_fsm.c initial commit 2022-11-17 08:26:57 -06:00
rtw_rm_util.c initial commit 2022-11-17 08:26:57 -06:00
rtw_rm.c initial commit 2022-11-17 08:26:57 -06:00
rtw_roch.c initial commit 2022-11-17 08:26:57 -06:00
rtw_rson.c initial commit 2022-11-17 08:26:57 -06:00
rtw_sdio.c initial commit 2022-11-17 08:26:57 -06:00
rtw_security.c initial commit 2022-11-17 08:26:57 -06:00
rtw_sreset.c initial commit 2022-11-17 08:26:57 -06:00
rtw_sta_mgt.c initial commit 2022-11-17 08:26:57 -06:00
rtw_swcrypto.c initial commit 2022-11-17 08:26:57 -06:00
rtw_tdls.c initial commit 2022-11-17 08:26:57 -06:00
rtw_vht.c Correct executable bits 2022-12-09 11:08:52 +02:00
rtw_wapi_sms4.c initial commit 2022-11-17 08:26:57 -06:00
rtw_wapi.c initial commit 2022-11-17 08:26:57 -06:00
rtw_wlan_util.c Correct executable bits 2022-12-09 11:08:52 +02:00
rtw_wnm.c Correct executable bits 2022-12-09 11:08:52 +02:00
rtw_xmit.c monitor mode enhancements 2022-12-27 16:12:01 -06:00