projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8786123
)
ath5k: report PHY error frames only for chips which need it
author
Bruno Randolf
<
[email protected]
>
Wed, 16 Jun 2010 10:12:39 +0000
(19:12 +0900)
committer
John W. Linville
<
[email protected]
>
Wed, 16 Jun 2010 18:59:07 +0000
(14:59 -0400)
Only report PHY error frames for ANI on chipsets which do not have PHY error
counters in hardware.
Signed-off-by: Bruno Randolf <
[email protected]
>
Acked-by: Bob Copeland <
[email protected]
>
Signed-off-by: John W. Linville <
[email protected]
>
drivers/net/wireless/ath/ath5k/desc.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/ath/ath5k/desc.c
b/drivers/net/wireless/ath/ath5k/desc.c
index c0037b61e09526f4f379311f46ba36e2f26e5d5c..43244382f213f67b4733c2cd9b50c0c7ce90db18 100644
(file)
--- 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,
rs->rs_status |= AR5K_RXERR_PHY;
rs->rs_phyerr = AR5K_REG_MS(rx_status->rx_status_1,
AR5K_5212_RX_DESC_STATUS1_PHY_ERROR_CODE);
- ath5k_ani_phy_error_report(ah, rs->rs_phyerr);
+ if (!ah->ah_capabilities.cap_has_phyerr_counters)
+ ath5k_ani_phy_error_report(ah, rs->rs_phyerr);
}
if (rx_status->rx_status_1 &