Hello,

Trying to merge the access point with the LEAF wrap box but having some
problems with hostapd.  The wlan comes up and I can see the SSID but I
am unable to complete the connection to it.  I tried with a couple
of /etc/hostapd/hostapd.conf versions.  I'm attaching several files,
they are as follows:
        router_info shows general info on the router when I ran the two configs
        hostapd.conf-2 is from the online doco (modified slightly to fix a few
errors in it).
        hostapd_debug-2 is the output from running:
        /usr/sbin/hostapd -dddd /etc/hostapd/hostapd.conf
        with hostapd.conf-2 as hostapd.conf (only one cycle of connection
failure is included for brevity).  
        hostapd.conf-1 is from the leaf-devel mailing list in October 20101 and
contains a config that KP Kirchdoerfer seemed to claim worked for him on
2.6.35.2 kernel.
        hostapd_debug-1 is the output from running /usr/sbin/hostapd
-dddd /etc/hostapd/hostapd.conf with hostapd.conf-1 as hostapd.conf.

Both seem to fail with: nl80211: set_key failed; err=-12 Cannot allocate
memory).  Any suggestions or assistance would be appreciated.  Let me
know if there is more info needed or you want me to try something.
Thanks,
-- 
Trev Peterson
Advanced Reality
Email: t...@advanced-reality.com
Phone: +1 847 406 9018
interface=wlan0
driver=nl80211
logger_syslog=-1
logger_syslog_level=1
logger_stdout=-1
logger_stdout_level=2
dump_file=/tmp/hostapd.dump
ctrl_interface=/var/run/hostapd
ctrl_interface_group=0
ssid=reality2
hw_mode=g
channel=6
beacon_int=500
supported_rates=10 20 55 110 60 90 120 180 240 360 480 #540 1080
wpa=3
wpa_passphrase=testtest
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP CCMP

interface=wlan0
driver=nl80211
logger_syslog=-1
logger_syslog_level=1
logger_stdout=-1
logger_stdout_level=2
ctrl_interface=/var/run/hostapd
hw_mode=g
channel=6 #(should be the same as in /etc/network/interfaces)
ssid=reality2
macaddr_acl=0
auth_algs=3
ignore_broadcast_ssid=0
wme_enabled=0
wpa=3
wpa_passphrase=testtest
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP CCMP
eap_server=0
eapol_key_index_workaround=0

STA 00:21:6a:32:7d:6c sent probe request for our SSID
mgmt::proberesp cb
mgmt::auth
authentication: STA=00:21:6a:32:7d:6c auth_alg=0 auth_transaction=1 status_code
=0 wep=0
  New STA
wlan0: STA 00:21:6a:32:7d:6c IEEE 802.11: authentication OK (open system)
wlan0: STA 00:21:6a:32:7d:6c MLME: MLME-AUTHENTICATE.indication(00:21:6a:32:7d:
6c, OPEN_SYSTEM)
wlan0: STA 00:21:6a:32:7d:6c MLME: MLME-DELETEKEYS.request(00:21:6a:32:7d:6c)
authentication reply: STA=00:21:6a:32:7d:6c auth_alg=0 auth_transaction=2 resp=
0 (IE len=0)
mgmt::auth cb
wlan0: STA 00:21:6a:32:7d:6c IEEE 802.11: authenticated
mgmt::assoc_req
association request: STA=00:21:6a:32:7d:6c capab_info=0x431 listen_interval=10
  new AID 1
wlan0: STA 00:21:6a:32:7d:6c IEEE 802.11: association OK (aid 1)
mgmt::assoc_resp cb
wlan0: STA 00:21:6a:32:7d:6c IEEE 802.11: associated (aid 1)
wlan0: STA 00:21:6a:32:7d:6c MLME: MLME-ASSOCIATE.indication(00:21:6a:32:7d:6c)
wlan0: STA 00:21:6a:32:7d:6c MLME: MLME-DELETEKEYS.request(00:21:6a:32:7d:6c)
wpa_driver_nl80211_set_key: ifindex=8 alg=0 addr=0x80a9e20 key_idx=0 set_tx=1 s
eq_len=0 key_len=0
   addr=00:21:6a:32:7d:6c
