ath9k_htc: Add RX error statistics
Signed-off-by: Sujith Manoharan <Sujith.Manoharan@atheros.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:

committed by
John W. Linville

parent
8e42e4ba98
commit
719c4cf6b1
@@ -296,6 +296,9 @@ struct ath9k_htc_tx_ctl {
|
||||
|
||||
#define TX_QSTAT_INC(q) (priv->debug.tx_stats.queue_stats[q]++)
|
||||
|
||||
void ath9k_htc_err_stat_rx(struct ath9k_htc_priv *priv,
|
||||
struct ath_htc_rx_status *rxs);
|
||||
|
||||
struct ath_tx_stats {
|
||||
u32 buf_queued;
|
||||
u32 buf_completed;
|
||||
@@ -310,6 +313,14 @@ struct ath_rx_stats {
|
||||
u32 skb_allocated;
|
||||
u32 skb_completed;
|
||||
u32 skb_dropped;
|
||||
u32 err_crc;
|
||||
u32 err_decrypt_crc;
|
||||
u32 err_mic;
|
||||
u32 err_pre_delim;
|
||||
u32 err_post_delim;
|
||||
u32 err_decrypt_busy;
|
||||
u32 err_phy;
|
||||
u32 err_phy_stats[ATH9K_PHYERR_MAX];
|
||||
};
|
||||
|
||||
struct ath9k_debug {
|
||||
@@ -330,6 +341,11 @@ struct ath9k_debug {
|
||||
|
||||
#define TX_QSTAT_INC(c) do { } while (0)
|
||||
|
||||
static inline void ath9k_htc_err_stat_rx(struct ath9k_htc_priv *priv,
|
||||
struct ath_htc_rx_status *rxs)
|
||||
{
|
||||
}
|
||||
|
||||
#endif /* CONFIG_ATH9K_HTC_DEBUGFS */
|
||||
|
||||
#define ATH_LED_PIN_DEF 1
|
||||
|
Reference in New Issue
Block a user