Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 436702 - net-wireless/wpa_supplicant - systemd unit does not configure ctrl_interface
Summary: net-wireless/wpa_supplicant - systemd unit does not configure ctrl_interface
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Rick Farina (Zero_Chaos)
Depends on:
Reported: 2012-09-30 19:49 UTC by Łukasz Stelmach
Modified: 2018-03-13 12:06 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Note You need to log in before you can comment on or make changes to this bug.
Description Łukasz Stelmach 2012-09-30 19:49:59 UTC
Unlike openrc's /lib/rc/net/ neither wpa_supplicant@.service nor the default wpa_supplicant.conf configure the ctrl_interface. Without it is impossible to control wpa_supplicant with wpa_cli.

There seem to be two (at least) possible solutions:

1. Add ctrl_interface to the default wpa_supplicant.conf
2. Add -C option in the wpa_supplicant@.service file.

The former seems better since it works better with openrc's script when the setting is not at its default value.

Reproducible: Always

Steps to Reproduce:
1. systemctl start wpa_supplicant@wlan0.service
2. wpa_cli ping

Actual Results:  
Failed to connect to wpa_supplicant - wpa_ctrl_open: No such file or directory

Expected Results:  
Selected interface 'wlan0'
Comment 1 Ulenrich 2012-10-01 16:14:08 UTC
~amd64 systemd-193 works as expected with proprietary wl.ko for linux-3.5.4:
 # wpa_cli ping 
Selected interface 'wlan0'
 # ping
PING ( 56(84) bytes of data.
64 bytes from ( icmp_req=1 ttl=250 time=29.9 ms
Comment 2 Ulenrich 2012-10-01 17:14:46 UTC
linux-3.6.0 proprietary Broadcom wl.ko segfaults ... as such wpa_cli doesnt work. I cannot test.
Comment 3 Łukasz Stelmach 2012-10-04 19:28:48 UTC
I am afraid neither kernel nor systemd are problems here. It is wpa_supplicant of course if you don't configure your network interfaces from hotplug events with openrc net.* scripts. Which version of wpa_supplicant do you use?
Comment 4 Pacho Ramos gentoo-dev 2018-03-13 12:06:50 UTC
Please also try with an updated system