wlan0: STA 00:21:6a:32:7d:6c WPA: event 1 notification
wpa_driver_nl80211_set_key: ifindex=8 alg=0 addr=0x80a9e20 key_idx=0 set_tx=1 s
eq_len=0 key_len=0
   addr=00:21:6a:32:7d:6c
wlan0: STA 00:21:6a:32:7d:6c WPA: start authentication
WPA: 00:21:6a:32:7d:6c WPA_PTK entering state INITIALIZE
wpa_driver_nl80211_set_key: ifindex=8 alg=0 addr=0x80a9e20 key_idx=0 set_tx=1 s
eq_len=0 key_len=0
   addr=00:21:6a:32:7d:6c
wlan0: STA 00:21:6a:32:7d:6c IEEE 802.1X: unauthorizing port
WPA: 00:21:6a:32:7d:6c WPA_PTK_GROUP entering state IDLE
WPA: 00:21:6a:32:7d:6c WPA_PTK entering state AUTHENTICATION
WPA: 00:21:6a:32:7d:6c WPA_PTK entering state AUTHENTICATION2
WPA: 00:21:6a:32:7d:6c WPA_PTK entering state INITPSK
WPA: 00:21:6a:32:7d:6c WPA_PTK entering state PTKSTART
wlan0: STA 00:21:6a:32:7d:6c WPA: sending 1/4 msg of 4-Way Handshake
WPA: Send EAPOL(version=2 secure=0 mic=0 ack=1 install=0 pairwise=8 kde_len=0 k
eyidx=0 encr=0)
nl80211: Event message available
nl80211: Ignored unknown event (cmd=19)
IEEE 802.1X: 00:21:6a:32:7d:6c TX status - version=2 type=3 length=95 - ack=1
IEEE 802.1X: 121 bytes from 00:21:6a:32:7d:6c
   IEEE 802.1X: version=1 type=3 length=117
wlan0: STA 00:21:6a:32:7d:6c WPA: received EAPOL-Key frame (2/4 Pairwise)
WPA: 00:21:6a:32:7d:6c WPA_PTK entering state PTKCALCNEGOTIATING
WPA: PTK derivation - A1=d8:5d:4c:e6:17:ba A2=00:21:6a:32:7d:6c
WPA: PMK - hexdump(len=32): [REMOVED]
WPA: PTK - hexdump(len=48): [REMOVED]
WPA: 00:21:6a:32:7d:6c WPA_PTK entering state PTKCALCNEGOTIATING2
WPA: 00:21:6a:32:7d:6c WPA_PTK entering state PTKINITNEGOTIATING
wlan0: STA 00:21:6a:32:7d:6c WPA: sending 3/4 msg of 4-Way Handshake
WPA: Send EAPOL(version=2 secure=1 mic=1 ack=1 install=1 pairwise=8 kde_len=94 
keyidx=1 encr=1)
Plaintext EAPOL-Key Key Data - hexdump(len=104): [REMOVED]
IEEE 802.1X: 00:21:6a:32:7d:6c TX status - version=2 type=3 length=199 - ack=1
IEEE 802.1X: 99 bytes from 00:21:6a:32:7d:6c
   IEEE 802.1X: version=1 type=3 length=95
wlan0: STA 00:21:6a:32:7d:6c WPA: received EAPOL-Key frame (4/4 Pairwise)
WPA: 00:21:6a:32:7d:6c WPA_PTK entering state PTKINITDONE
wpa_driver_nl80211_set_key: ifindex=8 alg=3 addr=0x80a9e20 key_idx=0 set_tx=1 s
eq_len=0 key_len=16
   addr=00:21:6a:32:7d:6c
nl80211: set_key failed; err=-12 Cannot allocate memory)
hostapd_wpa_auth_disconnect: WPA authenticator requests disconnect: STA 00:21:6
a:32:7d:6c reason 2
wlan0: STA 00:21:6a:32:7d:6c IEEE 802.11: deauthenticated due to local deauth r
equest

STA 00:21:6a:32:7d:6c sent probe request for our SSID
mgmt::proberesp cb
mgmt::auth
authentication: STA=00:21:6a:32:7d:6c auth_alg=0 auth_transaction=1 
status_code=0 wep=0
  New STA
