summaryrefslogtreecommitdiffstats
path: root/sys/net80211/ieee80211_node.c
diff options
context:
space:
mode:
authorstsp <stsp@openbsd.org>2012-07-18 13:24:28 +0000
committerstsp <stsp@openbsd.org>2012-07-18 13:24:28 +0000
commit2f1a25444459e0ea31940aefe300303887f12acb (patch)
tree2a3ace4bbeea1e7fc4c5e2af47a2ea44598019d0 /sys/net80211/ieee80211_node.c
parentFix handling of paragraph macros inside lists: (diff)
downloadwireguard-openbsd-2f1a25444459e0ea31940aefe300303887f12acb.tar.xz
wireguard-openbsd-2f1a25444459e0ea31940aefe300303887f12acb.zip
Print messages about nodes purged from the node cache if hostap/ibss modes are
compiled in and the interface is in debug mode. ok sthen
Diffstat (limited to 'sys/net80211/ieee80211_node.c')
-rw-r--r--sys/net80211/ieee80211_node.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/net80211/ieee80211_node.c b/sys/net80211/ieee80211_node.c
index 21639714169..ead12a31257 100644
--- a/sys/net80211/ieee80211_node.c
+++ b/sys/net80211/ieee80211_node.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ieee80211_node.c,v 1.70 2012/07/16 14:51:46 stsp Exp $ */
+/* $OpenBSD: ieee80211_node.c,v 1.71 2012/07/18 13:24:28 stsp Exp $ */
/* $NetBSD: ieee80211_node.c,v 1.14 2004/05/09 09:18:47 dyoung Exp $ */
/*-
@@ -1194,9 +1194,10 @@ ieee80211_clean_nodes(struct ieee80211com *ic, int cache_timeout)
continue;
}
}
+ if (ifp->if_flags & IFF_DEBUG)
+ printf("%s: station %s purged from node cache\n",
+ ifp->if_xname, ether_sprintf(ni->ni_macaddr));
#endif
- DPRINTF(("station %s purged from LRU cache\n",
- ether_sprintf(ni->ni_macaddr)));
/*
* If we're hostap and the node is authenticated, send
* a deauthentication frame. The node will be freed when