proc->thread stage 4: rework the VFS and DEVICE subsystems to take thread
[dragonfly.git] / sys / dev / netif / awi / awi.c
index d82e02d..7294ac0 100644 (file)
@@ -1,6 +1,6 @@
 /*     $NetBSD: awi.c,v 1.26 2000/07/21 04:48:55 onoe Exp $    */
 /* $FreeBSD: src/sys/dev/awi/awi.c,v 1.10.2.2 2003/01/23 21:06:42 sam Exp $ */
-/* $DragonFly: src/sys/dev/netif/awi/Attic/awi.c,v 1.3 2003/06/23 17:55:29 dillon Exp $ */
+/* $DragonFly: src/sys/dev/netif/awi/Attic/awi.c,v 1.4 2003/06/25 03:55:46 dillon Exp $ */
 
 /*-
  * Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -455,7 +455,7 @@ awi_ioctl(ifp, cmd, data)
        u_long cmd;
        caddr_t data;
 {
-       struct proc *cur = curproc;
+       struct thread *td = curthread;
        struct awi_softc *sc = ifp->if_softc;
        struct ifreq *ifr = (struct ifreq *)data;
        struct ifaddr *ifa = (struct ifaddr *)data;
@@ -521,7 +521,7 @@ awi_ioctl(ifp, cmd, data)
                break;
        case SIOCS80211NWID:
 #ifdef __FreeBSD__
-               error = suser_xxx(cur->p_ucred, 0);
+               error = suser(td);      /* EPERM if no proc */
                if (error)
                        break;
 #endif
@@ -555,7 +555,7 @@ awi_ioctl(ifp, cmd, data)
                break;
        case SIOCS80211NWKEY:
 #ifdef __FreeBSD__
-               error = suser_xxx(cur->p_ucred, 0);
+               error = suser(td);      /* EPERM if no proc */
                if (error)
                        break;
 #endif