Andrei Borzenkov wrote:
On 01.03.2021 22:17, Per Jessen wrote:
Background first - I am writing an interface for configuring wifi over a small 160x80 display and a numeric keypad only.
I am only just getting my feet wet with wpa_supplicant - for working with wpa_cli, I seem to need /var/run/wpa_supplicant as specified in /etc/wpa_supplicant/wpa_supplicant.conf.
It is created by wpa_supplicant when needed.
/var/run/wpa_supplicant seems to be missing ? (on at least three systems I've looked at).
It will be created by wpa_supplicant when you tell it which interface(s) it needs to manage. Either with -i parameter or via D-Bus (-u parameter) or via global control interface (-g parameter). Today wpa_supplicant is usually managed by D-Bus (e.g. by NetworkManager) and is started by default with D-Bus enabled and no managed interfaces.
Okay, I was wondering about that '-i' argument, but I had interpreted the lack of one to mean "manage all interfaces"
Even after 15 years it still works and SUSE recently retrofitted obsolete D-Bus interface removed upstream because this was the only one wicked supported.
Andrei, you clearly know this stuff quite well - for my declared purpose above, is wpa_supplicant the way to go or do I have better options? NetworkManager is not available.
But of course if you are concerned you are welcome to submit request to change default wpa_supplicant.conf :)
Hehe, I'll have to think about that :-) -- Per Jessen, Zürich (1.0°C)