aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath5k/base.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/ath/ath5k/base.c')
-rw-r--r--drivers/net/wireless/ath/ath5k/base.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath5k/base.c b/drivers/net/wireless/ath/ath5k/base.c
index 7c08434ebd1a..e7a989c707ac 100644
--- a/drivers/net/wireless/ath/ath5k/base.c
+++ b/drivers/net/wireless/ath/ath5k/base.c
@@ -1997,6 +1997,12 @@ accept:
1997 rxs->signal = rxs->noise + rs.rs_rssi; 1997 rxs->signal = rxs->noise + rs.rs_rssi;
1998 1998
1999 rxs->antenna = rs.rs_antenna; 1999 rxs->antenna = rs.rs_antenna;
2000
2001 if (rs.rs_antenna > 0 && rs.rs_antenna < 5)
2002 sc->stats.antenna_rx[rs.rs_antenna]++;
2003 else
2004 sc->stats.antenna_rx[0]++; /* invalid */
2005
2000 rxs->rate_idx = ath5k_hw_to_driver_rix(sc, rs.rs_rate); 2006 rxs->rate_idx = ath5k_hw_to_driver_rix(sc, rs.rs_rate);
2001 rxs->flag |= ath5k_rx_decrypted(sc, ds, skb, &rs); 2007 rxs->flag |= ath5k_rx_decrypted(sc, ds, skb, &rs);
2002 2008
@@ -2090,6 +2096,11 @@ ath5k_tx_processq(struct ath5k_softc *sc, struct ath5k_txq *txq)
2090 */ 2096 */
2091 ath5k_remove_padding(skb); 2097 ath5k_remove_padding(skb);
2092 2098
2099 if (ts.ts_antenna > 0 && ts.ts_antenna < 5)
2100 sc->stats.antenna_tx[ts.ts_antenna]++;
2101 else
2102 sc->stats.antenna_tx[0]++; /* invalid */
2103
2093 ieee80211_tx_status(sc->hw, skb); 2104 ieee80211_tx_status(sc->hw, skb);
2094 2105
2095 spin_lock(&sc->txbuflock); 2106 spin_lock(&sc->txbuflock);