wlan0: STA 00:21:6a:32:7d:6c IEEE 802.11: authentication OK (open system)
wlan0: STA 00:21:6a:32:7d:6c MLME: 
MLME-AUTHENTICATE.indication(00:21:6a:32:7d:6c, OPEN_SYSTEM)
wlan0: STA 00:21:6a:32:7d:6c MLME: MLME-DELETEKEYS.request(00:21:6a:32:7d:6c)
authentication reply: STA=00:21:6a:32:7d:6c auth_alg=0 auth_transaction=2 
resp=0 (IE len=0)
mgmt::auth cb
wlan0: STA 00:21:6a:32:7d:6c IEEE 802.11: authenticated
mgmt::assoc_req
association request: STA=00:21:6a:32:7d:6c capab_info=0x431 listen_interval=10
  new AID 1
wlan0: STA 00:21:6a:32:7d:6c IEEE 802.11: association OK (aid 1)
mgmt::assoc_resp cb
wlan0: STA 00:21:6a:32:7d:6c IEEE 802.11: associated (aid 1)
wlan0: STA 00:21:6a:32:7d:6c MLME: MLME-ASSOCIATE.indication(00:21:6a:32:7d:6c)
wlan0: STA 00:21:6a:32:7d:6c MLME: MLME-DELETEKEYS.request(00:21:6a:32:7d:6c)
wpa_driver_nl80211_set_key: ifindex=8 alg=0 addr=0x80a9de8 key_idx=0 set_tx=1 
seq_len=0 key_len=0
   addr=00:21:6a:32:7d:6c
wlan0: STA 00:21:6a:32:7d:6c WPA: event 1 notification
wpa_driver_nl80211_set_key: ifindex=8 alg=0 addr=0x80a9de8 key_idx=0 set_tx=1 
seq_len=0 key_len=0
   addr=00:21:6a:32:7d:6c
wlan0: STA 00:21:6a:32:7d:6c WPA: start authentication
WPA: 00:21:6a:32:7d:6c WPA_PTK entering state INITIALIZE
wpa_driver_nl80211_set_key: ifindex=8 alg=0 addr=0x80a9de8 key_idx=0 set_tx=1 
seq_len=0 key_len=0
   addr=00:21:6a:32:7d:6c
wlan0: STA 00:21:6a:32:7d:6c IEEE 802.1X: unauthorizing port
WPA: 00:21:6a:32:7d:6c WPA_PTK_GROUP entering state IDLE
WPA: 00:21:6a:32:7d:6c WPA_PTK entering state AUTHENTICATION
WPA: 00:21:6a:32:7d:6c WPA_PTK entering state AUTHENTICATION2
WPA: 00:21:6a:32:7d:6c WPA_PTK entering state INITPSK
WPA: 00:21:6a:32:7d:6c WPA_PTK entering state PTKSTART
wlan0: STA 00:21:6a:32:7d:6c WPA: sending 1/4 msg of 4-Way Handshake
WPA: Send EAPOL(version=2 secure=0 mic=0 ack=1 install=0 pairwise=8 kde_len=0 
keyidx=0 encr=0)
nl80211: Event message available
nl80211: Ignored unknown event (cmd=19)
IEEE 802.1X: 00:21:6a:32:7d:6c TX status - version=2 type=3 length=95 - ack=1
IEEE 802.1X: 121 bytes from 00:21:6a:32:7d:6c
   IEEE 802.1X: version=1 type=3 length=117
wlan0: STA 00:21:6a:32:7d:6c WPA: received EAPOL-Key frame (2/4 Pairwise)
WPA: 00:21:6a:32:7d:6c WPA_PTK entering state PTKCALCNEGOTIATING
WPA: PTK derivation - A1=d8:5d:4c:e6:17:ba A2=00:21:6a:32:7d:6c
WPA: PMK - hexdump(len=32): [REMOVED]
WPA: PTK - hexdump(len=48): [REMOVED]
WPA: 00:21:6a:32:7d:6c WPA_PTK entering state PTKCALCNEGOTIATING2
WPA: 00:21:6a:32:7d:6c WPA_PTK entering state PTKINITNEGOTIATING
wlan0: STA 00:21:6a:32:7d:6c WPA: sending 3/4 msg of 4-Way Handshake
WPA: Send EAPOL(version=2 secure=1 mic=1 ack=1 install=1 pairwise=8 kde_len=94 
keyidx=1 encr=1)
Plaintext EAPOL-Key Key Data - hexdump(len=104): [REMOVED]
IEEE 802.1X: 00:21:6a:32:7d:6c TX status - version=2 type=3 length=199 - ack=1
IEEE 802.1X: 99 bytes from 00:21:6a:32:7d:6c
   IEEE 802.1X: version=1 type=3 length=95
