wpa_supplicant failure -- ieee80211_crypt_tkip: could not allocate crypto API arc4 -- fails on PDA, works on desktop.

Joshua Layne joshua at willowisp.net
Sun Nov 4 11:58:11 EST 2007


Hi,
I am cross posting this from the angstrom user list - I originally 
thought it was likely a distro issue (Angstrom 2007.1 pre-release), but 
I am not so sure now. (original thread here: 
http://news.gmane.org/gmane.linux.distributions.angstrom.user -- title 
is misleading, sorry about that, all relevant information (and more) is 
below though).

My system is an HP iPaq h2200 running Angstrom 2007.1 pre-release 
(kernel 2.6.21-hh7).  My card is a Linksys WCF12 running 1.1.1/1.7.4 
firmware.  and it works on the same network in a debian etch desktop 
system (kernel 2.6.18.4) - using exactly the same configuration file 
(/etc/wpa_supplicant.conf) and an lsmod shows no obvious (at least to 
me) differences in modules (included below).  Both systems are running 
wpa_supplicant v0.5.5 and using the hostap built into their respective 
kernel versions (which I can't imagine is that different).

I found this page while troubleshooting: 
http://readlist.com/lists/shmoo.com/hostap/0/2830.html and so added more 
modules than I had originally thought necessary (arc4 and michael-mic), 
but it didn't help.

I built and installed these modules:
-- 
(these were needed for WPA)
kernel-module-ieee80211-crypt-ccmp
kernel-module-ieee80211-crypt-tkip
kernel-module-crypto-algapi
kernel-module-arc4
kernel-module-aes
kernel-module-michael-mic
-- 

My /etc/wpa_supplicant.conf (identical file used in both systems, bssid 
and PSK munged for my comfort)
---
ctrl_interface=/var/run/wpa_supplicant
eapol_version=1
fast_reauth=1
network={
   ssid="bamboo"
   bssid=MA:CA:DD:RE:SS
   proto=WPA RSN
   key_mgmt=WPA-PSK
   psk=MYPSKINHEXGENERATEDBYWPAPASSPHRASE
   pairwise=TKIP CCMP
   group=TKIP CCMP
   priority=10
}

then I ran:
'wpa_supplicant -Dhostap -iwlan0 -c/etc/wpa_supplicant.conf -dd'

*However*, I am still getting an error message on the PDA - both in 
wpa_supplicant:

---
WPA: RSC - hexdump(len=6): 00 00 00 00 00 00
wpa_driver_hostap_set_key: alg=TKIP key_idx=0 set_tx=1 seq_len=6 key_len=32
ioctl[PRISM2_IOCTL_HOSTAPD]: Invalid argument
Failed to set encryption.
Crypt algorithm initialization failed.
WPA: Failed to set PTK to the driver.
---

and in dmesg:
---
<7>[ 1855.940000] wifi0: LinkStatus=2 (Disconnected)
<7>[ 1855.940000] wifi0: LinkStatus: BSSID=44:44:44:44:44:44
<7>[ 1855.960000] wlan0: Trying to join BSSID 00:13:10:fb:0c:d1
<7>[ 1855.980000] wifi0: LinkStatus=1 (Connected)
<7>[ 1855.980000] wifi0: LinkStatus: BSSID=00:13:10:fb:0c:d1
<7>[ 1857.100000] ieee80211_crypt_tkip: could not allocate crypto API arc4
<7>[ 1858.500000] wlan0: manual reset request(2)
<7>[ 1858.510000] wifi0: LinkStatus=2 (Disconnected)
---

Again, the desktop system works fine.  I've included the lsmod output of 
both systems below if that helps.  Thanks in advance for any insight.

Best Regards,
Joshua Layne


desktop lsmod (working config):
---
slate:~# lsmod
Module                  Size  Used by
michael_mic             2592  2
arc4                    2112  2
ieee80211_crypt_tkip    10048  0
ext2                   59976  0
sd_mod                 19488  0
usb_storage            75744  0
ppdev                   8836  0
lp                     11236  0
thermal                13864  0
fan                     4996  0
button                  6800  0
processor              30856  1 thermal
ac                      5284  0
battery                 9828  0
ipv6                  230752  41
dm_snapshot            16416  0
dm_mirror              20656  0
sbp2                   21832  0
scsi_mod              127272  3 sd_mod,usb_storage,sbp2
loop                   15752  0
hostap_cs              55988  3
hostap                100932  1 hostap_cs
ieee80211_crypt         5984  2 ieee80211_crypt_tkip,hostap
eth1394                17988  0
snd_via82xx            26488  2
gameport               15112  1 snd_via82xx
snd_ac97_codec         83296  1 snd_via82xx
snd_ac97_bus            2400  1 snd_ac97_codec
snd_pcm_oss            40928  0
snd_mixer_oss          15648  1 snd_pcm_oss
snd_pcm                71460  3 snd_via82xx,snd_ac97_codec,snd_pcm_oss
snd_page_alloc          9736  2 snd_via82xx,snd_pcm
snd_mpu401_uart         8128  1 snd_via82xx
snd_seq_dummy           3940  0
snd_seq_oss            29792  0
snd_seq_midi            8288  0
snd_seq_midi_event      7008  2 snd_seq_oss,snd_seq_midi
snd_seq                46640  6 
snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_seq_midi_event
via_ircc               25076  0
irda                  160636  1 via_ircc
floppy                 55492  0
crc_ccitt               2240  1 irda
snd_timer              22212  2 snd_pcm,snd_seq
snd_rawmidi            23040  2 snd_mpu401_uart,snd_seq_midi
snd_seq_device          7820  5 
snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_seq,snd_rawmidi
parport_pc             32708  1
parport                33800  3 ppdev,lp,parport_pc
pcmcia                 35036  1 hostap_cs
firmware_class          9792  1 pcmcia
i2c_viapro              8244  0
i2c_core               19936  1 i2c_viapro
rtc                    12820  0
snd                    47844  15 
snd_via82xx,snd_ac97_codec,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_mpu401_uart,snd_seq_oss,snd_seq,snd_timer,snd_rawmidi,snd_seq_device 

psmouse                35688  0
via_rhine              23080  0
shpchp                 33472  0
via_agp                 9632  1
agpgart                32200  1 via_agp
soundcore               9440  1 snd
serio_raw               6980  0
mii                     5472  1 via_rhine
pci_hotplug            29248  1 shpchp
pcspkr                  3072  0
ehci_hcd               29288  0
uhci_hcd               21868  0
usbcore               116100  4 usb_storage,ehci_hcd,uhci_hcd
ohci1394               31408  0
ieee1394               90456  3 sbp2,eth1394,ohci1394
yenta_socket           25004  4
rsrc_nonstatic         12064  1 yenta_socket
pcmcia_core            38356  4 
hostap_cs,pcmcia,yenta_socket,rsrc_nonstatic
ext3                  121224  6
jbd                    53800  1 ext3
mbcache                 8452  2 ext2,ext3
dm_mod                 53304  15 dm_snapshot,dm_mirror
via82cxxx               8836  0 [permanent]
evdev                   9568  1
---

PDA lsmod (not working):
---
root at h2200:~$ lsmod
Module                  Size  Used by
ieee80211_crypt_tkip    10368  0
arc4                    1600  0
michael_mic             2208  0
hostap_cs              58452  3
hostap                108036  1 hostap_cs
ieee80211_crypt         4800  2 ieee80211_crypt_tkip,hostap
crypto_algapi          10304  2 arc4,michael_mic
snd_pcm_oss            41120  0
snd_pcm                74085  1 snd_pcm_oss
snd_timer              20388  1 snd_pcm
snd_page_alloc          5832  1 snd_pcm
snd_mixer_oss          14816  1 snd_pcm_oss
snd                    46388  4 snd_pcm_oss,snd_pcm,snd_timer,snd_mixer_oss
rfcomm                 35996  2
ircomm_tty             36904  0
ircomm                 21060  1 ircomm_tty
irda                  193484  2 ircomm_tty,ircomm
hidp                   14944  0
hid                    26272  1 hidp
l2cap                  20484  10 rfcomm,hidp
bluetooth              49344  5 rfcomm,hidp,l2cap
---





More information about the HostAP mailing list