diff options
author | mjacob <mjacob@FreeBSD.org> | 2001-10-09 00:14:41 +0000 |
---|---|---|
committer | mjacob <mjacob@FreeBSD.org> | 2001-10-09 00:14:41 +0000 |
commit | 84784a2347f6d2056f0f0aee0798a587c0213f23 (patch) | |
tree | 4b97d5582254a69288879e479d3469b16a27ac22 /sys/pci | |
parent | 2343dd5f763e0cf8884978b59d4ddb559f7d4ca0 (diff) | |
download | FreeBSD-src-84784a2347f6d2056f0f0aee0798a587c0213f23.zip FreeBSD-src-84784a2347f6d2056f0f0aee0798a587c0213f23.tar.gz |
Note that this driver is soon to be deprecated and removed from FreeBSD.
Diffstat (limited to 'sys/pci')
-rw-r--r-- | sys/pci/if_wx.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/pci/if_wx.c b/sys/pci/if_wx.c index ac83498..7a8b24a 100644 --- a/sys/pci/if_wx.c +++ b/sys/pci/if_wx.c @@ -1,5 +1,8 @@ /* $FreeBSD$ */ /* + * NOTE: THIS DRIVER IS SOON TO BE DEPRECATED AND REMOVED FROM FREEBSD + */ +/* * Principal Author: Matthew Jacob <mjacob@feral.com> * Copyright (c) 1999, 2001 by Traakan Software * All rights reserved. @@ -1819,7 +1822,9 @@ wx_ioctl(struct ifnet *ifp, IOCTL_CMD_TYPE command, caddr_t data) * such as IFF_PROMISC are handled. */ if (ifp->if_flags & IFF_UP) { - error = wx_init(sc); + if ((ifp->if_flags & IFF_RUNNING) == 0) { + error = wx_init(sc); + } } else { if (ifp->if_flags & IFF_RUNNING) { wx_stop(sc); |