Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 4 Mar 2006 11:21:20 +0100
From:      "Dominique Goncalves" <dominique.goncalves@gmail.com>
To:        freebsd-current@freebsd.org
Subject:   hostap mode and wpa-psk with ral(4) problem
Message-ID:  <7daacbbe0603040221i6e1de8a8ifff1079fc25b1084@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
------=_Part_6920_845848.1141467680951
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

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@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/articl=
e.html.

# ifconfig wifi0
wifi0: flags=3D8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 229=
0
        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=3Dwifi0
driver=3Dbsd
logger_syslog=3D-1
logger_syslog_level=3D0
logger_stdout=3D-1
logger_stdout_level=3D0
debug=3D4
dump_file=3D/tmp/hostapd.dump
ctrl_interface=3D/var/run/hostapd
ctrl_interface_group=3Dwheel
ssid=3DBSDNetwork
wpa=3D1
wpa_passphrase=3Dsharedkey
wpa_key_mgmt=3DWPA-PSK
wpa_pairwise=3DTKIP

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 kern=
el:

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."

------=_Part_6920_845848.1141467680951
Content-Type: text/plain; name=dmesg.txt; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Attachment-Id: f_ekdrzlds
Content-Disposition: attachment; filename="dmesg.txt"

Copyright (c) 1992-2006 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
	The Regents of the University of California. All rights reserved.
FreeBSD 7.0-CURRENT #0: Fri Mar  3 22:01:04 CET 2006
    root@djdomics.sceen.net:/usr/obj/usr/src/sys/GENERIC
