From owner-freebsd-current@FreeBSD.ORG Sat Mar 4 10:21:23 2006 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B4C2316A422 for ; Sat, 4 Mar 2006 10:21:23 +0000 (GMT) (envelope-from dominique.goncalves@gmail.com) Received: from nproxy.gmail.com (nproxy.gmail.com [64.233.182.192]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5631843D4C for ; Sat, 4 Mar 2006 10:21:22 +0000 (GMT) (envelope-from dominique.goncalves@gmail.com) Received: by nproxy.gmail.com with SMTP id l35so617490nfa for ; Sat, 04 Mar 2006 02:21:21 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type; b=X5bk0u+znQCreZbUl5IpiAMt5oHVlbOcJK80SIgVnOAqayRUSPeXKe1smj/N8Fh/RcCJT6a4XFguxTOlV0tpxwOkY541c7HGohv17j82nmDbfyQeYN7edPuegT0t2X41tR9KhX/0nEAdR19emzW6+q+E58KTC2lAllKGF8PTP3g= Received: by 10.48.157.8 with SMTP id f8mr400797nfe; Sat, 04 Mar 2006 02:21:20 -0800 (PST) Received: by 10.48.255.6 with HTTP; Sat, 4 Mar 2006 02:21:20 -0800 (PST) Message-ID: <7daacbbe0603040221i6e1de8a8ifff1079fc25b1084@mail.gmail.com> Date: Sat, 4 Mar 2006 11:21:20 +0100 From: "Dominique Goncalves" To: freebsd-current@freebsd.org MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_6920_845848.1141467680951" X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: hostap mode and wpa-psk with ral(4) problem X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 04 Mar 2006 10:21:24 -0000 ------=_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: 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 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 (autoselect ) 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 real memory = 268369920 (255 MB) avail memory = 252887040 (241 MB) ACPI APIC Table: MADT: Forcing active-low polarity and level trigger for SCI ioapic0 irqs 0-23 on motherboard wlan: mac acl policy registered npx0: [FAST] npx0: on motherboard npx0: INT 16 interface acpi0: 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: on acpi0 acpi_button0: on acpi0 pcib0: port 0xcf8-0xcff on acpi0 pci0: on pcib0 agp0: on hostb0 pcib1: at device 1.0 on pci0 pci1: on pcib1 vgapci0: port 0xa800-0xa8ff mem 0xd0000000-0xd7ffffff,0xdfef0000-0xdfefffff irq 16 at device 0.0 on pci1 isab0: at device 2.0 on pci0 isa0: on isab0 atapci0: port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xff00-0xff0f at device 2.5 on pci0 ata0: on atapci0 ata1: on atapci0 pcm0: port 0xdc00-0xdcff,0xd800-0xd87f irq 18 at device 2.7 on pci0 pcm0: ohci0: mem 0xdfffc000-0xdfffcfff irq 20 at device 3.0 on pci0 ohci0: [GIANT-LOCKED] usb0: OHCI version 1.0, legacy support usb0: on ohci0 usb0: USB revision 1.0 uhub0: on usb0 uhub0: 2 ports with 2 removable, self powered ohci1: mem 0xdfffe000-0xdfffefff irq 21 at device 3.1 on pci0 ohci1: [GIANT-LOCKED] usb1: OHCI version 1.0, legacy support usb1: on ohci1 usb1: USB revision 1.0 uhub1: on usb1 uhub1: 2 ports with 2 removable, self powered ohci2: mem 0xdffff000-0xdfffffff irq 22 at device 3.2 on pci0 ohci2: [GIANT-LOCKED] usb2: OHCI version 1.0, legacy support usb2: on ohci2 usb2: USB revision 1.0 uhub2: on usb2 uhub2: 2 ports with 2 removable, self powered ehci0: 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: on ehci0 usb3: USB revision 2.0 uhub3: on usb3 uhub3: 6 ports with 6 removable, self powered rl0: port 0xd400-0xd4ff mem 0xdfffbf00-0xdfffbfff irq 17 at device 6.0 on pci0 miibus0: on rl0 rlphy0: on miibus0 rlphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto rl0: Ethernet address: 00:50:ba:b8:90:da pci0: at device 7.0 (no driver attached) ral0: 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: at device 9.0 (no driver attached) pci0: at device 9.1 (no driver attached) rl1: port 0xcc00-0xccff mem 0xdfffbe00-0xdfffbeff irq 18 at device 11.0 on pci0 miibus1: on rl1 rlphy1: on miibus1 rlphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto rl1: Ethernet address: 00:10:dc:82:9b:d2 fdc0: 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: port 0x378-0x37f irq 7 on acpi0 ppc0: Generic chipset (EPP/NIBBLE) in COMPATIBLE mode ppbus0: on ppc0 plip0: on ppbus0 lpt0: on ppbus0 lpt0: Interrupt-driven port ppi0: on ppbus0 ppc0: [GIANT-LOCKED] pmtimer0 on isa0 orm0: at iomem 0xc0000-0xccfff,0xcd000-0xcf7ff pnpid ORM0000 on isa0 atkbdc0: at port 0x60,0x64 on isa0 atkbd0: irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] sc0: at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=0x300> vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 ums0: on uhub2 ums0: 3 buttons and Z dir. Timecounter "TSC" frequency 2000151220 Hz quality 800 Timecounters tick every 1.000 msec ad0: 57241MB at ata0-master UDMA100 ad1: 57241MB at ata0-slave UDMA100 acd0: DVDROM at ata1-master UDMA33 acd1: CDRW 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 mtu 1500 options=8 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 ) status: active wifi0: flags=8943 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 (autoselect ) 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 mtu 1500 options=8 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 mtu 1500 lo0: flags=8049 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--