I have a strange scenario over here:
If I run nmcli dev wifi list
it shows me a list of all networks which is fine. As soon as I add the device (wlan0 in my case) to the /etc/network/interfaces
file and reboot it shows no networks.
So before reboot the /etc/network/interfaces
contains:
#iface wlan0 inet manual
# wpa-driver wext
# wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf
# wpa_supplicant.conf contains no networks at the moment
source-directory /etc/network/interfaces.d
# this directory is empty, so currently it is a redundant statement
I remove the first three #
, reboot the device and nmcli shows no networks. How do I address this issue? I need the wpa_supplicant.conf
empty because it will be filled by a script. Said script displays a list of networks (via nmcli
) and generates a wpa_supplicant.conf (via wpa_passphrase
)
I'm aware there is a similar question over there, but the only answer to start the wpa_supplicant.service
won't fix my issue, as the service is already running (according to # systemctl status wpa_supplicant.service
). Restarting it does not change anything either.