[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[jon@abc.se: Updated aironet firmware requires patch]



I'll forward this to the lists since I didn't get any respone.
-- 
/ Jon
Date: Fri, 2 May 2003 21:31:35 +0200
From: Jon Olsson <jon@abc.se>
To: mickey@openbsd.org
Subject: Updated aironet firmware requires patch
Message-ID: <20030502213135.A25105@atle.abc.se>
Mime-Version: 1.0
X-Security: MIME headers sanitized on openbsd.cs.colorado.edu See http://www.impsec.org/email-tools/sanitizer-intro.html for details. $Revision: 1.134 $Date: 2002-04-21 16:30:40-07 
Content-Type: text/plain; charset="us-ascii"
X-Mailer: Mutt 1.0pre2us
X-Converted-To-Plain-Text: from multipart/mixed by demime 0.98d
X-Converted-To-Plain-Text: Alternative section used was text/plain

Hi,

 I've been told you are the maintainer of the an-driver,
hence, this email.
 I recently upgraded the firmware and on my Cisco 340-
series aironet PC-card and the driver failed to initialize,
complaining about record size mismatch:

an0 at pcmcia1 function 0 "Cisco Systems, 340 Series Wireless LAN Adapter"an0: R
ID 0xff10 record length mismatch -- expected 156, got 158
: read record failed

 So, I started padding the data structures and, lo and behold
it worked. Though, the last data structure in anvar.h I patched
need 748 bytes padding which seemed pretty bizarre. Anyway,
I've got a patch for this if you want it. It's been working pretty
well for me. I'll include dmesg and ancontrol -I output as well.

Cheers,
Jon

rudie% ancontrol -I an0     
OUI:                    [ 00:40:96 ]
Product number:         [ 7 ]
Manufacturer name:      [ Cisco Systems                   ]
Produce name:           [ 340 Series      ]
Firmware version:       [ 5 ]
OEM MAC address:        [ 00:40:96:32:16:6b ]
Aironet MAC address:    [ 00:40:96:32:16:6b ]
Radio type:             [ 802.11 DS ]
Regulatory domain:      [ 1 ]
Assigned CallID:        [ 00:00:00:00:00:00 ]
Supported speeds:       [ 1.0Mbps 2.0Mbps 5.5Mbps 11.0Mbps ]
RX Diversity:           [ antenna 1 and 2 ]
TX Diversity:           [ antenna 1 and 2 ]
Supported power levels: [ 1 30 0 0 0 0 0 0 ]
Hardware revision:      [ 00:11 ]
Software revision:      [ 05:02 ]
Software subrevision:   [ 00:13 ]
Interface revision:     [ 00:00 ]
Bootblock revision:     [ 01:50 ]

dmesg:

OpenBSD 3.3-current (GENERIC) #10: Fri May  2 20:41:41 CEST 2003
root@rudie.bonet.se:/sys/arch/i386/compile/GENERIC
cpu0: Intel Celeron (Mendocino) ("GenuineIntel" 686-class, 256KB L2 cache) 397 MHz
cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,SYS,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR
real mem  = 133722112 (130588K)
avail mem = 118218752 (115448K)
using 1657 buffers containing 6787072 bytes (6628K) of memory
mainbus0 (root)
bios0 at mainbus0: AT/286+(00) BIOS, date 11/07/01, BIOS32 rev. 0 @ 0xffe90
apm0 at bios0: Power Management spec V1.2
apm0: battery life expectancy 49%
apm0: AC off, battery charge high, estimated 1:55 hours
pcibios0 at bios0: rev. 2.1 @ 0xf0000/0x10000
pcibios0: PCI IRQ Routing Table rev. 1.0 @ 0xfbd80/112 (5 entries)
pcibios0: PCI Interrupt Router at 000:07:0 ("Intel 82371 PCI-ISA and IDE" rev 0x00)
pcibios0: PCI bus #3 is the last bus
bios0: ROM list: 0xc0000/0xe000 0xce000/0x800 0xce800/0x800 0xcf000/0x800 0xcf800/0x800
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 "Intel 82443BX PCI-AGP" rev 0x03
ppb0 at pci0 dev 1 function 0 "Intel 82443BX AGP" rev 0x03
pci1 at ppb0 bus 1
vga1 at pci1 dev 0 function 0 "Neomagic Magicgraph NM2360" rev 0x00
wsdisplay0 at vga1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
neo0 at pci1 dev 0 function 1 "Neomagic MagicMedia 256ZX" rev 0x00: irq 5
ac97: codec id not read
audio0 at neo0
cbb0 at pci0 dev 3 function 0 "Texas Instruments PCI1225 PCI-CardBus" rev 0x01: irq 11
cbb1 at pci0 dev 3 function 1 "Texas Instruments PCI1225 PCI-CardBus" rev 0x01: irq 11
pcib0 at pci0 dev 7 function 0 "Intel 82371AB PIIX4 ISA" rev 0x02
pciide0 at pci0 dev 7 function 1 "Intel 82371AB IDE" rev 0x01: DMA, channel 0 wired to compatibility, channel 1 wired to compatibility
wd0 at pciide0 channel 0 drive 0: <IBM-DBCA-206480>
wd0: 16-sector PIO, LBA, 6194MB, 13424 cyl, 15 head, 63 sec, 12685680 sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2
atapiscsi0 at pciide0 channel 1 drive 0
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0: <SAMSUNG, CD-ROM SCR-2438, d026> SCSI0 5/cdrom removable
cd0(pciide0:1:0): using PIO mode 4, DMA mode 2
uhci0 at pci0 dev 7 function 2 "Intel 82371AB USB" rev 0x01: irq 11
usb0 at uhci0: USB revision 1.0
uhub0 at usb0
uhub0: vendor 0x0000 UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
"Intel 82371AB Power Mgmt" rev 0x02 at pci0 dev 7 function 3 not configured
cardslot0 at cbb0 slot 0 flags 0
cardbus0 at cardslot0: bus 2 device 0 cacheline 0x8, lattimer 0x20
pcmcia0 at cardslot0
cardslot1 at cbb1 slot 1 flags 0
cardbus1 at cardslot1: bus 3 device 0 cacheline 0x8, lattimer 0x20
pcmcia1 at cardslot1
isa0 at pcib0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pms0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pms0 mux 0
pcppi0 at isa0 port 0x61
midi0 at pcppi0: <PC speaker>
sysbeep0 at pcppi0
lpt0 at isa0 port 0x378/4 irq 7
npx0 at isa0 port 0xf0/16: using exception 16
pccom0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
biomask c840 netmask c840 ttymask d8c2
pctr: 686-class user-level performance counters enabled
mtrr: Pentium Pro MTRR support
dkcsum: wd0 matched BIOS disk 80
root on wd0a
rootdev=0x0 rrootdev=0x300 rawdev=0x302
an0 at pcmcia1 function 0 "Cisco Systems, 340 Series Wireless LAN Adapter": address 00:40:96:32:16:6b
After updating the firmware on my Cisco 340-series aironet PC-card,
the driver failed to initialize. Here's a hack that makes
the driver start at least. It feels really weird that
we need to pad one structure with 748 bytes...

  Jon

--- anvar.h.orig	Fri May  2 21:07:42 2003
+++ anvar.h	Fri May  2 21:16:28 2003
@@ -347,6 +347,7 @@
 	u_int8_t		an_magic_packet_action;	/* 0x98 */
 	u_int8_t		an_magic_packet_ctl;	/* 0x99 */
 	u_int16_t		an_rsvd9;
+	u_int16_t		an_rsvd10;
 };
 
 #define AN_OPMODE_IBSS_ADHOC			0x0000
@@ -418,6 +419,7 @@
 	char			an_ssid2[32];
 	u_int16_t		an_ssid3_len;
 	char			an_ssid3[32];
+	char			unknown[748]; /* XXX */
 };
 
 /*
@@ -505,6 +507,7 @@
 	u_int16_t		an_bootblockrev;	/* 0x7E */
 	u_int16_t		an_req_hw_support;	/* 0x80 */
 	u_int16_t		an_rsvd1;		/* 0x82 */
+	u_int8_t		an_rsvd2[40];		/* XXX */
 };
 
 /*