diff options
author | adrian <adrian@FreeBSD.org> | 2011-02-01 04:39:15 +0000 |
---|---|---|
committer | adrian <adrian@FreeBSD.org> | 2011-02-01 04:39:15 +0000 |
commit | 630b2f088a67ff1b18fee1352b5c9e10d7d3f495 (patch) | |
tree | f24f784a38184eb4fa5c0b852f4cb96cd6cbdb7a | |
parent | 1fe70193d4e3f0a0848d6c0af73aaf439d094bf9 (diff) | |
download | FreeBSD-src-630b2f088a67ff1b18fee1352b5c9e10d7d3f495.zip FreeBSD-src-630b2f088a67ff1b18fee1352b5c9e10d7d3f495.tar.gz |
Add TX/RX chainmask info to if_ath - this is needed for the 11n TX rate series.
-rw-r--r-- | sys/dev/ath/if_athvar.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/dev/ath/if_athvar.h b/sys/dev/ath/if_athvar.h index 4cec4ce..f7a1602 100644 --- a/sys/dev/ath/if_athvar.h +++ b/sys/dev/ath/if_athvar.h @@ -346,6 +346,8 @@ struct ath_softc { u_int32_t sc_avgtsfdeltap;/* TDMA slot adjust (+) */ u_int32_t sc_avgtsfdeltam;/* TDMA slot adjust (-) */ uint16_t *sc_eepromdata; /* Local eeprom data, if AR9100 */ + int sc_txchainmask; /* currently configured TX chainmask */ + int sc_rxchainmask; /* currently configured RX chainmask */ }; #define ATH_LOCK_INIT(_sc) \ @@ -630,6 +632,10 @@ void ath_intr(void *); ath_hal_setcapability(_ah, HAL_CAP_INTMIT, 1, _v, NULL) #define ath_hal_getchannoise(_ah, _c) \ ((*(_ah)->ah_getChanNoise)((_ah), (_c))) +#define ath_hal_getrxchainmask(_ah, _prxchainmask) \ + (ath_hal_getcapability(_ah, HAL_CAP_RX_CHAINMASK, 0, _prxchainmask)) +#define ath_hal_gettxchainmask(_ah, _ptxchainmask) \ + (ath_hal_getcapability(_ah, HAL_CAP_TX_CHAINMASK, 0, _ptxchainmask)) #define ath_hal_setuprxdesc(_ah, _ds, _size, _intreq) \ ((*(_ah)->ah_setupRxDesc)((_ah), (_ds), (_size), (_intreq))) |