wlan0: STA 00:21:6a:32:7d:6c WPA: received EAPOL-Key frame (4/4 Pairwise)
WPA: 00:21:6a:32:7d:6c WPA_PTK entering state PTKINITDONE
wpa_driver_nl80211_set_key: ifindex=8 alg=3 addr=0x80a9de8 key_idx=0 set_tx=1 
seq_len=0 key_len=16
   addr=00:21:6a:32:7d:6c
nl80211: set_key failed; err=-12 Cannot allocate memory)
hostapd_wpa_auth_disconnect: WPA authenticator requests disconnect: STA 
00:21:6a:32:7d:6c reason 2
wlan0: STA 00:21:6a:32:7d:6c IEEE 802.11: deauthenticated due to local deauth 
request

Running leaf bering 4.0 RC1 on wrap pc
Installed using Bering-uClibc_4.0-rc1_i486_syslinux_ser.tar.gz

firewall# cat /etc/issue
LEAF Bering-uClibc 4.0.0 Rev 12 uClibc 0.9.30.3  \n \l

firewall# uname -a
Linux firewall 2.6.35.11-i486 #1 Sat Apr 2 12:52:32 CEST 2011 i586 GNU/Linux

Wifi card is:
TP-LINK TL-WN861N ver 2.0 802.11b/g/n mini-pci
lspci output for wifi card:
00:0d.0 Class 0280: 168c:0029
ath9k module is loaded and bound to this card

wlan card is:

firewall# df
Filesystem           1K-blocks      Used Available Use% Mounted on
root                     40960     17900     23060  44% /
tmpfs                     8192         0      8192   0% /tmp
tmpfs                     8192       464      7728   6% /var/log

firewall# cat /proc/meminfo
MemTotal:         126528 kB
MemFree:           96792 kB
Buffers:               0 kB
Cached:            17996 kB
SwapCached:            0 kB
Active:            13944 kB
Inactive:           5048 kB
Active(anon):      13944 kB
Inactive(anon):     5048 kB
Active(file):          0 kB
Inactive(file):        0 kB
Unevictable:           0 kB
Mlocked:               0 kB
HighTotal:             0 kB
HighFree:              0 kB
LowTotal:         126528 kB
LowFree:           96792 kB
SwapTotal:             0 kB
SwapFree:              0 kB
Dirty:                 0 kB
Writeback:             0 kB
AnonPages:          1008 kB
Mapped:              808 kB
Shmem:             17996 kB
Slab:               8136 kB
SReclaimable:        896 kB
SUnreclaim:         7240 kB
KernelStack:         264 kB
PageTables:          140 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:       63264 kB
Committed_AS:      20524 kB
VmallocTotal:    1949688 kB
VmallocUsed:        1808 kB
VmallocChunk:    1940984 kB
HugePages_Total:       0
HugePages_Free:        0
HugePages_Rsvd:        0
HugePages_Surp:        0
Hugepagesize:       4096 kB
DirectMap4k:      131072 kB
DirectMap4M:           0 kB

firewall# lsmod
    Not tainted
