diff options
author | adrian <adrian@FreeBSD.org> | 2011-12-23 02:40:35 +0000 |
---|---|---|
committer | adrian <adrian@FreeBSD.org> | 2011-12-23 02:40:35 +0000 |
commit | a2b2712980e36e6162bd4ef4fa835685b97b2e60 (patch) | |
tree | dba0800ccad527134f594705c5f548850780af96 /sys/dev/ath/if_ath.c | |
parent | 606dec5914fedd040a2729d1d9cfec82b9b4817d (diff) | |
download | FreeBSD-src-a2b2712980e36e6162bd4ef4fa835685b97b2e60.zip FreeBSD-src-a2b2712980e36e6162bd4ef4fa835685b97b2e60.tar.gz |
Make some more of the 11n specific code conditional.
This doesn't fix compilation w/out AH_SUPPORT_AR5416 as all of the software
aggregation support in if_ath_tx.c and 11n code in if_ath_tx_ht.c touches
the 11n specific fields. I'll work on that later.
Diffstat (limited to 'sys/dev/ath/if_ath.c')
-rw-r--r-- | sys/dev/ath/if_ath.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/dev/ath/if_ath.c b/sys/dev/ath/if_ath.c index 30458af..4e2bf30 100644 --- a/sys/dev/ath/if_ath.c +++ b/sys/dev/ath/if_ath.c @@ -3962,6 +3962,7 @@ ath_rx_proc(struct ath_softc *sc, int resched) npkts++; /* These aren't specifically errors */ +#ifdef AH_SUPPORT_AR5416 if (rs->rs_flags & HAL_RX_GI) sc->sc_stats.ast_rx_halfgi++; if (rs->rs_flags & HAL_RX_2040) @@ -3974,6 +3975,7 @@ ath_rx_proc(struct ath_softc *sc, int resched) sc->sc_stats.ast_rx_decrypt_busy_err++; if (rs->rs_flags & HAL_RX_HI_RX_CHAIN) sc->sc_stats.ast_rx_hi_rx_chain++; +#endif /* AH_SUPPORT_AR5416 */ if (rs->rs_status != 0) { if (rs->rs_status & HAL_RXERR_CRC) @@ -4191,8 +4193,10 @@ rx_accept: IEEE80211_KEYIX_NONE : rs->rs_keyix); sc->sc_lastrs = rs; +#ifdef AH_SUPPORT_AR5416 if (rs->rs_isaggr) sc->sc_stats.ast_rx_agg++; +#endif /* AH_SUPPORT_AR5416 */ if (ni != NULL) { /* |