disable wifi adapter linux

Wifi – Force disable an overzealous adapter

Qualcomm QCA6174

A while ago, I had removed the screen from my main laptop. You read that right. The MSI GS72 had heating issues, or should I say cooling issues? Long story short, the screen sides started to crack and open up from the heat.

That is when I took away the screen. Little did I know, that the antennas for my wifi card were along the sides of the screen. By then, the wifi card had little or no reception.

TP-Link Archer T4U

I bought the new TP-Link Archer T4U. You can read my thoughts about it in another post here.

Reluctance to deactivate

The integrated wifi adapter was active again. I don’t know why. And the annoying part was, the new wifi adapter was being deactivated and only the old one was active. Needless to say, it was a nightmare. It kept disconnecting or the latency went up and down.

I tried:

sudo ifconfig wlp2s0 down

sudo ifconfig wlxf4f26d14afd5 up

It simply wasn’t being deactivated.

Solution

If like me, you are facing the same issues. The solution is to deactivate the default wifi card from coming online automatically.

We modify the file for network interfaces:

sudo vi /etc/network/interfaces

We add that line:

iface wlp2s0 inet manual

Then we have to restart network services for the changes to apply:

sudo service network-manager restart

deactivate wifi card

You will then see : wlp2s0 (Qualcomm Atheros QCA6174) as Device not managed. This is what we want.

Our Realtek is now able to detect and connect to access points. Enjoy and share !

Facebook Comments