Hi,
Just read the ath9k source for the debug filesystem stuff. See where
it's getting the data from.
* If phy error frames are enabled, you'll receive one phy error RX
frame for every error you've allowed (via a mask register whose name I
forget.) The driver then tracks these in a counter.
* If phy error frames aren't enabled, it simply reads the OFDM/CCK
error counters from a pair of hardware MIB variables, which I think is
reset periodically. Those are also configurable via a mask, so you can
enable certain PHY errors to be counted.
Do a little digging through drivers/net/wireless/ath/ath9k/debug.c and
trace where those particular variables are updated from. :-) The RX
PHY error frames are updated from recv.c I think; I'm not sure where
the AR_PHY_ERR_MASK_{1,2} and AR_PHY_ERR_{1,2} registers are
setup/read from. Just do a grep and figure it out.
Good luck!
Adrian
_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-devel