Blacklisting Wifi kernel modules

If Wifi keeps on disconnecting on Linux it could be because of conflicting kernel modules. One has to be blacklisted:

Remove corresponding kernel modules:

sudo modprobe -rf rt2800usb
sudo modprobe -rf rt2870sta

Reload kernel module:

sudo modprobe rt2870sta

Finally, put blacklist rt2800usb in /etc/modprobe.d/blacklist.conf

1