WARNING: WITNESS option enabled, expect reduced performance.
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: Intel(R) Pentium(R) 4 CPU 2.00GHz (2000.15-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0xf24  Stepping = 4
  Features=0x3febfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM>
real memory  = 268369920 (255 MB)
avail memory = 252887040 (241 MB)
ACPI APIC Table: <AMIINT SiS645XX>
MADT: Forcing active-low polarity and level trigger for SCI
ioapic0 <Version 1.1> irqs 0-23 on motherboard
wlan: mac acl policy registered
npx0: [FAST]
npx0: <math processor> on motherboard
npx0: INT 16 interface
acpi0: <AMIINT SiS645XX> on motherboard
acpi0: Power Button (fixed)
Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000
acpi_timer0: <24-bit timer at 3.579545MHz> port 0x808-0x80b on acpi0
cpu0: <ACPI CPU> on acpi0
acpi_button0: <Power Button> on acpi0
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
agp0: <SiS 645DX host to AGP bridge> on hostb0
pcib1: <PCI-PCI bridge> at device 1.0 on pci0
pci1: <PCI bus> on pcib1
vgapci0: <VGA-compatible display> port 0xa800-0xa8ff mem 0xd0000000-0xd7ffffff,0xdfef0000-0xdfefffff irq 16 at device 0.0 on pci1
isab0: <PCI-ISA bridge> at device 2.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <SiS 962/963 UDMA133 controller> port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xff00-0xff0f at device 2.5 on pci0
ata0: <ATA channel 0> on atapci0
ata1: <ATA channel 1> on atapci0
pcm0: <SiS 7012> port 0xdc00-0xdcff,0xd800-0xd87f irq 18 at device 2.7 on pci0
pcm0: <Avance Logic ALC650 AC97 Codec>
ohci0: <SiS 5571 USB controller> mem 0xdfffc000-0xdfffcfff irq 20 at device 3.0 on pci0
ohci0: [GIANT-LOCKED]
usb0: OHCI version 1.0, legacy support
usb0: <SiS 5571 USB controller> on ohci0
usb0: USB revision 1.0
uhub0: <SiS OHCI root hub, class 9/0, rev 1.00/1.00, addr 1> on usb0
uhub0: 2 ports with 2 removable, self powered
ohci1: <SiS 5571 USB controller> mem 0xdfffe000-0xdfffefff irq 21 at device 3.1 on pci0
ohci1: [GIANT-LOCKED]
usb1: OHCI version 1.0, legacy support
usb1: <SiS 5571 USB controller> on ohci1
usb1: USB revision 1.0
uhub1: <SiS OHCI root hub, class 9/0, rev 1.00/1.00, addr 1> on usb1
uhub1: 2 ports with 2 removable, self powered
ohci2: <SiS 5571 USB controller> mem 0xdffff000-0xdfffffff irq 22 at device 3.2 on pci0
ohci2: [GIANT-LOCKED]
usb2: OHCI version 1.0, legacy support
usb2: <SiS 5571 USB controller> on ohci2
usb2: USB revision 1.0
uhub2: <SiS OHCI root hub, class 9/0, rev 1.00/1.00, addr 1> on usb2
uhub2: 2 ports with 2 removable, self powered
ehci0: <EHCI (generic) USB 2.0 controller> mem 0xdfffd000-0xdfffdfff irq 23 at device 3.3 on pci0
ehci0: [GIANT-LOCKED]
usb3: EHCI version 1.0
usb3: companion controllers, 2 ports each: usb0 usb1 usb2
usb3: <EHCI (generic) USB 2.0 controller> on ehci0
usb3: USB revision 2.0
uhub3: <SiS EHCI root hub, class 9/0, rev 2.00/1.00, addr 1> on usb3
uhub3: 6 ports with 6 removable, self powered
rl0: <RealTek 8139 10/100BaseTX> port 0xd400-0xd4ff mem 0xdfffbf00-0xdfffbfff irq 17 at device 6.0 on pci0
miibus0: <MII bus> on rl0
rlphy0: <RealTek internal media interface> on miibus0
rlphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
rl0: Ethernet address: 00:50:ba:b8:90:da
pci0: <multimedia, audio> at device 7.0 (no driver attached)
ral0: <Ralink Technology RT2500> mem 0xdfff8000-0xdfff9fff irq 19 at device 8.0 on pci0
ral0: MAC/BBP RT2560 (rev 0x04), RF RT2525
ral0: Ethernet address: 00:11:09:29:e4:68
pci0: <multimedia, video> at device 9.0 (no driver attached)
pci0: <multimedia> at device 9.1 (no driver attached)
rl1: <RealTek 8139 10/100BaseTX> port 0xcc00-0xccff mem 0xdfffbe00-0xdfffbeff irq 18 at device 11.0 on pci0
miibus1: <MII bus> on rl1
rlphy1: <RealTek internal media interface> on miibus1
rlphy1:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
rl1: Ethernet address: 00:10:dc:82:9b:d2
fdc0: <floppy drive controller> port 0x3f2-0x3f3,0x3f4-0x3f5,0x3f7 irq 6 drq 2 on acpi0
fdc0: [FAST]
fd0: <1440-KB 3.5" drive> on fdc0 drive 0
sio0: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0
sio0: type 16550A
sio0: [FAST]
sio1: <16550A-compatible COM port> port 0x2f8-0x2ff irq 3 on acpi0
sio1: type 16550A
sio1: [FAST]
ppc0: <Standard parallel printer port> port 0x378-0x37f irq 7 on acpi0
ppc0: Generic chipset (EPP/NIBBLE) in COMPATIBLE mode
ppbus0: <Parallel port bus> on ppc0
plip0: <PLIP network interface> on ppbus0
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
ppi0: <Parallel I/O> on ppbus0
ppc0: [GIANT-LOCKED]
pmtimer0 on isa0
orm0: <ISA Option ROMs> at iomem 0xc0000-0xccfff,0xcd000-0xcf7ff pnpid ORM0000 on isa0
atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
ums0: <Logitech USB Mouse, class 0/0, rev 1.10/6.10, addr 2> on uhub2
ums0: 3 buttons and Z dir.
Timecounter "TSC" frequency 2000151220 Hz quality 800
Timecounters tick every 1.000 msec
ad0: 57241MB <Seagate ST360012A 3.30> at ata0-master UDMA100
ad1: 57241MB <Seagate ST360015A 3.33> at ata0-slave UDMA100
acd0: DVDROM <HL-DT-STDVD-ROM GDR8161B/0100> at ata1-master UDMA33
acd1: CDRW <HL-DT-ST GCE-8481B/1.00> at ata1-slave UDMA33
Trying to mount root from ufs:/dev/ad1s2a
arp: unknown hardware address format (0xfbad)
arp: unknown hardware address format (0x06b5)
arp: unknown hardware address format (0x7597)
arp: unknown hardware address format (0x09fe)
arp: unknown hardware address format (0x7213)
arp: unknown hardware address format (0x1a09)
wifi0: promiscuous mode enabled
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)
wifi0: promiscuous mode disabled




------=_Part_6920_845848.1141467680951
Content-Type: text/plain; name=ifconfig.txt; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Attachment-Id: f_ekds00g6
Content-Disposition: attachment; filename="ifconfig.txt"

net0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
	options=8<VLAN_MTU>
	inet6 fe80::250:baff:feb8:90da%net0 prefixlen 64 scopeid 0x1 
	inet xx.xx.xx.xx netmask 0xffffff00 broadcast xx.xx.xx.xx
	ether 00:50:ba:b8:90:da
	media: Ethernet autoselect (100baseTX <full-duplex>)
	status: active
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
lan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
	options=8<VLAN_MTU>
	inet6 fe80::210:dcff:fe82:9bd2%lan0 prefixlen 64 scopeid 0x3 
	inet 192.168.0.254 netmask 0xffffff00 broadcast 192.168.0.255
	ether 00:10:dc:82:9b:d2
	media: Ethernet autoselect (none)
	status: no carrier
plip0: flags=108810<POINTOPOINT,SIMPLEX,MULTICAST,NEEDSGIANT> mtu 1500
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
	inet6 ::1 prefixlen 128 
	inet6 fe80::1%lo0 prefixlen 64 scopeid 0x5 
	inet 127.0.0.1 netmask 0xff000000 




------=_Part_6920_845848.1141467680951--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?7daacbbe0603040221i6e1de8a8ifff1079fc25b1084>