summaryrefslogtreecommitdiffstats
path: root/sys/dev/wi
diff options
context:
space:
mode:
authorsam <sam@FreeBSD.org>2003-01-20 21:06:58 +0000
committersam <sam@FreeBSD.org>2003-01-20 21:06:58 +0000
commitc866f31dba997464d5720e2170ed2c9af44fed54 (patch)
tree6c0b190d791df2efa66eb0f023e9e1780dd25ca0 /sys/dev/wi
parentcc2020e33d1e791ab1a768d9159ad227fa2a8204 (diff)
downloadFreeBSD-src-c866f31dba997464d5720e2170ed2c9af44fed54.zip
FreeBSD-src-c866f31dba997464d5720e2170ed2c9af44fed54.tar.gz
correct default setting of hw.wi.txerate; it must be -1, not zero,
to silence all msgs (like the old driver)
Diffstat (limited to 'sys/dev/wi')
-rw-r--r--sys/dev/wi/if_wi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/wi/if_wi.c b/sys/dev/wi/if_wi.c
index 739d02f..5d469a1 100644
--- a/sys/dev/wi/if_wi.c
+++ b/sys/dev/wi/if_wi.c
@@ -174,9 +174,9 @@ 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 */
+static int wi_txerate = -1; /* tx error rate: max msgs/sec */
SYSCTL_INT(_hw_wi, OID_AUTO, txerate, CTLFLAG_RW, &wi_txerate,
- 0, "max tx error msgs/sec; 0 disables msgs");
+ 0, "max tx error msgs/sec; -1 disables msgs");
#define WI_DEBUG
#ifdef WI_DEBUG
OpenPOWER on IntegriCloud