diff options
author | sam <sam@FreeBSD.org> | 2006-02-15 18:35:09 +0000 |
---|---|---|
committer | sam <sam@FreeBSD.org> | 2006-02-15 18:35:09 +0000 |
commit | d07dceee8c6c108f890c420b59ffbc60eb6deb57 (patch) | |
tree | 1d2026db2767654cdc25589b887799d465aa6f91 /sys/dev/ath | |
parent | 4157fa8fcb80ec7dce8ba413b36efc8c98cc89ee (diff) | |
download | FreeBSD-src-d07dceee8c6c108f890c420b59ffbc60eb6deb57.zip FreeBSD-src-d07dceee8c6c108f890c420b59ffbc60eb6deb57.tar.gz |
fix build w/o AR_DEBUG
MFC after: 2 weeks
Diffstat (limited to 'sys/dev/ath')
-rw-r--r-- | sys/dev/ath/if_ath.c | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/sys/dev/ath/if_ath.c b/sys/dev/ath/if_ath.c index 15f9691..3fdfbef 100644 --- a/sys/dev/ath/if_ath.c +++ b/sys/dev/ath/if_ath.c @@ -261,8 +261,12 @@ static void ath_printtxbuf(struct ath_buf *bf, u_int qnum, u_int ix, int done); #else #define IFF_DUMPPKTS(sc, m) \ ((sc->sc_ifp->if_flags & (IFF_DEBUG|IFF_LINK2)) == (IFF_DEBUG|IFF_LINK2)) -#define DPRINTF(m, fmt, ...) -#define KEYPRINTF(sc, k, ix, mac) +#define DPRINTF(sc, m, fmt, ...) do { \ + (void) sc; \ +} while (0) +#define KEYPRINTF(sc, k, ix, mac) do { \ + (void) sc; \ +} while (0) #endif MALLOC_DEFINE(M_ATHDEV, "athdev", "ath driver dma buffers"); @@ -3955,7 +3959,9 @@ ath_tx_proc(void *arg, int npending) static void ath_tx_draintxq(struct ath_softc *sc, struct ath_txq *txq) { +#ifdef AR_DEBUG struct ath_hal *ah = sc->sc_ah; +#endif struct ieee80211_node *ni; struct ath_buf *bf; u_int ix; @@ -5271,11 +5277,12 @@ ath_sysctlattach(struct ath_softc *sc) SYSCTL_ADD_PROC(ctx, SYSCTL_CHILDREN(tree), OID_AUTO, "regdomain", CTLTYPE_INT | CTLFLAG_RW, sc, 0, ath_sysctl_regdomain, "I", "EEPROM regdomain code"); +#ifdef AR_DEBUG sc->sc_debug = ath_debug; SYSCTL_ADD_INT(ctx, SYSCTL_CHILDREN(tree), OID_AUTO, "debug", CTLFLAG_RW, &sc->sc_debug, 0, "control debugging printfs"); - +#endif SYSCTL_ADD_PROC(ctx, SYSCTL_CHILDREN(tree), OID_AUTO, "slottime", CTLTYPE_INT | CTLFLAG_RW, sc, 0, ath_sysctl_slottime, "I", "802.11 slot time (us)"); |