Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
wpa2-psk wpa_supplicant config? [solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
DaggyStyle
Watchman
Watchman


Joined: 22 Mar 2006
Posts: 5909

PostPosted: Thu Dec 18, 2008 8:05 am    Post subject: wpa2-psk wpa_supplicant config? [solved] Reply with quote

I have a wpa2-psk with aes wireless network, wpa_supplicant.conf has this:
Code:
network={
 ssid="UniMatrix01"
 key_mgmt=WPA2-PSK
 proto=WPA2
 pairwise=CCMP
 psk="pass"
 priority=5
}


enabling wlan0 results in this:
Code:
 * Starting wlan0
 *   Starting wpa_supplicant on wlan0 ...
Line 35: invalid key_mgmt 'WPA2-PSK'
Line 35: no key_mgmt values configured.
Line 35: failed to parse key_mgmt 'WPA2-PSK'.
Line 40: failed to parse network block.
Failed to read or parse configuration '/etc/wpa_supplicant/wpa_supplicant.conf'.
/lib/rcscripts/sh/rc-daemon.sh: line 231:  4462 Segmentation fault      /sbin/start-stop-daemon '--start' '--exec' '/sbin/wpa_supplicant' '--pidfile' '/var/run/wpa_supplicant-wlan0.pid' '--' '-Dwext' '-c' '/etc/wpa_supplicant/wpa_supplicant.conf' '-W' '-W' '-B' '-iwlan0' '-P/var/run/wpa_supplicant-wlan0.pid'     [ !! ]


I've digged for an answer but no luck, how can I fix this?
_________________
Only two things are infinite, the universe and human stupidity and I'm not sure about the former - Albert Einstein


Last edited by DaggyStyle on Thu Dec 18, 2008 10:13 pm; edited 1 time in total
Back to top
View user's profile Send private message
massimo
Veteran
Veteran


Joined: 22 Jun 2003
Posts: 1226

PostPosted: Thu Dec 18, 2008 8:11 am    Post subject: Reply with quote

It looks like you're missing the " (quotation marks) which enclose the values, e.g.,
Code:

proto="WPA2"

_________________
Hello 911? How are you?
Back to top
View user's profile Send private message
swimmer
Veteran
Veteran


Joined: 15 Jul 2002
Posts: 1330
Location: Netherlands

PostPosted: Thu Dec 18, 2008 10:44 am    Post subject: Reply with quote

Just have a look in the example wpa_supplicant.conf which is provided in /usr/share/doc/wpa_supplicant-*/ ...
Quote:
# proto: list of accepted protocols
# WPA = WPA/IEEE 802.11i/D3.0
# RSN = WPA2/IEEE 802.11i (also WPA2 can be used as an alias for RSN)
# If not set, this defaults to: WPA RSN
#
# key_mgmt: list of accepted authenticated key management protocols
# WPA-PSK = WPA pre-shared key (this requires 'psk' field)

So
Code:
proto=RSN
key_mgmt=WPA-PSK
should do the job ...

Anyhow I leave all those options out and just let wpa_supplicant use the default settings (as described in the example config) which is usually sufficient.

HTH
swimmer
Back to top
View user's profile Send private message
d2_racing
Bodhisattva
Bodhisattva


Joined: 25 Apr 2005
Posts: 13047
Location: Ste-Foy,Canada

PostPosted: Thu Dec 18, 2008 12:13 pm    Post subject: Reply with quote

Hi, I use this with WPA2-psk with AES encryption :

Code:

ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=wheel
ap_scan=0
#update_config=1
network={
   ssid="gentoonet"
   psk="my_passphrase"
   proto=WPA2
   key_mgmt=WPA-PSK
   pairwise=CCMP
   group=CCMP
   priority=5
}


Maybe you should post your /etc/conf.d/net
Back to top
View user's profile Send private message
d2_racing
Bodhisattva
Bodhisattva


Joined: 25 Apr 2005
Posts: 13047
Location: Ste-Foy,Canada

PostPosted: Thu Dec 18, 2008 12:14 pm    Post subject: Reply with quote

This is my /etc/conf.d/net

Code:

dns_domain_lo="homenetwork"
config_eth0="dhcp"
dhcpcd_eth0="-N"

#WPA_SUPPLICANT

modules=( "wpa_supplicant" )
wpa_supplicant_wlan0_="-Dwext"
config_wlan0=( "dhcp" )

Back to top
View user's profile Send private message
DaggyStyle
Watchman
Watchman


Joined: 22 Mar 2006
Posts: 5909

PostPosted: Thu Dec 18, 2008 2:19 pm    Post subject: Reply with quote

mine is almost the same, I've added the group which I didn't had, will check later and report, thanks.
_________________
Only two things are infinite, the universe and human stupidity and I'm not sure about the former - Albert Einstein
Back to top
View user's profile Send private message
DaggyStyle
Watchman
Watchman


Joined: 22 Mar 2006
Posts: 5909

PostPosted: Thu Dec 18, 2008 10:05 pm    Post subject: Reply with quote

got a similar output
Code:
Line 35: invalid key_mgmt 'WPA2-PSK'
Line 35: no key_mgmt values configured.
Line 35: failed to parse key_mgmt 'WPA2-PSK'.
Line 41: failed to parse network block.
Failed to read or parse configuration '/etc/wpa_supplicant/wpa_supplicant.conf'.
/lib/rcscripts/sh/rc-daemon.sh: line 231:  8125 Segmentation fault      /sbin/start-stop-daemon '--start' '--exec' '/sbin/wpa_supplicant' '--pidfile' '/var/run/wpa_supplicant-wlan0.pid' '--' '-Dwext' '-c' '/etc/wpa_supplicant/wpa_supplicant.conf' '-W' '-W' '-B' '-iwlan0' '-P/var/run/wpa_supplicant-wlan0.pid'     [ !! ]

_________________
Only two things are infinite, the universe and human stupidity and I'm not sure about the former - Albert Einstein
Back to top
View user's profile Send private message
DaggyStyle
Watchman
Watchman


Joined: 22 Mar 2006
Posts: 5909

PostPosted: Thu Dec 18, 2008 10:13 pm    Post subject: Reply with quote

solved, wpa2-psk was changed to wpa-psk and it is working
_________________
Only two things are infinite, the universe and human stupidity and I'm not sure about the former - Albert Einstein
Back to top
View user's profile Send private message
d2_racing
Bodhisattva
Bodhisattva


Joined: 25 Apr 2005
Posts: 13047
Location: Ste-Foy,Canada

PostPosted: Fri Dec 19, 2008 12:00 pm    Post subject: Reply with quote

Nice :P
Back to top
View user's profile Send private message
tufail_74
n00b
n00b


Joined: 12 Jul 2012
Posts: 1

PostPosted: Thu Jul 12, 2012 9:00 am    Post subject: Reply with quote

Can you please share the working configuration.

I tried the same as mentioned above but did not make it work.

regards
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum