]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitcc9ff1dd1df75cb79bcc830eac1ef0ca373f4164
tree94dd655f078c6f4dc1ec924e110ad33813268dbe
parent6f6d35371b7305eb49ca9c6383407e3861563841
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