Skip to main content
Topic: wpa_supplicant fails to start with dinitctl but runs manually (Read 314 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

wpa_supplicant fails to start with dinitctl but runs manually

I just installed the dinit version of artix and I'm trying to setup a wireless connection. Manually works just fine:
Code: [Select]
wpa_supplicant -i wlan0 -c /etc/wpa_supplicant/wpa_supplicant.conf
But if I try to start the service, it fails. The log has these messages:
Code: [Select]
Successfully initialized wpa_supplicant
Could not read interface wlan0 flags: No such device
nl80211: Driver does not support authentication/association or connect commands
This issue is very similar to this issue in s6, but it seems that his issue was just a variable with the wrong name. In my case the environment file contains:
Code: [Select]
WPA_INTERFACE="wlan0"
Help please?

Re: wpa_supplicant fails to start with dinitctl but runs manually

Reply #1
If your environment file was as you said, I think the error message should have been:

Code: [Select]
Could not read interface "wlan0" flags: No such device

... i.e. with quotes around 'wlan0'. That's the giveaway I think, the quotes should not be there (in the environment file).

Remember to run "dinitctl reload wpa_supplicant" after editing the file.

Do you actually have a wlan0 interface? If not that would also be a problem. (I.e. does the kernel recognise your wifi adapter? Is the right module loaded? etc).