You are not logged in.

#1 2016-04-09 20:33:10

kreide
Member
Registered: 2016-04-09
Posts: 2

[SOLVED] wpa_supplicant can not find device

I am having problems setting up my wifi using wpa_supplicant. Here are some infos:

ip link
----------------
2: wlp4s0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000
    link/either xx:xx:xx:xx:xx:xx:xx brd ff:ff:ff:ff:ff:ff:ff

Executing wpa_supplicant right after login yields:

[alex@localhost ~]$ sudo wpa_supplicant -B -i wlp4s0 -c /etc/wpa_supplicant/example.conf
Successfully initialized wpa_supplicant
Could not read interface p2p-dev-wlp4s0 flags: No such device

Doing nothing but executing the command again yields:

[alex@localhost ~]$ sudo wpa_supplicant -B -i wlp4s0 -c /etc/wpa_supplicant/example.conf
Successfully initialized wpa_supplicant
ctrl_iface exists and seems to be in use - cannot override it
Delete '/run/wpa_supplicant/wlp4s0' manually if it is not used anymore
Failed to initialize control interface '/run/wpa_supplicant'.
You may have another wpa_supplicant process already running or the file was
left by an unclean termination of wpa_supplicant in which case you will need
to manually remove this file before starting wpa_supplicant again.

nl80211: deinit ifname=wlp4s0 disabled_11b_rates=0

/etc/wpa_supplicant/example.conf looks like this:

ctrl_interface=/run/wpa_supplicant
update_config=1

Any tips on what I am doing wrong?

Last edited by kreide (2016-04-24 20:17:45)

Offline

#2 2016-04-10 08:54:02

chsims1
Member
From: Holderness, UK
Registered: 2008-11-25
Posts: 83

Re: [SOLVED] wpa_supplicant can not find device

You're running wpa_supplicant as a daemon (-B option) so presumably this is why it complains that an instance of wpa_supplicant is already running.

Surely you need network details in your wpa_supplicant.conf file .... ssid and psk?

Offline

#3 2016-04-24 20:17:32

kreide
Member
Registered: 2016-04-09
Posts: 2

Re: [SOLVED] wpa_supplicant can not find device

Thank you for the reply. I solved the situation by using wifi-menu and netctl

wifi-menu
systemctl enable netctl-auto@wlp4s0.service

That does actually all I wanted to achieve with wpa_supplicant.

Offline

Board footer

Powered by FluxBB