summaryrefslogtreecommitdiff
path: root/sys/dev/ic/if_wi.c
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2004-08-16 03:42:23 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2004-08-16 03:42:23 +0000
commitf409eb3230cd1580d88ddcdc863a0a1564fbcca7 (patch)
tree75c9696cde9b6cc4974a94fcf043800598408081 /sys/dev/ic/if_wi.c
parent562b89e181c3fbd5117c3bd84e23ae95648ba7d4 (diff)
crank wi_cmd_count to 2000 for the time being; should help avoid
timeouts on cards with station firmware < 1.8. Better fix coming post-3.6...
Diffstat (limited to 'sys/dev/ic/if_wi.c')
-rw-r--r--sys/dev/ic/if_wi.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/dev/ic/if_wi.c b/sys/dev/ic/if_wi.c
index 7938abf52f8..0d43ad8692c 100644
--- a/sys/dev/ic/if_wi.c
+++ b/sys/dev/ic/if_wi.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_wi.c,v 1.110 2004/06/22 20:48:00 millert Exp $ */
+/* $OpenBSD: if_wi.c,v 1.111 2004/08/16 03:42:22 millert Exp $ */
/*
* Copyright (c) 1997, 1998, 1999
@@ -126,7 +126,7 @@ u_int32_t widebug = WIDEBUG;
#if !defined(lint) && !defined(__OpenBSD__)
static const char rcsid[] =
- "$OpenBSD: if_wi.c,v 1.110 2004/06/22 20:48:00 millert Exp $";
+ "$OpenBSD: if_wi.c,v 1.111 2004/08/16 03:42:22 millert Exp $";
#endif /* lint */
#ifdef foo
@@ -293,6 +293,8 @@ wi_attach(struct wi_softc *sc, struct wi_funcs *funcs)
/* older prism firmware is slow so crank the count */
if (sc->sc_sta_firmware_ver < 10000)
sc->wi_cmd_count = 5000;
+ else
+ sc->wi_cmd_count = 2000;
if (sc->sc_sta_firmware_ver >= 800) {
#ifndef SMALL_KERNEL
if (sc->sc_sta_firmware_ver != 10402)