ath5k: add capability flag for phyerror counters
authorBruno Randolf <br1@einfach.org>
Thu, 25 Mar 2010 05:49:47 +0000 (14:49 +0900)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 31 Mar 2010 18:39:10 +0000 (14:39 -0400)
commita8c944f8a00dcc4ac6900efcddab1a0cf300c791
tree94dd655f078c6f4dc1ec924e110ad33813268dbe
parentda35111ad970081bdf6e848d1861c7d16e71079b
ath5k: add capability flag for phyerror counters

Chipsets since revision AR5213A (0x59) have hardware counters for PHY errors
which we can read directly from the registers. Older hardware has to use the RX
descriptor status to get a count of PHY errors. This will be used in several
places in the ANI implementation, so a flag is useful.

Signed-off-by: Bruno Randolf <br1@einfach.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath5k/ath5k.h
drivers/net/wireless/ath/ath5k/caps.c