ipt_MASQUERADE 1018 3 - Live 0x89045000
ip6table_filter 731 1 - Live 0x88ff6000
ip6_tables 8095 1 ip6table_filter, Live 0x88fea000
ipt_LOG 3571 14 - Live 0x88f9d000
xt_time 1303 0 - Live 0x88f79000
xt_connlimit 2105 0 - Live 0x88f62000
xt_helper 835 0 - Live 0x88f4b000
xt_realm 559 0 - Live 0x88f35000
xt_NFQUEUE 1389 0 - Live 0x88f18000
xt_tcpmss 881 0 - Live 0x88f08000
xt_tcpudp 1547 26 - Live 0x88eff000
ipt_addrtype 1237 2 - Live 0x88ee1000
xt_pkttype 623 0 - Live 0x88ed2000
iptable_raw 699 0 - Live 0x88ebf000
xt_TPROXY 897 0 - Live 0x88e9a000
nf_tproxy_core 1106 1 xt_TPROXY,[permanent], Live 0x88e91000
xt_CLASSIFY 557 0 - Live 0x88e7e000
xt_mark 685 1 - Live 0x88e45000
xt_hashlimit 4902 0 - Live 0x88e1d000
xt_comment 539 28 - Live 0x88e0b000
ipt_REJECT 1461 4 - Live 0x88df5000
xt_length 720 0 - Live 0x88dde000
xt_connmark 1145 0 - Live 0x88db4000
xt_owner 715 0 - Live 0x88d9d000
xt_recent 5344 0 - Live 0x88d8d000
xt_iprange 948 0 - Live 0x88d75000
xt_multiport 1130 4 - Live 0x88d4b000
iptable_mangle 876 1 - Live 0x88d1b000
iptable_nat 2718 1 - Live 0x88cea000
nf_nat 10387 2 ipt_MASQUERADE,iptable_nat, Live 0x88cdc000
nf_conntrack_ipv4 7031 21 iptable_nat,nf_nat, Live 0x88cc6000
nf_defrag_ipv4 791 2 xt_TPROXY,nf_conntrack_ipv4, Live 0x88cb9000
xt_conntrack 1863 18 - Live 0x88cad000
nf_conntrack 38055 8 
ipt_MASQUERADE,xt_connlimit,xt_helper,xt_connmark,iptable_nat,nf_nat,nf_conntrack_ipv4,0
iptable_filter 776 1 - Live 0x88c64000
ip_tables 7225 4 iptable_raw,iptable_mangle,iptable_nat,iptable_filter, Live 
0x88c59000
x_tables 8490 31 
ipt_MASQUERADE,ip6table_filter,ip6_tables,ipt_LOG,xt_time,xt_connlimit,xt_helper,xt_realm,x0
ipv6 170434 16 - Live 0x88c05000
arc4 942 2 - Live 0x88bbb000
ecb 1357 2 - Live 0x88bb2000
ath9k 56381 0 - Live 0x88b87000
led_class 1531 1 ath9k, Live 0x88b69000
ath9k_common 3442 1 ath9k, Live 0x88b5f000
ath9k_hw 244138 2 ath9k,ath9k_common, Live 0x88b11000
ath 6170 2 ath9k,ath9k_hw, Live 0x88ac4000
mac80211 114335 2 ath9k,ath9k_common, Live 0x88a96000
cfg80211 104239 4 ath9k,ath9k_common,ath,mac80211, Live 0x88a44000
rfkill 10150 1 cfg80211, Live 0x88a10000
pcspkr 1131 0 - Live 0x88a01000
sch_sfq 3847 0 - Live 0x889f7000
sch_htb 10429 0 - Live 0x889eb000
cls_u32 4783 0 - Live 0x889dd000
sch_ingress 1036 0 - Live 0x889d2000
sch_prio 2608 0 - Live 0x889c9000
sch_tbf 2859 0 - Live 0x889bf000
cls_flow 4677 0 - Live 0x889b4000
cls_fw 2689 0 - Live 0x889a9000
act_police 2752 0 - Live 0x8899f000
ifb 1685 0 - Live 0x88995000
8021q 12948 0 - Live 0x88987000
softdog 1882 2 - Live 0x88978000
tun 9679 0 - Live 0x8896b000
natsemi 17876 0 - Live 0x8894c000
bitrev 831 2 tun,natsemi, Live 0x8893c000
crc32 8979 3 mac80211,tun,natsemi, Live 0x88931000
sd_mod 20212 0 - Live 0x88921000
pata_sc1200 1898 0 - Live 0x88910000
pata_acpi 1908 0 - Live 0x88906000
ata_generic 2051 0 - Live 0x888fc000
libata 115080 3 pata_sc1200,pata_acpi,ata_generic, Live 0x888c7000
scsi_mod 93388 2 sd_mod,libata, Live 0x8886e000
vfat 6518 0 - Live 0x8883b000
fat 34404 1 vfat, Live 0x88825000
isofs 17067 0 - Live 0x88809000

------------------------------------------------------------------------------
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay
------------------------------------------------------------------------
leaf-user mailing list: leaf-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/leaf-user
Support Request -- http://leaf-project.org/

Reply via email to