I've got a Dlink DWL-G520 PCI WiFi card (looks like mini-pci on a carrier)
which I'm trying to use with 5.0 i386.  In dmesg I see:

ath0 at pci2 dev 9 function 0 "Atheros AR5311" rev 0x01: apic 2 int 18
ath_hal_attach: unable to init EEPROM
ath0: unable to attach hardware; HAL status 22

and it doesn't show up in ifconfig.  I Googled for the error "unable to
attach hardware; HAL status 22" and it shows up back around 2006 as bugs in
the driver, but nothing recent.  It's in a changelog for OpenBSD 4.1 for
instance.  The error message is contained in /usr/src/sys/dev/ic/ath.c dated
May 24, 2011.  There's an older ar5212.c in the same directory that doesn't
have the message in it.

The odd thing is that this card works in a machine with FreeBSD 7.1 and that
identifies the chip as "Atheros 5212". So which chip number is right? Could the problem have to do with misidentifying the chip? dmesg, pcidump
and the driver think it's an AR5311.

I've got 4.7 running on my laptop with an internal mini-pci card which has
either a 5212 or 5213A depending on where in the dmesg output you look, and
that works fine.  pcidump calls that a 5212.  So much for accuracy.

Back to the PCI-mounted one: A FreeBSD 7.0 live CD I've got calls it an
AR5211 with a HAL status of 13.  OpenBSD installs 4.7 & 4.4 call it an
AR5311 with a HAL status 22.  OpenBSD 4.1 install calls it a 5211, 4.0 & 4.2
don't find it (floppy install image).  Debian Linux 5.03 calls it an ath5k
and says it fails the POST.

The announcement for OpenBSD 4.1 says to disable 802.11g mode "for now" but
how do I do that?  I can't just not use that mode because ifconfig says
there's no such device and won't let me configure it at all.  Is there any
way to force it to use /usr/src/sys/dev/ic/ar5212.c ?

  Alan

Reply via email to