LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking
User Name
Password
Linux - Wireless Networking This forum is for the discussion of wireless networking in Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 04-05-2005, 07:38 AM   #1
derfelcadarn
LQ Newbie
 
Registered: Apr 2005
Posts: 2

Rep: Reputation: 0
wpa_supplicant not picking up WPA-PSK AP


Hey there people,

I've been trying to get Ubuntu to play nice with my WPA-PSK enabled router but have no luck.

Open/WEP works fine but WPA-PSK is a giant PITA.

I've tried ndiswrapper with wpa_supplicant and lots more (I can't remember so feel free to suggest again) and currently wpa_supplicant with the native ipw2100 driver seemed to work.

Here's the output when I run wpa_supplicant -ieth1 -dd -c /etc/wpa_supplicant.conf -Dipw2100 as root

Here's the interesting part:

Quote:
Scan timeout - try to get results
Received 230 bytes of scan results (1 BSSes)
Scan results: 1
Selecting BSS from priority group 0
0: 00:0f:b5:66:51:c8 ssid='sjwl-home' wpa_ie_len=0 rsn_ie_len=0
skip - no WPA/RSN IE
No suitable AP found.
It doesn't seem to detect WPA enabled?

Heres the rest of the ouput, sorry for not highlighting the important parts
Quote:
nexus@nova:~$ sudo wpa_supplicant -c /etc/wpa_supplicant.conf -dd -ieth1
Initializing interface 'eth1' conf '/etc/wpa_supplicant.conf' driver 'default'
Configuration file '/etc/wpa_supplicant.conf' -> '/etc/wpa_supplicant.conf'
Reading configuration file '/etc/wpa_supplicant.conf'
Line: 1 - start of a new network block
ssid - hexdump_ascii(len=9):
73 6a 77 6c 2d 68 6f 6d 65 sjwl-home
proto: 0x1
scan_ssid=1 (0x1)
key_mgmt: 0x2
PSK (ASCII passphrase) - hexdump_ascii(len=11): [REMOVED]
PSK (from passphrase) - hexdump(len=32): [REMOVED]
Priority group 0
id=0 ssid='sjwl-home'
Initializing interface (2) 'eth1'
EAPOL: SUPP_PAE entering state DISCONNECTED
EAPOL: KEY_RX entering state NO_KEY_RECEIVE
EAPOL: SUPP_BE entering state INITIALIZE
EAP: EAP entering state DISABLED
EAPOL: External notification - portEnabled=0
EAPOL: External notification - portValid=0
Own MAC address: 00:0c:f1:5d:d6:17
wpa_driver_hostap_set_wpa: enabled=1
wpa_driver_hostap_set_key: alg=none key_idx=0 set_tx=0 seq_len=0 key_len=0
ioctl[PRISM2_IOCTL_HOSTAPD]: Operation not supported
Failed to set encryption.
wpa_driver_hostap_set_key: alg=none key_idx=1 set_tx=0 seq_len=0 key_len=0
ioctl[PRISM2_IOCTL_HOSTAPD]: Operation not supported
Failed to set encryption.
wpa_driver_hostap_set_key: alg=none key_idx=2 set_tx=0 seq_len=0 key_len=0
ioctl[PRISM2_IOCTL_HOSTAPD]: Operation not supported
Failed to set encryption.
wpa_driver_hostap_set_key: alg=none key_idx=3 set_tx=0 seq_len=0 key_len=0
ioctl[PRISM2_IOCTL_HOSTAPD]: Operation not supported
Failed to set encryption.
wpa_driver_hostap_set_countermeasures: enabled=0
wpa_driver_hostap_set_drop_unencrypted: enabled=1
Setting scan request: 0 sec 100000 usec
Starting AP scan (specific SSID)
Scan SSID - hexdump_ascii(len=9):
73 6a 77 6c 2d 68 6f 6d 65 sjwl-home
ioctl[PRISM2_IOCTL_HOSTAPD]: Operation not supported
Failed to initiate AP scan.
Setting scan request: 10 sec 0 usec
EAPOL: Port Timers tick - authWhile=0 heldWhile=0 startWhen=0 idleWhile=0
EAPOL: Port Timers tick - authWhile=0 heldWhile=0 startWhen=0 idleWhile=0
EAPOL: Port Timers tick - authWhile=0 heldWhile=0 startWhen=0 idleWhile=0
Scan timeout - try to get results
Received 230 bytes of scan results (1 BSSes)
Scan results: 1
Selecting BSS from priority group 0
0: 00:0f:b5:66:51:c8 ssid='sjwl-home' wpa_ie_len=0 rsn_ie_len=0
skip - no WPA/RSN IE
No suitable AP found.
This card works fine on Windows and my mates are currently connected to the AP (WPA-PSK).

Here's my wpa_supplicant.conf
Quote:
network={
ssid="sjwl-home"
proto=WPA
scan_ssid=1
key_mgmt=WPA-PSK
psk="somepass"
}
Here's output from iwconfig:
Quote:
eth1 unassociated ESSIDff/any Nickname:"ipw2100"
Mode:Monitor Channel=0 Access Point: 00:00:00:00:00:00
Bit Rate=0 kb/s Tx-Powerff
Retryn RTS thrff Fragment thrff
Power Managementff
Link Quality:0 Signal level:0 Noise level:0
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0
I'm outta ideas. Anyone help?

Thanks a bunch!

Last edited by derfelcadarn; 04-07-2005 at 11:20 AM.
 
Old 04-06-2005, 03:52 PM   #2
2Gnu
Senior Member
 
Registered: Jan 2002
Location: Southern California
Distribution: Slackware 13.1
Posts: 1,872

Rep: Reputation: 48
The client is not associated with the AP, and the mode is not correct (monitor)
Try:
iwconfig eth1 mode managed
iwconfig eth1 essid [your_essid_name]

Then try to associate. If you get the valid MAC address for the AP showing, try to authenticate.
 
Old 04-07-2005, 11:48 AM   #3
derfelcadarn
LQ Newbie
 
Registered: Apr 2005
Posts: 2

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by 2Gnu
The client is not associated with the AP, and the mode is not correct (monitor)
Try:
iwconfig eth1 mode managed
iwconfig eth1 essid [your_essid_name]

Then try to associate. If you get the valid MAC address for the AP showing, try to authenticate.
Hey there, I edited my post so it would be clearer. Sorry about that.

However, I tried your method but have no luck as well :\
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
WPA-PSK, how do I set this up? maddoggames Linux - Wireless Networking 5 06-10-2006 07:26 PM
WPA-PSK and WEP Kenji Miyamoto Linux - Wireless Networking 4 08-21-2005 05:38 PM
WPA-PSK how? dimgr Linux - Wireless Networking 0 05-11-2005 11:28 AM
how do I get my AP to use WPA-PSK ? lemon_hou Linux - Wireless Networking 1 12-28-2004 02:22 AM
How do i set up WPA PSK with wpa supplicant and linuxant? Eleavings Linux - Wireless Networking 4 12-27-2004 11:24 AM


All times are GMT -5. The time now is 10:31 PM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration