HP 14-an062sa with RTL8723BE
Here's a tail of woe.
A friend asked me to install linux on a W10 laptop. I decided to try Mint.
Installed fine and all was good. Except complaints that the wifi kept disconnecting etc.
On inspection it clearly did, and it appear the kernel driver for version 4.4.x does not work correctly. There are lots of posts on this and how to download and compile the Realtek driver.
Unfortunately on upgrade to the 4.8.x kernel it all breaks again and will not compile. Allegedly the kernel includes a newer version of the driver.
I unloaded and reloaded it, but again the usual tales of woe.
I tried the suggested ant_sel=2 and that was a fail.
Eventually out of desperation I tried ant_sel=1 and Lo ! the damn thing fired into life.
To persist across reboots do the following
echo "options rtl8723be ant_sel=2" | sudo tee /etc/modprobe.d/50-rtl8723be.conf
That should fix it.