summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorcheloha <cheloha@cvs.openbsd.org>2020-04-06 19:45:48 +0000
committercheloha <cheloha@cvs.openbsd.org>2020-04-06 19:45:48 +0000
commitfbb91b470cee900c5baec582760f9bc11a7a8b5d (patch)
tree51a1ee2b20e2010b6a3a4505aacc280dd9e512b3 /sys
parentf78bdcc26b98be0f776c03911adb7c6f4737962c (diff)
wi(4): tsleep(9) -> tsleep_nsec(9); ok stsp@
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/ic/if_wi.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/ic/if_wi.c b/sys/dev/ic/if_wi.c
index ac717fb99d0..6513b7fe02e 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.171 2019/12/31 10:05:32 mpi Exp $ */
+/* $OpenBSD: if_wi.c,v 1.172 2020/04/06 19:45:47 cheloha Exp $ */
/*
* Copyright (c) 1997, 1998, 1999
@@ -1865,8 +1865,8 @@ wi_ioctl(struct ifnet *ifp, u_long command, caddr_t data)
timeout_add(&sc->wi_scan_timeout, len);
/* Let the userspace process wait for completion */
- error = tsleep(&sc->wi_scan_lock, PCATCH, "wiscan",
- hz * IEEE80211_SCAN_TIMEOUT);
+ error = tsleep_nsec(&sc->wi_scan_lock, PCATCH, "wiscan",
+ SEC_TO_NSEC(IEEE80211_SCAN_TIMEOUT));
break;
case SIOCG80211ALLNODES:
{