The built-in WiFi adapter on my old MacMini does not handle weak signals very well resulting in a slow connection. Therefor I'm using a USB adapter instead. After restarting the computer the output from ip address
looks like this:
...
3: wlan0: <NO-CARRIER,BROADCAST,MULTICAST,DYNAMIC,UP> mtu 1500 qdisc noqueue state DOWN group default qlen 1000
link/ether 90:84:0d:f3:85:7e brd ff:ff:ff:ff:ff:ff
altname wlx90840df3857e
4: wlx98ba5fa6d7f8: <NO-CARRIER,BROADCAST,MULTICAST,DYNAMIC,UP> mtu 1500 qdisc mq state DOWN group default qlen 1000
link/ether 98:ba:5f:a6:d7:f8 brd ff:ff:ff:ff:ff:ff
As we can see there is no connection for either of the WiFi interfaces despite the latter interface having been connected before the computer was restarted. My guess is that this is due to the operating system not knowing which interface to choose. What is the recommended way to permanently disable wlan0? I run Debian 13 and use connman-gtk to connect to WiFi (no NetworkManager installed).
Edit
The Connman settings shows that the USB WiFi interface should be automatically connected. However, after restarting the computer that doesn't happen.
$ ls /var/lib/connman/
ethernet_d49a20f8dca8_cable
settings
wifi_98ba5fa6d7f8_4f574e49545f3547487a5f443343314137_managed_psk
$ sudo grep AutoConnect /var/lib/connman/wifi_98ba5fa6d7f8_4f574e49545f3547487a5f443343314137_managed_psk/settings
AutoConnect=true
For some reason, when WiFi is re-enabled it connects to the default access point:
$ connmanctl state
State = idle
OfflineMode = False
SessionMode = False
$ connmanctl disable wifi
Disable wifi
$ connmanctl enable wifi
Enabled wifi
$ connmanctl state
State = ready
OfflineMode = False
SessionMode = False