Atheros AR5424 rev 0x01 hal error

2010-04-20 Thread Adam M. Dutko
When I attempt to use my wireless card (AR5424) I get the following:

ath0: unable to reset hardware; hal status 3520208968

The number at the end changes when I try again.

I believe I've traced where the error message is thrown to a section of code
in src/sys/dev/ic/ath.c:


if (!ath_hal_reset(ah, ic-ic_opmode, hchan, AH_TRUE, status)) {
printf(%s: unable to reset hardware; hal status %u\n,
ifp-if_xname, status);
error = EIO;
goto done;
}


I'm going to recompile with ATH_DEBUG=10 and see if I can get more
information.  I'm also trying to trace down the ath_hal_reset function
to see if I can't find something in that area.

Does anyone that's worked on a similar error have any pointers?  Thanks.



Re: Atheros AR5424 rev 0x01 hal error

2010-04-20 Thread Bret S. Lambert
On Tue, Apr 20, 2010 at 10:55:18AM -0400, Adam M. Dutko wrote:
 When I attempt to use my wireless card (AR5424) I get the following:
 
 ath0: unable to reset hardware; hal status 3520208968
 
 The number at the end changes when I try again.

That smells like an uninitialized value for status, to me;
try setting it to something known to be stupid and incorrect at the
top of the function.

 
 I believe I've traced where the error message is thrown to a section of code
 in src/sys/dev/ic/ath.c:
 
 
 if (!ath_hal_reset(ah, ic-ic_opmode, hchan, AH_TRUE, status)) {
   printf(%s: unable to reset hardware; hal status %u\n,
   ifp-if_xname, status);
   error = EIO;
   goto done;
   }
 
 
 I'm going to recompile with ATH_DEBUG=10 and see if I can get more
 information.  I'm also trying to trace down the ath_hal_reset function
 to see if I can't find something in that area.
 
 Does anyone that's worked on a similar error have any pointers?  Thanks.



Re: Atheros AR5424 rev 0x01 hal error

2010-04-20 Thread Peter Hessler
this is a known unsupported chip.  I believe the ISC atheros driver is
compatible, so you may be able to borrow code from linux/freebsd/netbsd
to fix it.

(think of it as a TODO item ;) )


On 2010 Apr 20 (Tue) at 10:55:18 -0400 (-0400), Adam M. Dutko wrote:
:When I attempt to use my wireless card (AR5424) I get the following:
:
:ath0: unable to reset hardware; hal status 3520208968
:
:The number at the end changes when I try again.
:
:I believe I've traced where the error message is thrown to a section of code
:in src/sys/dev/ic/ath.c:
:
:
:if (!ath_hal_reset(ah, ic-ic_opmode, hchan, AH_TRUE, status)) {
:   printf(%s: unable to reset hardware; hal status %u\n,
:   ifp-if_xname, status);
:   error = EIO;
:   goto done;
:   }
:
:
:I'm going to recompile with ATH_DEBUG=10 and see if I can get more
:information.  I'm also trying to trace down the ath_hal_reset function
:to see if I can't find something in that area.
:
:Does anyone that's worked on a similar error have any pointers?  Thanks.
:

-- 
Christ:
A man who was born at least 5,000 years ahead of his time.