svn commit: r186987 - projects/vap7/sys/net80211
Sam Leffler
sam at FreeBSD.org
Sat Jan 10 00:17:04 UTC 2009
Author: sam
Date: Sat Jan 10 00:17:03 2009
New Revision: 186987
URL: http://svn.freebsd.org/changeset/base/186987
Log:
revert vimage support brought in by merge
Modified:
projects/vap7/sys/net80211/ieee80211_ddb.c
Modified: projects/vap7/sys/net80211/ieee80211_ddb.c
==============================================================================
--- projects/vap7/sys/net80211/ieee80211_ddb.c Fri Jan 9 23:57:59 2009 (r186986)
+++ projects/vap7/sys/net80211/ieee80211_ddb.c Sat Jan 10 00:17:03 2009 (r186987)
@@ -37,14 +37,12 @@ __FBSDID("$FreeBSD$");
#include <sys/systm.h>
#include <sys/kernel.h>
#include <sys/socket.h>
-#include <sys/vimage.h>
#include <net/if.h>
#include <net/if_dl.h>
#include <net/if_media.h>
#include <net/if_types.h>
#include <net/ethernet.h>
-#include <net/vnet.h>
#include <net80211/ieee80211_var.h>
@@ -191,7 +189,6 @@ DB_SHOW_COMMAND(com, db_show_com)
DB_SHOW_ALL_COMMAND(vaps, db_show_all_vaps)
{
- VNET_ITERATOR_DECL(vnet_iter);
const struct ifnet *ifp;
int i, showall = 0;
@@ -202,25 +199,22 @@ DB_SHOW_ALL_COMMAND(vaps, db_show_all_va
break;
}
- VNET_FOREACH(vnet_iter) {
- INIT_VNET_NET(vnet_iter);
- TAILQ_FOREACH(ifp, &V_ifnet, if_list)
- if (ifp->if_type == IFT_IEEE80211) {
- const struct ieee80211com *ic = ifp->if_l2com;
-
- if (!showall) {
- const struct ieee80211vap *vap;
- db_printf("%s: com %p vaps:",
- ifp->if_xname, ic);
- TAILQ_FOREACH(vap, &ic->ic_vaps,
- iv_next)
- db_printf(" %s(%p)",
- vap->iv_ifp->if_xname, vap);
- db_printf("\n");
- } else
- _db_show_com(ic, 1, 1, 1);
- }
- }
+ TAILQ_FOREACH(ifp, &ifnet, if_list)
+ if (ifp->if_type == IFT_IEEE80211) {
+ const struct ieee80211com *ic = ifp->if_l2com;
+
+ if (!showall) {
+ const struct ieee80211vap *vap;
+ db_printf("%s: com %p vaps:",
+ ifp->if_xname, ic);
+ TAILQ_FOREACH(vap, &ic->ic_vaps,
+ iv_next)
+ db_printf(" %s(%p)",
+ vap->iv_ifp->if_xname, vap);
+ db_printf("\n");
+ } else
+ _db_show_com(ic, 1, 1, 1);
+ }
}
static void
More information about the svn-src-projects
mailing list