Unfortunately, there’s currently a regression in 4.0.9 which makes wifi on RTL8821BE based devices unstable. Please see the following thread for a potential workaround until the issue gets fixed:
Please also provide us with a diagnostic after you have followed the instructions there. Do this by opening Terminal and running:
eos-diagnostics
Then, upload the generated file here in this thread.