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.
On PowerPC64 architecture get_ra() is also present in Linux but with a
different name causing build to fail. To fix this let's rename local
get_ra() to rtl_get_ra().
Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com>
While installing, I got an error:
A required package is not installed.
Please install the following package: iw
Once the package is installed, please run "sudo ./install-driver.sh"
I believe this should be noted in the README