diff options
| author | dbj <dbj@NetBSD.org> | 2002-03-06 14:41:39 +0000 |
|---|---|---|
| committer | dbj <dbj@NetBSD.org> | 2002-03-06 14:41:39 +0000 |
| commit | 5c7e9abe49fc23d2f0392bfbc36a1cc02bb64caf (patch) | |
| tree | 1ac32304840698282f14c7a7a454bd3bd851092b /sys/dev/ic | |
| parent | 3f3656ac20e31147e07ded37021dc879e66c74d6 (diff) | |
return EINPROGRESS instead of EINVAL when trying to read
the results of an AP scan that is not finished
Diffstat (limited to 'sys/dev/ic')
| -rw-r--r-- | sys/dev/ic/wi.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/ic/wi.c b/sys/dev/ic/wi.c index e4f1a1c2ee9..7c45d102f7c 100644 --- a/sys/dev/ic/wi.c +++ b/sys/dev/ic/wi.c @@ -1,4 +1,4 @@ -/* $NetBSD: wi.c,v 1.49 2002/03/04 01:56:12 dbj Exp $ */ +/* $NetBSD: wi.c,v 1.50 2002/03/06 14:41:39 dbj Exp $ */ /* * Copyright (c) 1997, 1998, 1999 @@ -70,7 +70,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: wi.c,v 1.49 2002/03/04 01:56:12 dbj Exp $"); +__KERNEL_RCSID(0, "$NetBSD: wi.c,v 1.50 2002/03/06 14:41:39 dbj Exp $"); #define WI_HERMES_AUTOINC_WAR /* Work around data write autoinc bug. */ #define WI_HERMES_STATS_WAR /* Work around stats counter bug. */ @@ -1469,7 +1469,7 @@ wi_ioctl(ifp, command, data) wreq.wi_len = (sizeof(sc->wi_stats) / 2) + 1; } else if (wreq.wi_type == WI_RID_READ_APS) { if (sc->wi_scanning) { - error = EINVAL; + error = EINPROGRESS; break; } else { len = sc->wi_naps * sizeof(struct wi_apinfo); |
