You are not logged in.
Hello,
I use wpa_supplicant + systemd-networkd as my networking services on my machine. I've already used many times wpa_supplicant in the past but today I can't understand why wpa_supplicant creates two interfaces in /run/wpa_supplicant.
$ ls /run/wpa_supplicant
p2p-dev-wlp4s0 wlp4s0
I have no ideas what p2p-dev-wlp4s0 is and therefore each time I want to use wpa_cli I have to precise -i wlp4s0 if not it selects p2p-dev-wlp4s0 by default which is a bit inconvenient. Do you have any clue or how to disable that? What it's this p2p-dev-wlp4s0 interface?
Regards
Offline
Please post the content of your wpa_supplicant configuration file and the output of
systemctl list-unit-files --state=enabled
P2P is for a point-to-point network, AFAIUI that has to be enabled explicitly but you could try this in the wpa_supplicant configuration file:
CONFIG_P2P=n
Reference: https://w1.fi/cgit/hostap/plain/wpa_sup … README-P2P
EDIT: typo
Last edited by Head_on_a_Stick (2019-02-27 07:58:44)
Jin, Jîyan, Azadî
Offline
Hi, thanks for your answer.
The list:
$ sudo systemctl list-unit-files --state=enabled
UNIT FILE STATE
org.cups.cupsd.path enabled
autovt@.service enabled
avahi-daemon.service enabled
bluetooth.service enabled
dbus-org.bluez.service enabled
dbus-org.freedesktop.Avahi.service enabled
dbus-org.freedesktop.network1.service enabled
dbus-org.freedesktop.resolve1.service enabled
dbus-org.freedesktop.timesync1.service enabled
getty@.service enabled
ngircd.service enabled
org.cups.cupsd.service enabled
systemd-networkd-wait-online.service enabled
systemd-networkd.service enabled
systemd-resolved.service enabled
systemd-timesyncd.service enabled
avahi-daemon.socket enabled
org.cups.cupsd.socket enabled
systemd-networkd.socket enabled
remote-fs.target enabled
However, it looks like the CONFIG_P2P=n is a built time option, not to be put in the wpa_supplicant file.
Offline
Use wpa_supplicant as raw command not as systemd service also kick out systemd-networkd if not mandatory depend on it then try again and check for unwanted iface i think it will be gone.
Last edited by unixman (2019-03-01 06:06:27)
Offline
Please post the content of your wpa_supplicant configuration file
I presume that you just use wpa_cli rather than enabling a wpa_supplicant unit file?
Jin, Jîyan, Azadî
Offline