You are not logged in.
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=1network={
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...
Any help would be appreciated!
Last edited by SteampunkWhooves (2014-05-25 05:10:50)
Offline
You aren't backgrounding the daemon: use the -B switch.
Offline
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
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.
Offline
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
How are you asking for the IP address?
https://wiki.archlinux.org/index.php/Wp … th_wpa_cli
Offline
I first manually set it up in the .conf file as stated above. I then used wpa_cli:
> Select ssid
Offline
You need to re-read the wiki: pay particular attention to the bit about obtaining an IP address...
Offline
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.
Offline