Solved: WPA-PSK: wpa_supplicant connection problems

Using applications, configuring, problems
Post Reply
Message
Author
fried
Posts: 32
Joined: Thu 21 Sep 2006, 20:32
Location: The Netherlands

Solved: WPA-PSK: wpa_supplicant connection problems

#1 Post by fried »

Hi there, I have trouble connecting to WPA-PSK encrypted Wifi .

I have ipw2200 firmware installed from the dotpub and run wpa-connect, according to the wpa_supplicant dotpub readme

Code: Select all

#!/bin/sh

echo "Configuring Wireless LAN with WPA"
echo

## load your driver
modprobe ipw2200
## bring up the wireless interface, unconfigured
ifconfig eth1 up
## now start wpa_supplicant
## first remove stale wpa_supplicant file if it exists
if [ -e /var/run/wpa_supplicant/ ]; then rm /var/run/wpa_supplicant/*; fi
wpa_supplicant -i eth1 -D ipw -c /etc/wpa_supplicant.conf -dd
sleep 20

## for automatic IP
## first remove stale dhcpcd file if it exists
if [ -e /etc/dhcpc/*.pid ]; then rm /etc/dhcpc/*.pid; fi
dhcpcd -t 30 -h puppypc -d eth1

## or for static IP
## modify /etc/resolv.conf to include your nameservers
#ifconfig ath0 192.168.0.xx broadcast 192.168.0.255 netmask 255.255.255.0
#route add default gw 192.168.0.1 ath0   # or whatever your router's IP is
with this wpa_supplicant.conf:

Code: Select all

# wpa_supplicant configuration file for
# WPA-PSK/TKIP

ctrl_interface=/var/run/wpa_supplicant

## To use a hidden SSID, uncomment the following line
#ap_scan=1

network={
        ssid="SF81gpYJI9cqesDELMdHPBI9pSGgODqf"
        #psk="k1CdGYxeVAQt5IFsCvkq7nxiZSaO6w3VRDuLAyESdiOTcGCjxlvQMJVYgha2uZb"
        psk=470d9339ddb452cc827f710ffd7a8c6a46f7342a602e76c1273238bddc074d2d
}
and this is the output I get in the console:

Code: Select all

sh-3.00# 
sh-3.00# wpa-connect
Configuring Wireless LAN with WPA

Initializing interface 'eth1' conf '/etc/wpa_supplicant.conf' driver 'ipw' ctrl_interface 'N/A'
Configuration file '/etc/wpa_supplicant.conf' -> '/etc/wpa_supplicant.conf'
Reading configuration file '/etc/wpa_supplicant.conf'
ctrl_interface='/var/run/wpa_supplicant'
Line: 9 - start of a new network block
ssid - hexdump_ascii(len=32):
     53 46 38 31 67 70 59 4a 49 39 63 71 65 73 44 45   SF81gpYJI9cqesDE
     4c 4d 64 48 50 42 49 39 70 53 47 67 4f 44 71 66   LMdHPBI9pSGgODqf
PSK - hexdump(len=32): [REMOVED]
Priority group 0
   id=0 ssid='SF81gpYJI9cqesDELMdHPBI9pSGgODqf'
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
wpa_driver_ipw_init is called
SIOCGIWRANGE: WE(compiled)=19 WE(source)=16 enc_capa=0x0
  capabilities: key_mgmt 0x0 enc 0x3
Own MAC address: 00:16:6f:60:63:ac
wpa_driver_ipw_set_wpa: enabled=1
ioctl[IPW_IOCTL_WPA_SUPPLICANT]: Operation not supported
wpa_driver_ipw_set_key: alg=none key_idx=0 set_tx=0 seq_len=0 key_len=0
ioctl[IPW_IOCTL_WPA_SUPPLICANT]: Operation not supported
Failed to set encryption.
wpa_driver_ipw_set_key: alg=none key_idx=1 set_tx=0 seq_len=0 key_len=0
ioctl[IPW_IOCTL_WPA_SUPPLICANT]: Operation not supported
Failed to set encryption.
wpa_driver_ipw_set_key: alg=none key_idx=2 set_tx=0 seq_len=0 key_len=0
ioctl[IPW_IOCTL_WPA_SUPPLICANT]: Operation not supported
Failed to set encryption.
wpa_driver_ipw_set_key: alg=none key_idx=3 set_tx=0 seq_len=0 key_len=0
ioctl[IPW_IOCTL_WPA_SUPPLICANT]: Operation not supported
Failed to set encryption.
wpa_driver_ipw_set_countermeasures: enabled=0
ioctl[IPW_IOCTL_WPA_SUPPLICANT]: Operation not supported
wpa_driver_ipw_set_drop_unencrypted: enabled=1
ioctl[IPW_IOCTL_WPA_SUPPLICANT]: Operation not supported
Setting scan request: 0 sec 100000 usec
Added interface eth1
Wireless event: cmd=0x8b06 len=8
State: DISCONNECTED -> SCANNING
Starting AP scan (broadcast SSID)
Scan timeout - try to get results
Received 1319 bytes of scan results (5 BSSes)
Scan results: 5
Selecting BSS from priority group 0
0: 00:03:2f:1d:57:7d ssid='SF81gpYJI9cqesDELMdHPBI9pSGgODqf' wpa_ie_len=24 rsn_ie_len=0 caps=0x11
   selected based on WPA IE
Trying to associate with 00:03:2f:1d:57:7d (SSID='SF81gpYJI9cqesDELMdHPBI9pSGgODqf' freq=0 MHz)
Cancelling scan request
WPA: clearing own WPA/RSN IE
Automatic auth_alg selection: 0x1
wpa_driver_ipw_set_auth_alg: auth_alg=0x1
ioctl[IPW_IOCTL_WPA_SUPPLICANT]: 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=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: 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_ipw_set_drop_unencrypted: enabled=1
ioctl[IPW_IOCTL_WPA_SUPPLICANT]: Operation not supported
State: SCANNING -> ASSOCIATING
ioctl[IPW_IOCTL_WPA_SUPPLICANT]: Operation not supported
ioctl[IPW_IOCTL_WPA_SUPPLICANT]: Operation not supported
Setting authentication timeout: 10 sec 0 usec
EAPOL: External notification - EAP success=0
EAPOL: External notification - EAP fail=0
EAPOL: External notification - portControl=Auto
Wireless event: cmd=0x8b1a len=41
well that's a lot of lines of code, I hope someone finds the problem...
cheers
Last edited by fried on Sun 24 Sep 2006, 13:36, edited 1 time in total.

tempestuous
Posts: 5464
Joined: Fri 10 Jun 2005, 05:12
Location: Australia

#2 Post by tempestuous »

It looks like you may have deleted some important lines from wpa_supplicant.conf -

key_mgmt=WPA-PSK
proto=WPA
pairwise=TKIP
group=TKIP

Of course, these are just the default settings I provided. Your router may use a different config.

fried
Posts: 32
Joined: Thu 21 Sep 2006, 20:32
Location: The Netherlands

#3 Post by fried »

i tried it again with this wpa_supplicant.conf:

Code: Select all

# wpa_supplicant configuration file for
# WPA-PSK/TKIP

ctrl_interface=/var/run/wpa_supplicant

## To use a hidden SSID, uncomment the following line
#ap_scan=1

network={
        ssid="SF81gpYJI9cqesDELMdHPBI9pSGgODqf"
        #psk="k1CdGYxeVAQt5IFsCvkq7nxiZSaO6w3VRDuLAyESdiOTcGCjxlvQMJVYgha2uZb"
        psk=470d9339ddb452cc827f710ffd7a8c6a46f7342a602e76c1273238bddc074d2d
	key_mgmt=WPA-PSK
        proto=WPA
        pairwise=TKIP
        group=TKIP 
}
and now I get in the console:

Code: Select all

sh-3.00# wpa-connect
Configuring Wireless LAN with WPA

Initializing interface 'eth1' conf '/etc/wpa_supplicant.conf' driver 'ipw' ctrl_interface 'N/A'
Configuration file '/etc/wpa_supplicant.conf' -> '/etc/wpa_supplicant.conf'
Reading configuration file '/etc/wpa_supplicant.conf'
ctrl_interface='/var/run/wpa_supplicant'
Line: 9 - start of a new network block
ssid - hexdump_ascii(len=32):
     53 46 38 31 67 70 59 4a 49 39 63 71 65 73 44 45   SF81gpYJI9cqesDE
     4c 4d 64 48 50 42 49 39 70 53 47 67 4f 44 71 66   LMdHPBI9pSGgODqf
PSK (ASCII passphrase) - hexdump_ascii(len=8): [REMOVED]
key_mgmt: 0x2
proto: 0x1
pairwise: 0x8
group: 0x8
PSK (from passphrase) - hexdump(len=32): [REMOVED]
Priority group 0
   id=0 ssid='SF81gpYJI9cqesDELMdHPBI9pSGgODqf'
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
wpa_driver_ipw_init is called
SIOCGIWRANGE: WE(compiled)=19 WE(source)=16 enc_capa=0x0
  capabilities: key_mgmt 0x0 enc 0x3
Own MAC address: 00:16:6f:60:63:ac
wpa_driver_ipw_set_wpa: enabled=1
ioctl[IPW_IOCTL_WPA_SUPPLICANT]: Operation not supported
wpa_driver_ipw_set_key: alg=none key_idx=0 set_tx=0 seq_len=0 key_len=0
ioctl[IPW_IOCTL_WPA_SUPPLICANT]: Operation not supported
Failed to set encryption.
wpa_driver_ipw_set_key: alg=none key_idx=1 set_tx=0 seq_len=0 key_len=0
ioctl[IPW_IOCTL_WPA_SUPPLICANT]: Operation not supported
Failed to set encryption.
wpa_driver_ipw_set_key: alg=none key_idx=2 set_tx=0 seq_len=0 key_len=0
ioctl[IPW_IOCTL_WPA_SUPPLICANT]: Operation not supported
Failed to set encryption.
wpa_driver_ipw_set_key: alg=none key_idx=3 set_tx=0 seq_len=0 key_len=0
ioctl[IPW_IOCTL_WPA_SUPPLICANT]: Operation not supported
Failed to set encryption.
wpa_driver_ipw_set_countermeasures: enabled=0
ioctl[IPW_IOCTL_WPA_SUPPLICANT]: Operation not supported
wpa_driver_ipw_set_drop_unencrypted: enabled=1
ioctl[IPW_IOCTL_WPA_SUPPLICANT]: Operation not supported
Setting scan request: 0 sec 100000 usec
Added interface eth1
Wireless event: cmd=0x8b06 len=8
State: DISCONNECTED -> SCANNING
Starting AP scan (broadcast SSID)
Wireless event: cmd=0x8b1a len=41
Scan timeout - try to get results
Received 932 bytes of scan results (3 BSSes)
Scan results: 3
Selecting BSS from priority group 0
0: 00:03:2f:1d:57:7d ssid='SF81gpYJI9cqesDELMdHPBI9pSGgODqf' wpa_ie_len=24 rsn_ie_len=0 caps=0x11
   selected based on WPA IE
Trying to associate with 00:03:2f:1d:57:7d (SSID='SF81gpYJI9cqesDELMdHPBI9pSGgODqf' freq=0 MHz)
Cancelling scan request
WPA: clearing own WPA/RSN IE
Automatic auth_alg selection: 0x1
wpa_driver_ipw_set_auth_alg: auth_alg=0x1
ioctl[IPW_IOCTL_WPA_SUPPLICANT]: 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=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: 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_ipw_set_drop_unencrypted: enabled=1
ioctl[IPW_IOCTL_WPA_SUPPLICANT]: Operation not supported
State: SCANNING -> ASSOCIATING
ioctl[IPW_IOCTL_WPA_SUPPLICANT]: Operation not supported
ioctl[IPW_IOCTL_WPA_SUPPLICANT]: Operation not supported
Setting authentication timeout: 10 sec 0 usec
EAPOL: External notification - EAP success=0
EAPOL: External notification - EAP fail=0
EAPOL: External notification - portControl=Auto
Wireless event: cmd=0x8b1a len=41
i.e. it seems not to work.
iwconfig says:

Code: Select all

sh-3.00# iwconfig
lo        no wireless extensions.

eth0      no wireless extensions.

eth1      unassociated  ESSID:"SF81gpYJI9cqesDELMdHPBI9pSGgODqf"  
          Mode:Managed  Channel=0  Access Point: 00:03:2F:1D:57:7D   
          Bit Rate=0 kb/s   Tx-Power=20 dBm   
          Retry limit:7   RTS thr:off   Fragment thr:off
          Encryption key: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
in Ubuntu under Gnome, there is a handy little tool called 'networkmanager applet' which sorts out WPA very well. Is there a similar tool for puppy available?

tempestuous
Posts: 5464
Joined: Fri 10 Jun 2005, 05:12
Location: Australia

#4 Post by tempestuous »

Sorry if I'm stating the obvious, but first make sure you can connect to an UNENCRYPTED wifi network before going further. You want to make sure that WPA encryption is the true problem.

Then it should be just a matter of getting the correct settings in your wpa_supplicant.conf file.
You can refer to your wifi router's manual and my wpa_supplicant README to work it out for yourself, but frankly, it's complex. I don't understand most of it ... TKIP versus CCMP etc, etc.
I suggest Google. Search for "<your router model> & wpa_supplicant.conf"
Or if you connected successfully with "networkmanager" in Ubuntu, just copy its wpa_supplicant.conf into Puppy.

fried
Posts: 32
Joined: Thu 21 Sep 2006, 20:32
Location: The Netherlands

#5 Post by fried »

Sorry if I'm stating the obvious
never mind
I found out it connects well as long as the network is unencrypted

my router

fried
Posts: 32
Joined: Thu 21 Sep 2006, 20:32
Location: The Netherlands

#6 Post by fried »

well waiting did not help.

maybe someone understands the authentification part of the console output:

Code: Select all

Automatic auth_alg selection: 0x1
wpa_driver_ipw_set_auth_alg: auth_alg=0x1
ioctl[IPW_IOCTL_WPA_SUPPLICANT]: 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=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: clearing AP RSN IEWPA: 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_ipw_set_drop_unencrypted: enabled=1
ioctl[IPW_IOCTL_WPA_SUPPLICANT]: Operation not supported
State: SCANNING -> ASSOCIATING
ioctl[IPW_IOCTL_WPA_SUPPLICANT]: Operation not supported
ioctl[IPW_IOCTL_WPA_SUPPLICANT]: Operation not supported
Setting authentication timeout: 10 sec 0 usec
EAPOL: External notification - EAP success=0
EAPOL: External notification - EAP fail=0
EAPOL: External notification - portControl=Auto
Wireless event: cmd=0x8b1a len=41
does

Code: Select all

ioctl[IPW_IOCTL_WPA_SUPPLICANT]: Operation not supported

mean the ipw driver in some way does not support wpa?
(the driver is provided in puppy install, and i added firmware from http://dotpups.de/dotpups/Wifi/drivers- ... -and-2.01/

and why does it say:

Code: Select all

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
i.e., "No keys have been configured" right after it set the wpa key?
does

Code: Select all

"wpa_driver_ipw_set_drop_unencrypted: enabled=1
mean it then tries to connect as though there is no encryption?

i used the wpa_supplicant from http://dotpups.de/dotpups/Wifi/wireless-utilities/, is that correct?

*sigh*
[/code]

tempestuous
Posts: 5464
Joined: Fri 10 Jun 2005, 05:12
Location: Australia

#7 Post by tempestuous »

Yes,

Code: Select all

ioctl[IPW_IOCTL_WPA_SUPPLICANT]: Operation not supported

is probably the key problem ... and I think the answer is here http://ubuntuforums.org/showthread.php?t=26623
Puppy 2.10 has Wireless Extension v19, so replace "ipw" with "wext".

fried
Posts: 32
Joined: Thu 21 Sep 2006, 20:32
Location: The Netherlands

#8 Post by fried »

-D wext instead of -D ipw does not help either

I also tried

Code: Select all

modprobe ipw2200
modprobe ieee80211_crypt_tkip
modprobe ieee80211_crypt_ccmp
to make sure the encryption is installed (found that by googling), to no avail[/code]

fried
Posts: 32
Joined: Thu 21 Sep 2006, 20:32
Location: The Netherlands

#9 Post by fried »

with -D wext i get:

Code: Select all

Wireless event: cmd=0x8b06 len=8
Wireless event: cmd=0x8b1a len=14 
Scan timeout - try to get results
Received 1094 bytes of scan results (4 BSSes)
Scan results: 4
Selecting BSS from priority group 2
0: 00:01:e3:59:57:39 ssid='<hidden>' wpa_ie_len=28 rsn_ie_len=26 caps=0x11
   skip - SSID mismatch
1: 00:03:2f:1d:57:7d ssid='mylan' wpa_ie_len=24 rsn_ie_len=0 caps=0x11
   selected based on WPA IE
Trying to associate with 00:03:2f:1d:57:7d (SSID='mylan' freq=0 MHz)
Cancelling scan request
WPA: clearing own WPA/RSN IE
Automatic auth_alg selection: 0x1
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=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: 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_wext_set_drop_unencrypted
State: ASSOCIATING -> ASSOCIATING
wpa_driver_wext_associate
Setting authentication timeout: 10 sec 0 usec
EAPOL: External notification - EAP success=0
EAPOL: External notification - EAP fail=0
EAPOL: External notification - portControl=Auto
which is looping indefinitely.

This part:

Code: Select all

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_wext_set_drop_unencrypted
shows the key is not configured

fried
Posts: 32
Joined: Thu 21 Sep 2006, 20:32
Location: The Netherlands

#10 Post by fried »

actually this makes me wonder whether i have the correct (version) of drivers and wpa_supplicant.

i have:

a Dell Latitude D810 with Intel Wireless Pro 2195abg wifi card

Puppylinux 2.10

Intel PRO/Wireless ipw2200 v1.1.0 Driver for the IPW2200BG and IPW2915ABG
for Puppy Linux v2 with kernel 2.6.16.7 from http://dotpups.de/dotpups/Wifi/drivers- ... -and-2.01/

wpa_supplicant v0.5.4, WPA client encryption from
http://dotpups.de/dotpups/Wifi/wireless-utilities/

a Topcom Skyr@cer Pro WBR 654 wifi router with
Firmware Version: 1.5.1 , 2003/12/22 which works well in XP and Ubuntu

and i just checked: i am using the correct password ;)

fried
Posts: 32
Joined: Thu 21 Sep 2006, 20:32
Location: The Netherlands

#11 Post by fried »

also upgraded the Wi-Fi router's firmware to
the newest available Firmware Version: 1.6.6

and now i know for sure it is using WAP-PSK and TKIP, so my wpa_supplicant.conf ought to be correct with

Code: Select all

network={
        ssid="SF81gpYJI9cqesDELMdHPBI9pSGgODqf"
        key_mgmt=WPA-PSK
        proto=WPA
        pairwise=TKIP
        group=TKIP
        #psk="k1CdGYxeVAQt5IFsCvkq7nxiZSaO6w3VRDuLAyESdiOTcGCjxlvQMJVYgha2uZb"
        psk=470d9339ddb452cc827f710ffd7a8c6a46f7342a602e76c1273238bddc074d2d
} 
Again i tried to start wap_supplicant with -D ipw as well as -D wext, also tried setting -w

have not found a fix yet

tempestuous
Posts: 5464
Joined: Fri 10 Jun 2005, 05:12
Location: Australia

#12 Post by tempestuous »

Just checking: from http://dotpups.de/dotpups/Wifi/drivers- ... -and-2.01/ you can ONLY extract these packages to use the firmware and hotplug scripts in Puppy 2.10. The modules in these packages are incompatible with the 2.10 kernel, so you must use the ipw2200 module already in Puppy 2.10.

I just found this - http://www.bughost.org/ipw/wpa_howto.txt
It mentions a "wpa_helper_package" from http://www.bughost.org/ipw/ which is used to help compile wpa_supplicant. I will attempt this compilation soon.

tempestuous
Posts: 5464
Joined: Fri 10 Jun 2005, 05:12
Location: Australia

#13 Post by tempestuous »

Well, here's the new wpa_supplicant dotpup, version 0.5.5, but the compile-configuration specified by the "wpa_helper_package" is no different to what I used in the current wpa_supplicant-0.5.4 dotpup.

EDIT Sep 26: wpa_supplicant-0.5.5.pup download removed. Now get it here http://www.dotpups.de/dotpups/Wifi/wireless-utilities/

But the "wpa_helper_package" does include several examples of wpa_supplicant.conf. So I still suspect that the answer is just in getting these settings right.
I included these example configurations in /root/my-applications/wpa_helper_package/
along with other "helper" files such as openssl certificates for EAP/RADIUS authentication ... but I have not compiled the necessary openSSL library, and I don't know anything about this more complex form of "Enterprise" WPA.

The example configuration which I think might work is the one called "WPA_PSK". Even without installing my new dotpup, you could just try it with your current setup. This is its contents:

Code: Select all

ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=0
eapol_version=1
ap_scan=1

network={
        ssid="LOTT_TEST1"
        proto=WPA
        key_mgmt=WPA-PSK
        pairwise=CCMP TKIP
        group=CCMP TKIP WEP104 WEP40
        psk="thisissomereallysecretphrase"
        priority=2
}
The lines which are significantly different to the current wpa_supplicant.conf are "pairwise" and "group".
And I'm still unsure whether you should use "ipw" or "wext" in the main command.
Last edited by tempestuous on Tue 26 Sep 2006, 13:22, edited 1 time in total.

fried
Posts: 32
Joined: Thu 21 Sep 2006, 20:32
Location: The Netherlands

#14 Post by fried »

- reinstalled the newest puppy,
- installed the latest ipw2200 firmware,
- installed the wpa_supplicant you pointed me to and
- used your example wpa_supplicant configuration as well as -D wext -w

and, there is improvement:
the network card associates with the router and starts to negotiate, but then fails.

console output bits:

Code: Select all

State: ASSOCIATING -> ASSOCIATED

Code: Select all

State: ASSOCIATED -> 4WAY_HANDSHAKE

Code: Select all

State: 4WAY_HANDSHAKE -> 4WAY_HANDSHAKE

Code: Select all

ioctl[SIOCSIWENCODEEXT]: Invalid argument
Driver did not support SIOCSIWENCODEEXT
WPA: Failed to set PTK to the driver.
State: 4WAY_HANDSHAKE -> GROUP_HANDSHAKE
EAPOL: startWhen --> 0
EAPOL: SUPP_PAE entering state CONNECTING
EAPOL: txStart
WPA: drop TX EAPOL in non-IEEE 802.1X mode (type=1 len=0)
CTRL-EVENT-TERMINATING - signal 2 received
Removing interface eth1
State: GROUP_HANDSHAKE -> DISCONNECTED

tempestuous
Posts: 5464
Joined: Fri 10 Jun 2005, 05:12
Location: Australia

#15 Post by tempestuous »

EDIT: this module is only compatible with Puppy versions 2.02, 2.10, and 2.11.

Puppy 2.10 does include the ipw2200.ko module, but the michael_mic.ko module is missing. The correct version of this module can be found in the "all-modules-k2.6.16.7-PUP202" package at http://www.puppyos.com/test/
I attach it now. gunzip it into /lib/modules/2.6.16.7/crypto/ then run "depmod".

Don't use the latest version3.0 IPW firmware from http://ipw2200.sourceforge.net/firmware.php This is only for versions 1.1.1 of the ipw2200 driver, and Puppy 2.10 contains version 1.0.8.
Either use v2.4 firmware from the above link, or easier still, my ipw2200-extras package contains the correct version -
http://dotpups.de/dotpups/Wifi/wifi-dri ... extras.pup
Attachments
michael_mic.ko.gz
(1.39 KiB) Downloaded 241 times
Last edited by tempestuous on Thu 01 Mar 2007, 03:43, edited 1 time in total.

fried
Posts: 32
Joined: Thu 21 Sep 2006, 20:32
Location: The Netherlands

#16 Post by fried »

problem solved!

i used
- Puppy 2.10r1-seamonkey
- ipw2200-extras package
- wpa_supplicant dotpup, version 0.5.5
- michael_mic.ko module

have a million thank you's:
http://madduck.net/~madduck/misc/thankyou/

tempestuous
Posts: 5464
Joined: Fri 10 Jun 2005, 05:12
Location: Australia

#17 Post by tempestuous »

fried, that's great.
Quite a few people have contacted me about similar problems. To help me answer such questions, can you please confirm that you included "CCMP" in your wpa_supplicant.conf, and did you change anything else in this file?

Also, can you please edit your first post so that the title includes "Solved".

fried
Posts: 32
Joined: Thu 21 Sep 2006, 20:32
Location: The Netherlands

#18 Post by fried »

this is my wpa_supplicant.conf:

Code: Select all

ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=0
eapol_version=1
ap_scan=1 

network={
	ssid="mylan"
	proto=WPA
	key_mgmt=WPA-PSK
      pairwise= TKIP
     group=TKIP
	psk="testtest"
	priority=2 
}
-i removed CCMP because both my router menu and ubuntu networkmanager showed they were using TKIP. However, it also works with

Code: Select all

    pairwise=CCMP TKIP
    group=CCMP TKIP WEP104 WEP40

and this is the line i use for starting it up:

Code: Select all

wpa_supplicant -i eth1 -D wext -c /etc/wpa_supplicant.conf -w -B

fried
Posts: 32
Joined: Thu 21 Sep 2006, 20:32
Location: The Netherlands

#19 Post by fried »

i just rebooted and started wpa_supplicant with this .conf:

Code: Select all

ctrl_interface=/var/run/wpa_supplicant

network={
	ssid="mylan"
	psk="testtest"
}
and it works as well

tempestuous
Posts: 5464
Joined: Fri 10 Jun 2005, 05:12
Location: Australia

#20 Post by tempestuous »

Thanks.
Since your configuration looks quite "standard" I think that 90% of the solution was simply the addition of the michael_mic module.

Post Reply