diff options
author | Bruno Randolf <br1@einfach.org> | 2010-06-16 06:12:39 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-06-16 14:59:07 -0400 |
commit | 6a0076e02a884e86c762a7b63cb50c2e30067491 (patch) | |
tree | fd3ccf3b2acf2697648710816bd44c33fa5f0471 /drivers | |
parent | 8786123b51984c518436911048668f9673f30cdf (diff) |
ath5k: report PHY error frames only for chips which need it
Only report PHY error frames for ANI on chipsets which do not have PHY error
counters in hardware.
Signed-off-by: Bruno Randolf <br1@einfach.org>
Acked-by: Bob Copeland <me@bobcopeland.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/wireless/ath/ath5k/desc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath5k/desc.c b/drivers/net/wireless/ath/ath5k/desc.c index c0037b61e095..43244382f213 100644 --- a/drivers/net/wireless/ath/ath5k/desc.c +++ b/drivers/net/wireless/ath/ath5k/desc.c | |||
@@ -651,7 +651,8 @@ static int ath5k_hw_proc_5212_rx_status(struct ath5k_hw *ah, | |||
651 | rs->rs_status |= AR5K_RXERR_PHY; | 651 | rs->rs_status |= AR5K_RXERR_PHY; |
652 | rs->rs_phyerr = AR5K_REG_MS(rx_status->rx_status_1, | 652 | rs->rs_phyerr = AR5K_REG_MS(rx_status->rx_status_1, |
653 | AR5K_5212_RX_DESC_STATUS1_PHY_ERROR_CODE); | 653 | AR5K_5212_RX_DESC_STATUS1_PHY_ERROR_CODE); |
654 | ath5k_ani_phy_error_report(ah, rs->rs_phyerr); | 654 | if (!ah->ah_capabilities.cap_has_phyerr_counters) |
655 | ath5k_ani_phy_error_report(ah, rs->rs_phyerr); | ||
655 | } | 656 | } |
656 | 657 | ||
657 | if (rx_status->rx_status_1 & | 658 | if (rx_status->rx_status_1 & |