Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 20 Mar 2004 18:35:33 -0700
From:      "Kenneth D. Merry" <ken@kdm.org>
To:        freebsd-mobile@FreeBSD.org
Cc:        freebsd-net@FreeBSD.org
Subject:   WEP problems with ndis and ath drivers
Message-ID:  <20040321013533.GA37342@panzer.kdm.org>

next in thread | raw e-mail | index | archive | help

--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<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> 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<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> 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<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE>
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: <math processor> on motherboard
npx0: INT 16 interface
acpi0: <DELL CPi R  > 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: <CPU> port 0x530-0x537 on acpi0
acpi_tz0: <Thermal Zone> port 0x530-0x537 on acpi0
acpi_acad0: <AC Adapter> on acpi0
acpi_cmbat0: <Control Method Battery> on acpi0
acpi_cmbat1: <Control Method Battery> on acpi0
acpi_lid0: <Control Method Lid Switch> on acpi0
acpi_button0: <Power Button> on acpi0
acpi_button1: <Sleep Button> on acpi0
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> 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: <Intel 82845 host to AGP bridge> mem 0xec000000-0xefffffff at device 0.0 on pci0
pcib1: <ACPI PCI-PCI bridge> at device 1.0 on pci0
pci1: <ACPI PCI bus> on pcib1
pcib1: slot 0 INTA is routed to irq 11
pci1: <display, VGA> at device 0.0 (no driver attached)
uhci0: <Intel 82801DB (ICH4) USB controller USB-A> port 0xbf80-0xbf9f irq 11 at device 29.0 on pci0
usb0: <Intel 82801DB (ICH4) USB controller USB-A> 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: <Intel 82801DB (ICH4) USB controller USB-B> port 0xbf40-0xbf5f irq 11 at device 29.1 on pci0
usb1: <Intel 82801DB (ICH4) USB controller USB-B> 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: <Intel 82801DB (ICH4) USB controller USB-C> port 0xbf20-0xbf3f irq 11 at device 29.2 on pci0
usb2: <Intel 82801DB (ICH4) USB controller USB-C> 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: <serial bus, USB> at device 29.7 (no driver attached)
pcib2: <ACPI PCI-PCI bridge> at device 30.0 on pci0
pci2: <ACPI PCI bus> on pcib2
pcib2: slot 1 INTA is routed to irq 11
pcib2: slot 3 INTA is routed to irq 11
cbb0: <TI4510 PCI-CardBus Bridge> at device 1.0 on pci2
cardbus0: <CardBus bus> 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: <IEEE1394(FireWire) bus> on fwohci0
fwe0: <Ethernet over FireWire> on firewire0
if_fwe0: Fake Ethernet address: 3a:4f:c0:9c:ec:41
fwe0: Ethernet address: 3a:4f:c0:9c:ec:41
sbp0: <SBP-2/SCSI over FireWire> 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: <network> at device 3.0 (no driver attached)
isab0: <PCI-ISA bridge> at device 31.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <Intel ICH4 UDMA100 controller> 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: <Intel ICH4 (82801DB)> port 0xbc40-0xbc7f,0xb800-0xb8ff mem 0xf4fff400-0xf4fff4ff,0xf4fff800-0xf4fff9ff irq 11 at device 31.5 on pci0
pcm0: <SigmaTel STAC9750/51 AC97 Codec>
pci0: <simple comms> at device 31.6 (no driver attached)
atkbdc0: <Keyboard controller (i8042)> port 0x64,0x60 irq 1 on acpi0
atkbd0: <AT Keyboard> flags 0x1 irq 1 on atkbdc0
kbd0 at atkbd0
psm0: <PS/2 Mouse> 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: <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
pmtimer0 on isa0
orm0: <Option ROMs> at iomem 0xcf800-0xcffff,0xc0000-0xcf7ff on isa0
fdc0: ready for input in output
fdc0: cmd 3 failed at out byte 1 of 3
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
sio1: configured irq 3 not in bitmap of probed irqs 0
sio1: port may not be enabled
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
Timecounter "TSC" frequency 2492654524 Hz quality 800
Timecounters tick every 10.000 msec
acpi_cpu: throttling enabled, 8 steps (100% to 12.5%), currently 100.0%
ad0: 57231MB <FUJITSU MHS2060AT> [116280/16/63] at ata0-master UDMA100
acd0: CDRW <PHILIPS DVD+RW SDVD6004> at ata1-master WDMA2
cd0 at ata1 bus 0 target 0 lun 0
cd0: <PHILIPS DVD+RW SDVD6004 0.99> Removable CD-ROM SCSI-0 device 
cd0: 16.000MB/s transfers
cd0: Attempt to query device size failed: NOT READY, Medium not present
Mounting root from ufs:/dev/ad0s3a
WARNING: / was not properly dismounted
WARNING: /usr was not properly dismounted
WARNING: /var was not properly dismounted
ndis0: <Dell TrueMobile 1300 WLAN Mini-PCI Card> mem 0xfaffc000-0xfaffdfff irq 11 at device 3.0 on pci2
ndis0: NDIS API version: 5.0
ndis0: 802.11 address: 00:90:4b:24:59:9c
ndis0: Ethernet address: 00:90:4b:24:59:9c
ndis0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps
ndis0: 11g rates: 6Mbps 9Mbps 12Mbps 18Mbps 36Mbps 48Mbps 54Mbps
ndis0: set wepkey failed: 19
ndis0: detached
cbb0: CardBus card activation failed
ath0: <Atheros 5212> mem 0x88010000-0x8801ffff irq 11 at device 0.0 on cardbus0
ath0: mac 5.6 phy 4.1 5ghz radio 1.7 2ghz radio 2.3
ath0: Ethernet address: 00:09:5b:68:27:df
ath0: 11a rates: 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
ath0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps
ath0: 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
ath0: turbo rates: 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
ath0: 802.11 address: 00:09:5b:68:27:df
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: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: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

--gKMricLos+KVdGMg--



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