Fixing wireless after Ubuntu upgrade

Yesterday we upgraded the Eee PC 1000H from Ubuntu 10.10 to 11.04. Today it was unable to connect to the wireless network. After searching a little bit on the internet, I found the reason. There is a Ralink wireless card in the netbook:

01:00.0 Network controller: Ralink corp. RT2860


When starting Linux, two sets of drivers are loaded, and apparently it messes up the network connection. The solution is easy, just put these on the blacklist (eg. /etc/modules.d/blacklist-ralink.conf):

rt2800pci
rt2800lib
rt2x00pci
rt2x00lib

After startup only this Ralink module should be loaded:

rt2860sta