From owner-freebsd-net@FreeBSD.ORG Sat Mar 20 17:35:35 2004 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9BCAC16A4CE; Sat, 20 Mar 2004 17:35:35 -0800 (PST) Received: from panzer.kdm.org (panzer.kdm.org [216.160.178.169]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4BABC43D3F; Sat, 20 Mar 2004 17:35:34 -0800 (PST) (envelope-from ken@panzer.kdm.org) Received: from panzer.kdm.org (localhost [127.0.0.1]) by panzer.kdm.org (8.12.9/8.12.5) with ESMTP id i2L1ZXLX037466; Sat, 20 Mar 2004 18:35:33 -0700 (MST) (envelope-from ken@panzer.kdm.org) Received: (from ken@localhost) by panzer.kdm.org (8.12.9/8.12.5/Submit) id i2L1ZXr8037465; Sat, 20 Mar 2004 18:35:33 -0700 (MST) (envelope-from ken) Date: Sat, 20 Mar 2004 18:35:33 -0700 From: "Kenneth D. Merry" To: freebsd-mobile@FreeBSD.org Message-ID: <20040321013533.GA37342@panzer.kdm.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="gKMricLos+KVdGMg" Content-Disposition: inline User-Agent: Mutt/1.4.1i cc: freebsd-net@FreeBSD.org Subject: WEP problems with ndis and ath drivers X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 21 Mar 2004 01:35:35 -0000 --gKMricLos+KVdGMg Content-Type: text/plain; charset=us-ascii Content-Disposition: inline I have a Dell Inspiron 8500 laptop with an onboard TrueMobile 1300 (Broadcom, b/g chipset) and a Netgear WAG511 cardbus card (Atheros, a/b/g chipset). I have a Netgear FWAG114 firewall/access point. (Atheros based, does a, b and g.) I'm running FreeBSD-current from Friday, March 19th. Both cards talk to the access point under FreeBSD when I'm not running WEP, and neither card works with WEP enabled. (i.e., neither card will associate with the base station with WEP enabled.) I have tried putting the key in as both hex digits and as the passphrase I used on the router to generate the hex key. (The router claims it's a 128 bit key, but it only generates 26 hex digits, so it's really a 104 bit key I suppose.) Both cards work under Windows with WEP, with either the hex key or the passphrase entered. I have attached ifconfig and wicontrol output from both cards, and dmesg output from the laptop. To enable the adapter, I've been doing things like this: ifconfig {ath0|ndis0} ssid [my ssid] wepmode on wepkey `cat wepkey` (where wepkey is a file with the 26 digit hex key, starting with 0x) For what it's worth, I've tried setting the authmode to shared (instead of "open"), but all I get is the following: ifconfig ath0 authmode shared ifconfig: SIOCS80211: Invalid argument The ath driver spits out the following diagnostics when I try to associate with either the a or g part of the base station with WEP on: ath0: authentication failed (reason 13) for 00:09:5b:66:0d:f9 ath0: authentication failed (reason 13) for 00:09:5b:66:0d:f9 ath0: authentication failed (reason 13) for 00:09:5b:66:0d:f9 ath0: authentication failed (reason 13) for 00:09:5b:66:0d:f9 ath0: authentication failed (reason 13) for 00:09:5b:66:2c:5c ath0: authentication failed (reason 13) for 00:09:5b:66:2c:5c ath0: authentication failed (reason 13) for 00:09:5b:66:2c:5c ath0: authentication failed (reason 13) for 00:09:5b:66:2c:5c (The first mac address is the a base station, the second is the g base station.) The ndis driver (I'm using the Dell/Broadcom Windows drivers for the onboard chip) doesn't give any error messages, but doesn't associate either. If anyone has any clues on how to get this to work, I'd love to hear them. (Or if you have a similar setup and have managed to get it to work with WEP, that would be useful to know.) Thanks, Ken -- Kenneth Merry ken@kdm.org --gKMricLos+KVdGMg Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="ath0.ifconfig" ath0: flags=8843 mtu 1500 ether 00:09:5b:68:27:df media: IEEE 802.11 Wireless Ethernet autoselect (OFDM/6Mbps) status: no carrier ssid [802.11a SSID] 1:[802.11a SSID] channel 36 authmode OPEN powersavemode OFF powersavesleep 100 wepmode MIXED weptxkey 1 wepkey 1:104-bit --gKMricLos+KVdGMg Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="ath0.wicontrol" NIC serial number: [ ] Station name: [ erebor.kdm.org ] SSID for IBSS creation: [ 802.11a SSID ] Current netname (SSID): [ ] Desired netname (SSID): [ 802.11a SSID ] Current BSSID: [ 00:00:00:00:00:00 ] Channel list: [ ffe 0 1510 1515 1 0 0 0 0 2320 23 ] IBSS channel: [ 40 ] Current channel: [ 40 ] Comms quality/signal/noise: [ 0 29 0 ] Promiscuous mode: [ Off ] Intersil-Prism2 based card: [ 1 ] Port type (1=BSS, 3=ad-hoc): [ 1 ] MAC address: [ 00:09:5b:68:27:df ] TX rate (selection): [ 0 ] TX rate (actual speed): [ 6 ] RTS/CTS handshake threshold: [ 2312 ] Create IBSS: [ Off ] Access point density: [ 1 ] Power Mgmt (1=on, 0=off): [ 0 ] Max sleep time: [ 100 ] WEP encryption: [ On ] TX encryption key: [ 1 ] Encryption keys: [ 26 hex digit WEP key ][ ][ ][ ] --gKMricLos+KVdGMg Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="ndis0.ifconfig" ndis0: flags=8843 mtu 1500 ether 00:90:4b:24:59:9c media: IEEE 802.11 Wireless Ethernet autoselect status: no carrier ssid "" channel 11 authmode OPEN powersavemode OFF powersavesleep 100 wepmode MIXED weptxkey 1 wepkey 1:104-bit wepkey 2:104-bit --gKMricLos+KVdGMg Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="ndis0.wicontrol" NIC serial number: [ ] Station name: [ erebor.kdm.org ] SSID for IBSS creation: [ 802.11g SSID ] Current netname (SSID): [ ] Desired netname (SSID): [ 802.11g SSID ] Current BSSID: [ 00:00:00:00:00:00 ] Channel list: [ ffff ffff ffff ffff ffff ffff ffff ffff ffff ffff ffff ffff ffff ffff ffff 3fff ] IBSS channel: [ 11 ] Current channel: [ 11 ] Comms quality/signal/noise: [ 0 0 0 ] Promiscuous mode: [ Off ] Intersil-Prism2 based card: [ 1 ] Port type (1=BSS, 3=ad-hoc): [ 1 ] MAC address: [ 00:90:4b:24:59:9c ] TX rate (selection): [ 0 ] TX rate (actual speed): [ 0 ] RTS/CTS handshake threshold: [ 2312 ] Create IBSS: [ Off ] Access point density: [ 1 ] Power Mgmt (1=on, 0=off): [ 0 ] Max sleep time: [ 100 ] WEP encryption: [ On ] TX encryption key: [ 1 ] Encryption keys: [ 26 hex digit WEP key ][ WEP passphrase ][ ][ ] --gKMricLos+KVdGMg Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="dmesg.ath_ndis.out" Copyright (c) 1992-2004 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 5.2-CURRENT #0: Fri Mar 19 20:38:10 MST 2004 ken@nargothrond.kdm.org:/usr/c/ken/perforce2/FreeBSD-ken/src/sys/i386/compile/erebor WARNING: WITNESS option enabled, expect reduced performance. Preloaded elf kernel "/boot/kernel/kernel" at 0xc0950000. Preloaded acpi_dsdt "/boot/acpi_dsdt.aml" at 0xc09501cc. Preloaded elf module "/boot/kernel/acpi.ko" at 0xc0950214. Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: Mobile Intel(R) Pentium(R) 4 - M CPU 2.50GHz (2492.65-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0xf27 Stepping = 7 Features=0xbfebf9ff real memory = 536535040 (511 MB) avail memory = 515301376 (491 MB) Pentium Pro MTRR support enabled ACPI: DSDT was overridden. ACPI-0374: *** Info: Table [DSDT] replaced by host OS cpu0 on motherboard npx0: [FAST] npx0: on motherboard npx0: INT 16 interface acpi0: on motherboard pcibios: BIOS version 2.10 Found $PIR table, 9 entries at 0xc00fc590 Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000 acpi_timer0: <24-bit timer at 3.579545MHz> port 0x808-0x80b on acpi0 acpi_cpu0: port 0x530-0x537 on acpi0 acpi_tz0: port 0x530-0x537 on acpi0 acpi_acad0: on acpi0 acpi_cmbat0: on acpi0 acpi_cmbat1: on acpi0 acpi_lid0: on acpi0 acpi_button0: on acpi0 acpi_button1: on acpi0 pcib0: port 0xcf8-0xcff on acpi0 pci0: on pcib0 pcib0: slot 29 INTA is routed to irq 11 pcib0: slot 29 INTB is routed to irq 11 pcib0: slot 29 INTC is routed to irq 11 pcib0: slot 29 INTD is routed to irq 11 pcib0: slot 31 INTB is routed to irq 11 pcib0: slot 31 INTB is routed to irq 11 agp0: mem 0xec000000-0xefffffff at device 0.0 on pci0 pcib1: at device 1.0 on pci0 pci1: on pcib1 pcib1: slot 0 INTA is routed to irq 11 pci1: at device 0.0 (no driver attached) uhci0: port 0xbf80-0xbf9f irq 11 at device 29.0 on pci0 usb0: on uhci0 usb0: USB revision 1.0 uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 2 ports with 2 removable, self powered uhci1: port 0xbf40-0xbf5f irq 11 at device 29.1 on pci0 usb1: on uhci1 usb1: USB revision 1.0 uhub1: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub1: 2 ports with 2 removable, self powered uhci2: port 0xbf20-0xbf3f irq 11 at device 29.2 on pci0 usb2: on uhci2 usb2: USB revision 1.0 uhub2: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub2: 2 ports with 2 removable, self powered pci0: at device 29.7 (no driver attached) pcib2: at device 30.0 on pci0 pci2: on pcib2 pcib2: slot 1 INTA is routed to irq 11 pcib2: slot 3 INTA is routed to irq 11 cbb0: at device 1.0 on pci2 cardbus0: on cbb0 pccard0: <16-bit PCCard bus> on cbb0 pcib2: slot 1 INTA is routed to irq 11 cbb0: [MPSAFE] fwohci0: vendor=104c, dev=8029 fwohci0: <1394 Open Host Controller Interface> mem 0xfaff8000-0xfaffbfff,0xfafff800-0xfaffffff irq 11 at device 1.1 on pci2 fwohci0: OHCI version 1.10 (ROM=0) fwohci0: No. of Isochronous channel is 4. fwohci0: EUI64 38:4f:c0:00:08:9c:ec:41 fwohci0: Phy 1394a available S400, 2 ports. fwohci0: Link S400, max_rec 2048 bytes. firewire0: on fwohci0 fwe0: on firewire0 if_fwe0: Fake Ethernet address: 3a:4f:c0:9c:ec:41 fwe0: Ethernet address: 3a:4f:c0:9c:ec:41 sbp0: on firewire0 fwohci0: Initiate bus reset fwohci0: node_id=0xc800ffc0, gen=1, CYCLEMASTER mode firewire0: 1 nodes, maxhop <= 0, cable IRM = 0 (me) firewire0: bus manager 0 (me) pci2: at device 3.0 (no driver attached) isab0: at device 31.0 on pci0 isa0: on isab0 atapci0: port 0xbfa0-0xbfaf,0x374-0x377,0x170-0x177,0x3f4-0x3f7,0x1f0-0x1f7 at device 31.1 on pci0 ata0: at 0x1f0 irq 14 on atapci0 ata0: [MPSAFE] ata1: at 0x170 irq 15 on atapci0 ata1: [MPSAFE] pcm0: port 0xbc40-0xbc7f,0xb800-0xb8ff mem 0xf4fff400-0xf4fff4ff,0xf4fff800-0xf4fff9ff irq 11 at device 31.5 on pci0 pcm0: pci0: at device 31.6 (no driver attached) atkbdc0: port 0x64,0x60 irq 1 on acpi0 atkbd0: flags 0x1 irq 1 on atkbdc0 kbd0 at atkbd0 psm0: irq 12 on atkbdc0 psm0: model GlidePoint, device ID 0 sio0 port 0x3f8-0x3ff irq 4 on acpi0 sio0: type 16550A ppc0 port 0x778-0x77b,0x378-0x37f irq 7 drq 1 on acpi0 ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode ppc0: FIFO with 16/16/8 bytes threshold ppbus0: on ppc0 plip0: on ppbus0 lpt0: on ppbus0 lpt0: Interrupt-driven port ppi0: on ppbus0 pmtimer0 on isa0 orm0: