View previous topic :: View next topic |
Author |
Message |
DaggyStyle Watchman
Joined: 22 Mar 2006 Posts: 5909
|
Posted: Thu Dec 18, 2008 8:05 am Post subject: wpa2-psk wpa_supplicant config? [solved] |
|
|
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 |
|
|
massimo Veteran
Joined: 22 Jun 2003 Posts: 1226
|
Posted: Thu Dec 18, 2008 8:11 am Post subject: |
|
|
It looks like you're missing the " (quotation marks) which enclose the values, e.g.,
_________________ Hello 911? How are you? |
|
Back to top |
|
|
swimmer Veteran
Joined: 15 Jul 2002 Posts: 1330 Location: Netherlands
|
Posted: Thu Dec 18, 2008 10:44 am Post subject: |
|
|
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 |
|
|
d2_racing Bodhisattva
Joined: 25 Apr 2005 Posts: 13047 Location: Ste-Foy,Canada
|
Posted: Thu Dec 18, 2008 12:13 pm Post subject: |
|
|
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 |
|
|
d2_racing Bodhisattva
Joined: 25 Apr 2005 Posts: 13047 Location: Ste-Foy,Canada
|
Posted: Thu Dec 18, 2008 12:14 pm Post subject: |
|
|
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 |
|
|
DaggyStyle Watchman
Joined: 22 Mar 2006 Posts: 5909
|
Posted: Thu Dec 18, 2008 2:19 pm Post subject: |
|
|
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 |
|
|
DaggyStyle Watchman
Joined: 22 Mar 2006 Posts: 5909
|
Posted: Thu Dec 18, 2008 10:05 pm Post subject: |
|
|
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 |
|
|
DaggyStyle Watchman
Joined: 22 Mar 2006 Posts: 5909
|
Posted: Thu Dec 18, 2008 10:13 pm Post subject: |
|
|
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 |
|
|
d2_racing Bodhisattva
Joined: 25 Apr 2005 Posts: 13047 Location: Ste-Foy,Canada
|
Posted: Fri Dec 19, 2008 12:00 pm Post subject: |
|
|
Nice |
|
Back to top |
|
|
tufail_74 n00b
Joined: 12 Jul 2012 Posts: 1
|
Posted: Thu Jul 12, 2012 9:00 am Post subject: |
|
|
Can you please share the working configuration.
I tried the same as mentioned above but did not make it work.
regards |
|
Back to top |
|
|
|