LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Wireless Networking (https://www.linuxquestions.org/questions/linux-wireless-networking-41/)
-   -   wpa_supplicant not picking up WPA-PSK AP (https://www.linuxquestions.org/questions/linux-wireless-networking-41/wpa_supplicant-not-picking-up-wpa-psk-ap-309923/)

derfelcadarn 04-05-2005 07:38 AM

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 ESSID:off/any Nickname:"ipw2100"
Mode:Monitor Channel=0 Access Point: 00:00:00:00:00:00
Bit Rate=0 kb/s Tx-Power:off
Retry:on RTS thr:off Fragment thr:off
Power Management:off
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!

2Gnu 04-06-2005 03:52 PM

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.

derfelcadarn 04-07-2005 11:48 AM

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 :\


All times are GMT -5. The time now is 06:55 AM.