You are not logged in.

#1 2019-02-27 06:03:07

markand
Member
Registered: 2015-04-09
Posts: 28

wpa_supplicant@wlp4s0.service creates two control sockets

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

#2 2019-02-27 07:57:53

Head_on_a_Stick
Member
From: London
Registered: 2014-02-20
Posts: 7,732
Website

Re: wpa_supplicant@wlp4s0.service creates two control sockets

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)

Offline

#3 2019-02-27 11:24:20

markand
Member
Registered: 2015-04-09
Posts: 28

Re: wpa_supplicant@wlp4s0.service creates two control sockets

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

#4 2019-02-27 12:16:49

unixman
Member
Registered: 2015-03-12
Posts: 64

Re: wpa_supplicant@wlp4s0.service creates two control sockets

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

#5 2019-02-27 21:14:50

Head_on_a_Stick
Member
From: London
Registered: 2014-02-20
Posts: 7,732
Website

Re: wpa_supplicant@wlp4s0.service creates two control sockets

Head_on_a_Stick wrote:

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?

Offline

Board footer

Powered by FluxBB