Falk-Moritz Schaefer wrote:
> The REG_READ macro works fine, but I used it in Rx/Tx routines. This seems to 
> be a bad point of time, because it results in a crash.
> 
> Btw: is there any way to determine if a REG_READ is possible or not?
> 
> Von: [email protected] 
> [mailto:[email protected]] Im Auftrag von Falk-Moritz 
> Schaefer
> Gesendet: Dienstag, 13. Juli 2010 10:28
> An: [email protected]
> Betreff: [ath9k-devel] ath9k_htc: how to read registers?
> 
> Hi all,
> 
> I have a TL-WN721N USB device with AR9271 chipset. I would like to read 
> registers. There is the “ath9k_regread” function in “htc_drv_init.c”, but how 
> to use
> it?
> 
> I am especially interested in the AR_RCCNT register.

Take a look at debug.c, read_file_regval().
You can port the "debug" debugfs file implementation from ath9k
to ath9k_htc.

Sujith
_______________________________________________
ath9k-devel mailing list
[email protected]
https://lists.ath9k.org/mailman/listinfo/ath9k-devel

Reply via email to