summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcheloha <cheloha@openbsd.org>2020-04-06 19:45:47 +0000
committercheloha <cheloha@openbsd.org>2020-04-06 19:45:47 +0000
commit5e04d77b039454be3ffdfcce35a10c80275a9730 (patch)
tree7dea4b0bbbe15cd2ed8eaa49f711164aea30d105
parentsunkbd(4): timeout_add(9) -> timeout_add_msec(9); ok kettenis@ (diff)
downloadwireguard-openbsd-5e04d77b039454be3ffdfcce35a10c80275a9730.tar.xz
wireguard-openbsd-5e04d77b039454be3ffdfcce35a10c80275a9730.zip
wi(4): tsleep(9) -> tsleep_nsec(9); ok stsp@
-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:
{