diff options
author | sam <sam@FreeBSD.org> | 2003-01-20 20:55:37 +0000 |
---|---|---|
committer | sam <sam@FreeBSD.org> | 2003-01-20 20:55:37 +0000 |
commit | cc2020e33d1e791ab1a768d9159ad227fa2a8204 (patch) | |
tree | 8286e868925871371425ff7ca5b5f1ea8c1e7890 /sys/dev/wi/if_wi.c | |
parent | e7aa3377469bf8ef7a953f0fbced267c5cfa641d (diff) | |
download | FreeBSD-src-cc2020e33d1e791ab1a768d9159ad227fa2a8204.zip FreeBSD-src-cc2020e33d1e791ab1a768d9159ad227fa2a8204.tar.gz |
correct sysctl names and move them to hw.wi: hw.wi.txerate controls the rate
at which tx errors are printed (default to 0); hw.wi.debug control the debug
msgs and is only present when WI_DEBUG is defined at compile time (the default
for the moment)
Requested by: imp
Diffstat (limited to 'sys/dev/wi/if_wi.c')
-rw-r--r-- | sys/dev/wi/if_wi.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/sys/dev/wi/if_wi.c b/sys/dev/wi/if_wi.c index 90f14a9..739d02f 100644 --- a/sys/dev/wi/if_wi.c +++ b/sys/dev/wi/if_wi.c @@ -170,17 +170,19 @@ wi_write_val(struct wi_softc *sc, int rid, u_int16_t val) return wi_write_rid(sc, rid, &val, sizeof(val)); } +SYSCTL_NODE(_hw, OID_AUTO, wi, CTLFLAG_RD, 0, "Wireless driver parameters"); + static struct timeval lasttxerror; /* time of last tx error msg */ static int curtxeps; /* current tx error msgs/sec */ static int wi_txerate = 0; /* tx error rate: max msgs/sec */ -SYSCTL_INT(_kern, OID_AUTO, wi, CTLFLAG_RW, &wi_txerate, - 0, "Wireless driver max tx error msgs/sec; 0 disables msgs"); +SYSCTL_INT(_hw_wi, OID_AUTO, txerate, CTLFLAG_RW, &wi_txerate, + 0, "max tx error msgs/sec; 0 disables msgs"); #define WI_DEBUG #ifdef WI_DEBUG static int wi_debug = 0; -SYSCTL_INT(_debug, OID_AUTO, wi, CTLFLAG_RW, &wi_debug, - 0, "Wireless driver debugging printfs"); +SYSCTL_INT(_hw_wi, OID_AUTO, debug, CTLFLAG_RW, &wi_debug, + 0, "control debugging printfs"); #define DPRINTF(X) if (wi_debug) printf X #define DPRINTF2(X) if (wi_debug > 1) printf X |