I have two Wifi adapters connected to my desktop: a PCI express TP-Link adapter, which is crap, and a USB Netgear adapter. I don't feel like manually taking out the PCI-E adapter, so how can I set the USB one as the default, and disable the internal one?
You can use
This will show you the names of your interfaces. Then you can do
rfkill block <adapterindex> and that interface will be blocked. You can unblock again with
rfkill unblock <adapterindex>
For example, my
rfkill list gives:
my-lat wilhelm # rfkill list
0: dell-wifi: Wireless LAN Soft blocked: no Hard blocked: no 1: dell-bluetooth: Bluetooth Soft blocked: no Hard blocked: no
So I could run
rfkill block 0 or
rfkill block 1
You can add these commands to
/etc/rc.local so they will be run on every boot.
For more information see