hostap mode and wpa-psk with ral(4) problem

From: Dominique Goncalves <dominique.goncalves_at_gmail.com>
Date: Sat, 4 Mar 2006 11:21:20 +0100
Hi,

I would like create a FreeBSD access point with hostapd and wpa-psk
mode with ral(4) to connect my Sony PSP (firmware 2.60).
ral0: <Ralink Technology RT2500> mem 0xdfff8000-0xdfff9fff irq 19 at device 8.0
on pci0 on
FreeBSD 7.0-CURRENT #0: Fri Mar  3 22:01:04 CET 2006
root_at_djdomics.sceen.net:/usr/obj/usr/src/sys/GENERIC


I've followed this documentation
http://www.freebsdmall.com/~loader/en_US.ISO8859-1/articles/wireless/article.html.

# ifconfig wifi0
wifi0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 2290
        inet6 fe80::211:9ff:fe29:e468%wifi0 prefixlen 64 scopeid 0x2
        inet 192.168.1.254 netmask 0xffffff00 broadcast 192.168.1.255
        ether 00:11:09:29:e4:68
        media: IEEE 802.11 Wireless Ethernet autoselect <hostap>
(autoselect <hostap>)
        status: associated
        ssid BSDNetwork channel 1 bssid 00:11:09:29:e4:68
        authmode WPA privacy MIXED deftxkey 2 TKIP 2:128-bit txpowmax 100
        protmode CTS dtimperiod 1 bintval 100

# cat hostapd.conf
interface=wifi0
driver=bsd
logger_syslog=-1
logger_syslog_level=0
logger_stdout=-1
logger_stdout_level=0
debug=4
dump_file=/tmp/hostapd.dump
ctrl_interface=/var/run/hostapd
ctrl_interface_group=wheel
ssid=BSDNetwork
wpa=1
wpa_passphrase=sharedkey
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP

On my Sony PSP:
ip:192.168.1.1
netmask: 255.255.255.0
gw: 192.168.1.254
ssid: BSDNetwork
pass-phrase: sharedkey
WPA-PSK TKIP mode

I can't connect my PSP, on FreeBSD I've always these messages from the kernel:

arp: unknown hardware address format (0x821a)
arp: unknown hardware address format (0x4805)
arp: unknown hardware address format (0x432f)
arp: unknown hardware address format (0xe7fe)
arp: unknown hardware address format (0x4838)
arp: unknown hardware address format (0xd48c)

With tcpdump, I can see the connection but with a lot of
'truncated-arp' (full tcpdump is attached):

10:45:56.670590 truncated-arp
        0x0000:  e7fe cb90 9646 dc75 3574 e50b 4f9b 56fc  .....F.u5t..O.V.
        0x0010:  61f0 b35e 0b4b 526c 7739 fc07 57f5 afe6  a..^.KRlw9..W...
        0x0000:  e7fe cb90 9646 dc75 3574 e50b 4f9b 56fc  .....F.u5t..O.V.
        0x0010:  61f0 b35e 0b4b 526c 7739 fc07 57f5 afe6  a..^.KRlw9..W...

and hostapd hangs at this point (full log is attached):

WPA: 00:01:4a:8c:f7:47 WPA_PTK_GROUP entering state IDLE

wlan* modules are loaded:
Id Refs Address    Size     Name
 1   22 0xc0400000 6c52d4   kernel
 2    1 0xc0ac6000 5f88     snd_ich.ko
 3    2 0xc0acc000 237fc    sound.ko
 4    1 0xc0af0000 2eac     wlan_wep.ko
 5    1 0xc0af3000 42d0     wlan_tkip.ko
 6    1 0xc0af8000 6fb8     wlan_ccmp.ko
 7    1 0xc0aff000 1b98     wlan_xauth.ko
 8    1 0xc0b01000 2e94     wlan_acl.ko
 9    1 0xc0b04000 5a134    acpi.ko
10    1 0xc252d000 2f000    pf.ko
11    1 0xc2707000 16000    linux.ko
12    1 0xc2738000 3000     daemon_saver.ko

Let me know if you need more information.
Any help is much appreciated.

Regards.

--
There's this old saying: "Give a man a fish, feed him for a day. Teach
a man to fish, feed him for life."

Received on Sat Mar 04 2006 - 09:21:23 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:53 UTC