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.
Judging by the man page for wpa_supplicant.conf, what we (openSUSE) provide as a default is wrong?
No. It is just deprecated.
We have
ctrl_interface=/var/run/wpa_supplicant ctrl_interface_group=wheel
whereas the man page suggests:
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=wheel
'ctrl_interface_group' is not even mentioned in the man page.
Well, it still works as of today's git. 2006-08-27 - v0.5.5 * changed ctrl_interface configuration for UNIX domain sockets: - deprecated ctrl_interface_group variable (it may be removed in future versions) - allow both directory and group be configured with ctrl_interface in following format: DIR=/var/run/wpa_supplicant GROUP=wheel - ctrl_interface=/var/run/wpa_supplicant is still supported for the case when group is not changed 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. But of course if you are concerned you are welcome to submit request to change default wpa_supplicant.conf :)