You are not logged in.

#1 2014-05-25 01:38:26

SteampunkWhooves
Member
Registered: 2014-05-25
Posts: 7

[SOLVED] Unable to initialize wpa_supplicant

Hi, I am having a bit of trouble with wpa_supplicant. I want to use this as my network manager because of it's WPS ability, but when attempting to initialize it using this command:

$ sudo wpa_supplicant -D nl80211 -i wlp2s0 -c /etc/wpa_supplicant/wpa_supplicant.conf

I get the output:

Successfully initialized wpa_supplicant
wlp2s0: CTRL-EVENT-SCAN-STARTED

This continues until I manually end the process with CTRL+C.
My wpa_config file is as follows (ssid hidden):

ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=wheel
update_config=1

network={
scan_ssid=1
ssid="my-ssid"
key_mgmt=NONE
priority=6
}

I can connect to the internet using wifi-menu, and this correctly starts wpa_supplicant, but this method does not allow me to save configuration files as I would like.


I'm really not sure what I'm doing wrong... hmm
Any help would be appreciated!

Last edited by SteampunkWhooves (2014-05-25 05:10:50)

Offline

#2 2014-05-25 01:41:48

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [SOLVED] Unable to initialize wpa_supplicant

You aren't backgrounding the daemon: use the -B switch.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2014-05-25 03:13:07

SteampunkWhooves
Member
Registered: 2014-05-25
Posts: 7

Re: [SOLVED] Unable to initialize wpa_supplicant

Thanks! My networks are connecting now, not sure why I forgot to add -B.
One question though, why does wpa_supplicant "forget" my WPS connections after each reboot?

Offline

#4 2014-05-25 03:14:56

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [SOLVED] Unable to initialize wpa_supplicant

I'm not sure. Is it writing to your config file?

You could always look at using Connman: it does a superb job of managing that sort of thing.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#5 2014-05-25 04:36:54

SteampunkWhooves
Member
Registered: 2014-05-25
Posts: 7

Re: [SOLVED] Unable to initialize wpa_supplicant

Okay, turns out I was wrong. It's connecting, but never obtains an IP address:

<3>CTRL-EVENT-SCAN-STARTED
<3>CTRL-EVENT-SCAN-RESULTS
<3>WPS-AP-AVAILABLE
<3>SME: Trying to authenticate with bssid (ssid='ssid' freq=2412 MHz)
<3>Associated with bssid
<3>CTRL-EVENT-CONNECTED - Connection to bssid completed [id=0 id_str=]
<3>CTRL-EVENT-DISCONNECTED bssid=bssid reason=4 locally_generated=1

Last edited by SteampunkWhooves (2014-05-25 08:11:49)

Offline

#6 2014-05-25 04:43:54

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [SOLVED] Unable to initialize wpa_supplicant

How are you asking for the IP address?
https://wiki.archlinux.org/index.php/Wp … th_wpa_cli


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#7 2014-05-25 04:56:27

SteampunkWhooves
Member
Registered: 2014-05-25
Posts: 7

Re: [SOLVED] Unable to initialize wpa_supplicant

I first manually set it up in the .conf file as stated above. I then used wpa_cli:

> Select ssid

Offline

#8 2014-05-25 04:59:54

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [SOLVED] Unable to initialize wpa_supplicant

You need to re-read the wiki: pay particular attention to the bit about obtaining an IP address...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#9 2014-05-25 05:08:37

SteampunkWhooves
Member
Registered: 2014-05-25
Posts: 7

Re: [SOLVED] Unable to initialize wpa_supplicant

Oh wow. I could have sworn I had already started dhcpcd.
Thanks again, you've been a big help for my first time on the forums!

Still not sure about that WPS problem though...I'm sure I'll figure it out. smile

Offline

Board footer

Powered by FluxBB