Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 1 Jan 2004 20:41:41 -0800 (PST)
From:      Sam Leffler <sam@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 44664 for review
Message-ID:  <200401020441.i024ffnO053056@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=44664

Change 44664 by sam@sam_ebb on 2004/01/01 20:41:20

	shim ifmedia_removeall for NetBSD

Affected files ...

.. //depot/projects/netperf+sockets/sys/net80211/ieee80211.c#3 edit
.. //depot/projects/netperf+sockets/sys/net80211/ieee80211_compat.h#2 edit

Differences ...

==== //depot/projects/netperf+sockets/sys/net80211/ieee80211.c#3 (text+ko) ====

@@ -162,11 +162,7 @@
 	ieee80211_proto_detach(ifp);
 	ieee80211_crypto_detach(ifp);
 	ieee80211_node_detach(ifp);
-#ifdef __FreeBSD__
 	ifmedia_removeall(&ic->ic_media);
-#else
-        ifmedia_delete_instance(&ic->ic_media, IFM_INST_ANY);
-#endif
 #if NBPFILTER > 0
 	bpfdetach(ifp);
 #endif

==== //depot/projects/netperf+sockets/sys/net80211/ieee80211_compat.h#2 (text+ko) ====

@@ -58,6 +58,9 @@
 	splx(s);
 	return refcnt;
 }
+
+#define	ifmedia_removeall(_media) \
+        ifmedia_delete_instance((_media), IFM_INST_ANY)
 #endif /* __NetBSD__ */
 
 #ifdef __FreeBSD__



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200401020441.i024ffnO053056>