Ticks to seconds.  Trivial.

ok?

Index: if_wi.c
===================================================================
RCS file: /cvs/src/sys/dev/ic/if_wi.c,v
retrieving revision 1.171
diff -u -p -r1.171 if_wi.c
--- if_wi.c     31 Dec 2019 10:05:32 -0000      1.171
+++ if_wi.c     6 Apr 2020 18:29:33 -0000
@@ -1865,8 +1865,8 @@ wi_ioctl(struct ifnet *ifp, u_long comma
                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:
            {

Reply via email to