Cannot turn off wlan1

I’ve found the fix for this, through the NetworkManager.conf, but was curious why this was happening?

I could not turn off wlan1 which is the motherboard wifi. I would

ip link set wlan1 down

and it would come back up after a minute.

The solution was to insert:

[main]
plugins=keyfile

[keyfile]
unmanaged-devices=interface-name:wlan1

restart the service and do the down command again. It wouldn’t have been a problem if both wlan0 and wlan1 wouldn’t connect at the start.

I even had restricted the connection to just wlan0 and it did not matter wlan1 kept connecting on start as well.

That’s somewhat the point of NetworkManager, it keeps trying to bring things up.
I had this issue 2 years ago when I was trying to test some equipment that required me to take eth down first…and whoops, it’s back…down…back argh.

Ah I see thank for the reply. Then I guess the odd part is allowing both wifi cards to connect to the network at the same time.

Some systems have multiple network connections, for redundancy I think, probably it’s the intended behaviour.

Best way to configure networkmanager imo is nmtui. Probably your solution is the correct way to disable it, but you can disable wifi from nmtui too (probably does the same thing that you did)

1 Like

I see, that actually makes sense.