How to make the effect of these commands permanent so that it persists even after rebooting?
sudo modprobe -rv rtl8723be
sudo modprobe -v rtl8723be ant_sel=2
Note: echo "options rtl8723be ant_sel=2" | sudo tee /etc/modprobe.d/50-rtl8723be.conf does not work.
I followed this tutorial to solve a problem with weak wi-fi signal.