Hi, I just tried to get a D-Link DWL-520 PCI adapter I purchased the other day running.
First problem: ath0 at pci0 dev 15 function 0 "Atheros AR5212" rev 0x01: irq 6 ath0: AR5212 7.9 phy 4.5 rf2112 5.6 rf2112 5.6ath0: no valid channels for regdomain NONE(32976) [Full dmesg follows at the end of this mail] This problem has been mentioned earlier on this mailinglist (e.g. http://www.monkey.org/openbsd/archive2/bugs/200503/msg00043.html), but without any solution. So, after some source code reading and debugging, I changed ieee80211_regdomain.h to let the driver recognize that regulatory domain: Index: ieee80211_regdomain.h =================================================================== RCS file: /var/cvs/OpenBSD/src/sys/net80211/ieee80211_regdomain.h,v retrieving revision 1.7 diff -u -r1.7 ieee80211_regdomain.h --- ieee80211_regdomain.h 23 Feb 2005 14:26:53 -0000 1.7 +++ ieee80211_regdomain.h 17 Jul 2005 17:48:24 -0000 @@ -71,6 +71,7 @@ DMN_EU1_WORLD = 0x68, DMN_WOR9_WORLD = 0x69, DMN_WORA_WORLD = 0x6A, + DMN_EU2_WORLD = 0xd0, DMN_APL1 = 0xf0000001, DMN_APL2 = 0xf0000002, @@ -145,6 +146,7 @@ { DMN_ETSIC, "ETSIC" }, \ { DMN_ETSI_NULL, "ETSI" }, \ { DMN_EU1_WORLD, "EU1W" }, \ + { DMN_EU2_WORLD, "EU2W" }, \ { DMN_FCC1, "FCC1" }, \ { DMN_FCC1_FCCA, "FCC1A" }, \ { DMN_FCC1_WORLD, "FCC1W" }, \ @@ -237,6 +239,7 @@ { DMN_WOR01_WORLD, DMN_WORLD, DMN_WORLD }, \ { DMN_WOR02_WORLD, DMN_WORLD, DMN_WORLD }, \ { DMN_EU1_WORLD, DMN_ETSI1, DMN_WORLD }, \ + { DMN_EU2_WORLD, DMN_ETSI1, DMN_WORLD }, \ { DMN_WOR9_WORLD, DMN_WORLD, DMN_WORLD }, \ { DMN_WORA_WORLD, DMN_WORLD, DMN_WORLD }, \ } Now, it looked much better: ath0 at pci0 dev 15 function 0 "Atheros AR5212" rev 0x01: irq 6 ath0: AR5212 7.9 phy 4.5 rf2112 5.6 rf2112 5.6, EU2W, address 00:11:95:bb:3f:65 Second problem: Unfortunately, shortly after configuring ath0 up, the machine just freezed (no keyboard or mouse input, no remote login). Three cases: 1. try: X11 running, power LED of the device was on. After ifconfig ath0 192.168.1.1 mediaopt hostap nwid outback \ nwkey XXXXXXXXXXXXX the power and activity LEDs started blinking (indicating an error, according to the manual), and a few minutes later, I experienced the freeze and had to push the reset button. 2. After reboot, fsck, etc., with the same data as above in /etc/hostname.ath0, the system did freeze early during startup (when running /etc/rc.local). This time I at least got an `ath0: device timeout'. 3. Reset, boot into single user mode, fsck and mount read-only everything. Same ifconfig as above, again, both LEDs started blinking. Then, ifconfig ath0 down ifconfig -mediaopt hostap ifconfig mediaopt hostap and the system again did freeze (this time without the timeout message). Any help to debug and maybe fix this problem is welcome. It would also be helpful if other users with that unknown regdomain problem could test the patch above, although I've to admit that I'm not sure wether this patch is the correct way to address that problem. If it works for you, I'd guess I've some interrupt or hardware problem. TIA Ciao, Kili here's my complete dmesg (with the patched kernel): OpenBSD 3.7-current (GENERIC) #62: Sun Jul 17 18:44:22 CEST 2005 [EMAIL PROTECTED]:/var/compile/GENERIC cpu0: AMD Athlon(TM) XP 2400+ ("AuthenticAMD" 686-class, 256KB L2 cache) 1.99 GHz cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE cpu0: AMD Powernow: FID real mem = 1073307648 (1048152K) avail mem = 972824576 (950024K) using 4278 buffers containing 53768192 bytes (52508K) of memory mainbus0 (root) bios0 at mainbus0: AT/286+(bf) BIOS, date 04/21/04, BIOS32 rev. 0 @ 0xf1aa0 apm0 at bios0: Power Management spec V1.2 apm0: AC on, battery charge unknown apm0: flags 30102 dobusy 0 doidle 1 pcibios0 at bios0: rev 2.1 @ 0xf0000/0x2162 pcibios0: PCI bus #1 is the last bus bios0: ROM list: 0xc0000/0xd000 0xd0000/0x1800 0xd4000/0x400 0xd8000/0x8000 cpu0 at mainbus0 pci0 at mainbus0 bus 0: configuration mode 1 (no bios) pchb0 at pci0 dev 0 function 0 "VIA VT8377 PCI" rev 0x00 ppb0 at pci0 dev 1 function 0 "VIA VT8235 AGP" rev 0x00 pci1 at ppb0 bus 1 vga1 at pci1 dev 0 function 0 "ATI Radeon 9200 SE 2nd" rev 0x01 wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation) wsdisplay0: screen 1-5 added (80x25, vt100 emulation) "ATI Radeon 9200 SE" rev 0x01 at pci1 dev 0 function 1 not configured bce0 at pci0 dev 9 function 0 "Broadcom BCM4401" rev 0x01: irq 6, address 00:e0:18:9a:2a:7d bmtphy0 at bce0 phy 1: BCM4401 10/100baseTX PHY, rev. 0 pcscp0 at pci0 dev 13 function 0 "AMD 53c974 PCscsi-PCI" rev 0x10: irq 9 pcscp0: AM53C974, 40MHz, SCSI ID 7 pcscp0: SCSI bus reset scsibus0 at pcscp0: 8 targets cd0 at scsibus0 targ 0 lun 0: <PIONEER, DVD-ROM DVD-303R, 1.10> SCSI2 5/cdrom removable cd1 at scsibus0 targ 2 lun 0: <TEAC, CD-R55S, 1.0J> SCSI2 5/cdrom removable trm0 at pci0 dev 14 function 0 "Tekram DC-3x5U" rev 0x01: irq 5 scsibus1 at trm0: 16 targets trm0: target 1 using 16 bit 20.83 MHz, Offset 15 data transfers st0 at scsibus1 targ 1 lun 0: <HP, C5683A, C104> SCSI2 1/sequential removable st0: drive empty or not ready ath0 at pci0 dev 15 function 0 "Atheros AR5212" rev 0x01: irq 6 ath0: AR5212 7.9 phy 4.5 rf2112 5.6 rf2112 5.6, EU2W, address 00:11:95:bb:3f:65 uhci0 at pci0 dev 16 function 0 "VIA VT83C572 USB" rev 0x80: irq 5 usb0 at uhci0: USB revision 1.0 uhub0 at usb0 uhub0: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 2 ports with 2 removable, self powered uhci1 at pci0 dev 16 function 1 "VIA VT83C572 USB" rev 0x80: irq 5 usb1 at uhci1: USB revision 1.0 uhub1 at usb1 uhub1: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub1: 2 ports with 2 removable, self powered uhci2 at pci0 dev 16 function 2 "VIA VT83C572 USB" rev 0x80: irq 5 usb2 at uhci2: USB revision 1.0 uhub2 at usb2 uhub2: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub2: 2 ports with 2 removable, self powered ehci0 at pci0 dev 16 function 3 "VIA VT6202 USB" rev 0x82: irq 5 usb3 at ehci0: USB revision 2.0 uhub3 at usb3 uhub3: VIA EHCI root hub, class 9/0, rev 2.00/1.00, addr 1 uhub3: 6 ports with 6 removable, self powered pcib0 at pci0 dev 17 function 0 "VIA VT8235 ISA" rev 0x00 pciide0 at pci0 dev 17 function 1 "VIA VT82C571 IDE" rev 0x06: ATA133, channel 0 configured to compatibility, channel 1 configured to compatibility wd0 at pciide0 channel 0 drive 0: <Maxtor 6Y080L0> wd0: 16-sector PIO, LBA, 78167MB, 160086528 sectors wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 6 pciide0: channel 1 disabled (no drives) auvia0 at pci0 dev 17 function 5 "VIA VT8233 AC97" rev 0x50: irq 6 ac97: codec id 0x414c4720 (Avance Logic ALC650) ac97: codec features 20 bit DAC, 18 bit ADC, Realtek 3D audio0 at auvia0 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 pmsi0 at pckbc0 (aux slot) pckbc0: using irq 12 for aux slot wsmouse0 at pmsi0 mux 0 pcppi0 at isa0 port 0x61 midi0 at pcppi0: <PC speaker> spkr0 at pcppi0 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 pccom1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo biomask ef25 netmask ef65 ttymask ffe7 pctr: user-level cycle counter enabled mtrr: Pentium Pro MTRR support dkcsum: wd0 matched BIOS disk 80 root on wd0a rootdev=0x0 rrootdev=0x300 rawdev=0x302 udsbr0 at uhub0 port 1 udsbr0: GemTek Corp USB FM Radio, rev 1.00/4.10, addr 2 radio0 at udsbr0