diff options
author | damien <damien@FreeBSD.org> | 2005-08-20 14:34:54 +0000 |
---|---|---|
committer | damien <damien@FreeBSD.org> | 2005-08-20 14:34:54 +0000 |
commit | 3cab336710418a1e93825608f4443d6e80166c88 (patch) | |
tree | df332c0070a866727ca0e7aa4410660a42ba8f47 /sys | |
parent | c615f26ea8e0b091b811fc10352d6418afadcec9 (diff) | |
download | FreeBSD-src-3cab336710418a1e93825608f4443d6e80166c88.zip FreeBSD-src-3cab336710418a1e93825608f4443d6e80166c88.tar.gz |
Export adapter's internal statistics sysctl even if IWI_DEBUG is not defined.
MFC after: 1 week
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/iwi/if_iwi.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/sys/dev/iwi/if_iwi.c b/sys/dev/iwi/if_iwi.c index 9afa0c4..a124201 100644 --- a/sys/dev/iwi/if_iwi.c +++ b/sys/dev/iwi/if_iwi.c @@ -145,9 +145,7 @@ static int iwi_scan(struct iwi_softc *); static int iwi_auth_and_assoc(struct iwi_softc *); static void iwi_init(void *); static void iwi_stop(void *); -#ifdef IWI_DEBUG static int iwi_sysctl_stats(SYSCTL_HANDLER_ARGS); -#endif static int iwi_sysctl_radio(SYSCTL_HANDLER_ARGS); static int iwi_probe(device_t); @@ -388,12 +386,10 @@ iwi_attach(device_t dev) CTLTYPE_INT | CTLFLAG_RD, sc, 0, iwi_sysctl_radio, "I", "radio transmitter switch state (0=off, 1=on)"); -#ifdef IWI_DEBUG SYSCTL_ADD_PROC(device_get_sysctl_ctx(dev), SYSCTL_CHILDREN(device_get_sysctl_tree(dev)), OID_AUTO, "stats", CTLTYPE_OPAQUE | CTLFLAG_RD, sc, 0, iwi_sysctl_stats, "S", "statistics"); -#endif SYSCTL_ADD_INT(device_get_sysctl_ctx(dev), SYSCTL_CHILDREN(device_get_sysctl_tree(dev)), OID_AUTO, "dwell", @@ -2310,7 +2306,6 @@ iwi_stop(void *priv) ieee80211_new_state(ic, IEEE80211_S_INIT, -1); } -#ifdef IWI_DEBUG static int iwi_sysctl_stats(SYSCTL_HANDLER_ARGS) { @@ -2327,7 +2322,6 @@ iwi_sysctl_stats(SYSCTL_HANDLER_ARGS) return SYSCTL_OUT(req, buf, sizeof buf); } -#endif static int iwi_sysctl_radio(SYSCTL_HANDLER_ARGS) |