summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authormjacob <mjacob@FreeBSD.org>2001-10-09 00:14:41 +0000
committermjacob <mjacob@FreeBSD.org>2001-10-09 00:14:41 +0000
commit84784a2347f6d2056f0f0aee0798a587c0213f23 (patch)
tree4b97d5582254a69288879e479d3469b16a27ac22 /sys
parent2343dd5f763e0cf8884978b59d4ddb559f7d4ca0 (diff)
downloadFreeBSD-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')
-rw-r--r--sys/conf/NOTES4
-rw-r--r--sys/i386/conf/NOTES4
-rw-r--r--sys/pci/if_wx.c7
3 files changed, 14 insertions, 1 deletions
diff --git a/sys/conf/NOTES b/sys/conf/NOTES
index 9faf3b0c..8471c12 100644
--- a/sys/conf/NOTES
+++ b/sys/conf/NOTES
@@ -1770,6 +1770,10 @@ device miibus
# the PCMCIA and ISA cards: the ISA card is really a PCMCIA to ISA
# bridge with a PCMCIA adapter plugged into it.
# wx: Intel Gigabit Ethernet PCI card (`Wiseman')
+#
+# NOTE: THIS DRIVER IS SOON TO BE REMOVED FROM FREEBSD AND SHOULD BE
+# CONSIDERED DEPRECATED
+#
# xe: Xircom/Intel EtherExpress Pro100/16 PC Card ethernet controller,
# Accton Fast EtherCard-16, Compaq Netelligent 10/100 PC Card,
# Toshiba 10/100 Ethernet PC Card, Xircom 16-bit Ethernet + Modem 56
diff --git a/sys/i386/conf/NOTES b/sys/i386/conf/NOTES
index 9faf3b0c..8471c12 100644
--- a/sys/i386/conf/NOTES
+++ b/sys/i386/conf/NOTES
@@ -1770,6 +1770,10 @@ device miibus
# the PCMCIA and ISA cards: the ISA card is really a PCMCIA to ISA
# bridge with a PCMCIA adapter plugged into it.
# wx: Intel Gigabit Ethernet PCI card (`Wiseman')
+#
+# NOTE: THIS DRIVER IS SOON TO BE REMOVED FROM FREEBSD AND SHOULD BE
+# CONSIDERED DEPRECATED
+#
# xe: Xircom/Intel EtherExpress Pro100/16 PC Card ethernet controller,
# Accton Fast EtherCard-16, Compaq Netelligent 10/100 PC Card,
# Toshiba 10/100 Ethernet PC Card, Xircom 16-bit Ethernet + Modem 56
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);
OpenPOWER on IntegriCloud