LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Wireless Networking (https://www.linuxquestions.org/questions/linux-wireless-networking-41/)
-   -   Problem getting wireless card to use WPA mode. (https://www.linuxquestions.org/questions/linux-wireless-networking-41/problem-getting-wireless-card-to-use-wpa-mode-556772/)

mdorries 05-25-2007 11:04 PM

Problem getting wireless card to use WPA mode.
 
I'm attempted to get my WMP54G(Linksys) card to function with Fedora Core 6 Linux but I'm getting stuck on the final steps. I got it so that my card can detect the AP but I can't get it set up for WPA mode. I'm following the directions over at NDISwrapper but the steps kinda confuse me on this. The first it says to make a .config file. Well I right click in the directory and make a blank file. Then I type in what it says and save it as ".config" but I don't understand what it wants me to do with the "make" command. Other than that I did everything else. My .conf file is in the right place and says exactly what it tells me to put in but when I follow the rest of the steps this is the output I get.


[root@localhost /]# ifconfig wlan0 up
[root@localhost /]# wpa_supplicant -Dwext -iwlan0 -c/etc/wpa_supplicant.conf -dd

Initializing interface 'wlan0' conf '/etc/wpa_supplicant.conf' driver 'wext' ctrl_interface 'N/A'
Configuration file '/etc/wpa_supplicant.conf' -> '/etc/wpa_supplicant.conf'
Reading configuration file '/etc/wpa_supplicant.conf'
Failed to read read or parse configuration '/etc/wpa_supplicant.conf'.
Failed to add interface wlan0
Cancelling scan request


Any help is greatly appreciated because I really want to use Fedora but without Internet it seems pointless.

Thanks

jschiwal 05-26-2007 01:35 AM

From the message is sounds like there is a problem with your wpa_supplicant.conf file. Check the syntax and any hidden characters such as \r.

Also check the permissions of the config file. Some programs will not run if you use a globally readable file. On example is ssh. I don't know if wpa_supplicant is like that but the key should only be readable by root.

mdorries 05-27-2007 07:52 PM

Quote:

Originally Posted by jschiwal
From the message is sounds like there is a problem with your wpa_supplicant.conf file. Check the syntax and any hidden characters such as \r.

Also check the permissions of the config file. Some programs will not run if you use a globally readable file. On example is ssh. I don't know if wpa_supplicant is like that but the key should only be readable by root.


Got that worked out. My problem was it was pointing to the wrong directory. I compiled the .config file. And now ran everything. But it seems to get stuck in a loop and this is what it keeps looping. However I can't decipher it.

Code:

Starting AP scan (broadcast SSID)
Scan timeout - try to get results
Received 492 bytes of scan results (2 BSSes)
Scan results: 2
Selecting BSS from priority group 0
0: 00:18:39:70:2f:9e ssid='linksys_SYS_14755' wpa_ie_len=26 rsn_ie_len=0 caps=0x11
  selected based on WPA IE
Trying to associate with 00:18:39:70:2f:9e (SSID='linksys_SYS_14755' freq=2437 MHz)
Cancelling scan request
WPA: clearing own WPA/RSN IE
Automatic auth_alg selection: 0x1
ioctl[PRISM2_IOCTL_PRISM2_PARAM]: Operation not supported
WPA: using IEEE 802.11i/D3.0
WPA: Selected cipher suites: group 8 pairwise 8 key_mgmt 2
WPA: set AP WPA IE - hexdump(len=26): dd 18 00 50 f2 01 01 00 00 50 f2 02 01 00 00 50 f2 02 01 00 00 50 f2 02 00 00
WPA: clearing AP RSN IE
WPA: using GTK TKIP
WPA: using PTK TKIP
WPA: using KEY_MGMT WPA-PSK
WPA: Set own WPA IE default - hexdump(len=24): dd 16 00 50 f2 01 01 00 00 50 f2 02 01 00 00 50 f2 02 01 00 00 50 f2 02
No keys have been configured - skip key clearing
wpa_driver_hostap_set_drop_unencrypted: enabled=1
ioctl[PRISM2_IOCTL_PRISM2_PARAM]: Operation not supported
State: SCANNING -> ASSOCIATING
wpa_driver_hostap_associate
ioctl[PRISM2_IOCTL_PRISM2_PARAM]: Operation not supported
ioctl[PRISM2_IOCTL_HOSTAPD]: Operation not supported
ioctl[PRISM2_IOCTL_PRISM2_PARAM]: Operation not supported
hostap: Failed to configure ieee_802_1x param
Association request to the driver failed
Setting authentication timeout: 15 sec 0 usec
EAPOL: External notification - EAP success=0
EAPOL: External notification - EAP fail=0
EAPOL: External notification - portControl=Auto
Wireless event: cmd=0x8b06 len=8
Wireless event: cmd=0x8b04 len=12
Wireless event: cmd=0x8b1a len=26
RX EAPOL from 00:18:39:70:2f:9e
IEEE 802.1X RX: version=1 type=3 length=95
  EAPOL-Key type=254
State: ASSOCIATING -> 4WAY_HANDSHAKE
WPA: RX message 1 of 4-Way Handshake from 00:18:39:70:2f:9e (ver=1)
WPA: WPA IE for msg 2/4 - hexdump(len=24): dd 16 00 50 f2 01 01 00 00 50 f2 02 01 00 00 50 f2 02 01 00 00 50 f2 02
WPA: Renewed SNonce - hexdump(len=32): 59 2a ee 03 41 c8 b1 8d 8f 17 cd a8 62 5a 7d ec 2f ac 89 63 11 c0 0c e8 b2 4d 6b 60 19 f6 99 4f
WPA: PMK - hexdump(len=32): [REMOVED]
WPA: PTK - hexdump(len=64): [REMOVED]
WPA: Sending EAPOL-Key 2/4
^ARX EAPOL from 00:18:39:70:2f:9e
IEEE 802.1X RX: version=1 type=3 length=95
  EAPOL-Key type=254
State: 4WAY_HANDSHAKE -> 4WAY_HANDSHAKE
WPA: RX message 1 of 4-Way Handshake from 00:18:39:70:2f:9e (ver=1)
WPA: WPA IE for msg 2/4 - hexdump(len=24): dd 16 00 50 f2 01 01 00 00 50 f2 02 01 00 00 50 f2 02 01 00 00 50 f2 02
WPA: PMK - hexdump(len=32): [REMOVED]
WPA: PTK - hexdump(len=64): [REMOVED]
WPA: Sending EAPOL-Key 2/4
RX EAPOL from 00:18:39:70:2f:9e
IEEE 802.1X RX: version=1 type=3 length=95
  EAPOL-Key type=254
State: 4WAY_HANDSHAKE -> 4WAY_HANDSHAKE
WPA: RX message 1 of 4-Way Handshake from 00:18:39:70:2f:9e (ver=1)
WPA: WPA IE for msg 2/4 - hexdump(len=24): dd 16 00 50 f2 01 01 00 00 50 f2 02 01 00 00 50 f2 02 01 00 00 50 f2 02
WPA: PMK - hexdump(len=32): [REMOVED]
WPA: PTK - hexdump(len=64): [REMOVED]
WPA: Sending EAPOL-Key 2/4
RX EAPOL from 00:18:39:70:2f:9e
IEEE 802.1X RX: version=1 type=3 length=95
  EAPOL-Key type=254
State: 4WAY_HANDSHAKE -> 4WAY_HANDSHAKE
WPA: RX message 1 of 4-Way Handshake from 00:18:39:70:2f:9e (ver=1)
WPA: WPA IE for msg 2/4 - hexdump(len=24): dd 16 00 50 f2 01 01 00 00 50 f2 02 01 00 00 50 f2 02 01 00 00 50 f2 02
WPA: PMK - hexdump(len=32): [REMOVED]
WPA: PTK - hexdump(len=64): [REMOVED]
WPA: Sending EAPOL-Key 2/4
RX EAPOL from 00:18:39:70:2f:9e
IEEE 802.1X RX: version=1 type=3 length=95
  EAPOL-Key type=254
WPA: EAPOL-Key Replay Counter did not increase - dropping packet
RX EAPOL from 00:18:39:70:2f:9e
IEEE 802.1X RX: version=1 type=3 length=95
  EAPOL-Key type=254
WPA: EAPOL-Key Replay Counter did not increase - dropping packet
RX EAPOL from 00:18:39:70:2f:9e
IEEE 802.1X RX: version=1 type=3 length=95
  EAPOL-Key type=254
State: 4WAY_HANDSHAKE -> 4WAY_HANDSHAKE
WPA: RX message 1 of 4-Way Handshake from 00:18:39:70:2f:9e (ver=1)
WPA: WPA IE for msg 2/4 - hexdump(len=24): dd 16 00 50 f2 01 01 00 00 50 f2 02 01 00 00 50 f2 02 01 00 00 50 f2 02
WPA: PMK - hexdump(len=32): [REMOVED]
WPA: PTK - hexdump(len=64): [REMOVED]
WPA: Sending EAPOL-Key 2/4
RX EAPOL from 00:18:39:70:2f:9e
IEEE 802.1X RX: version=1 type=3 length=95
  EAPOL-Key type=254
State: 4WAY_HANDSHAKE -> 4WAY_HANDSHAKE
WPA: RX message 1 of 4-Way Handshake from 00:18:39:70:2f:9e (ver=1)
WPA: WPA IE for msg 2/4 - hexdump(len=24): dd 16 00 50 f2 01 01 00 00 50 f2 02 01 00 00 50 f2 02 01 00 00 50 f2 02
WPA: PMK - hexdump(len=32): [REMOVED]
WPA: PTK - hexdump(len=64): [REMOVED]
WPA: Sending EAPOL-Key 2/4
Authentication with 00:00:00:00:00:00 timed out.
BSSID 00:00:00:00:00:00 blacklist count incremented to 11
State: 4WAY_HANDSHAKE -> DISCONNECTED
No keys have been configured - skip key clearing
EAPOL: External notification - portEnabled=0
EAPOL: External notification - portValid=0
Setting scan request: 0 sec 0 usec
State: DISCONNECTED -> SCANNING
Starting AP scan (broadcast SSID)



All times are GMT -5. The time now is 03:44 PM.