From c641c690204b35bc94aaf9a2028d822d1186f4f4 Mon Sep 17 00:00:00 2001 From: damien Date: Thu, 14 Aug 2008 15:51:43 +0000 Subject: [PATCH] put ieee80211_dump_pkt() under #ifdef IEEE80211_DEBUG --- sys/net80211/ieee80211_proto.c | 4 +++- sys/net80211/ieee80211_proto.h | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/sys/net80211/ieee80211_proto.c b/sys/net80211/ieee80211_proto.c index 0504c675a6a..1fbd042ecb7 100644 --- a/sys/net80211/ieee80211_proto.c +++ b/sys/net80211/ieee80211_proto.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ieee80211_proto.c,v 1.32 2008/08/12 19:50:39 damien Exp $ */ +/* $OpenBSD: ieee80211_proto.c,v 1.33 2008/08/14 15:51:43 damien Exp $ */ /* $NetBSD: ieee80211_proto.c,v 1.8 2004/04/30 23:58:20 dyoung Exp $ */ /*- @@ -150,6 +150,7 @@ ieee80211_print_essid(const u_int8_t *essid, int len) } } +#ifdef IEEE80211_DEBUG void ieee80211_dump_pkt(const u_int8_t *buf, int len, int rate, int rssi) { @@ -209,6 +210,7 @@ ieee80211_dump_pkt(const u_int8_t *buf, int len, int rate, int rssi) printf("\n"); } } +#endif int ieee80211_fix_rate(struct ieee80211com *ic, struct ieee80211_node *ni, diff --git a/sys/net80211/ieee80211_proto.h b/sys/net80211/ieee80211_proto.h index 51863c212cb..93982eec369 100644 --- a/sys/net80211/ieee80211_proto.h +++ b/sys/net80211/ieee80211_proto.h @@ -1,4 +1,4 @@ -/* $OpenBSD: ieee80211_proto.h,v 1.32 2008/08/12 17:53:13 damien Exp $ */ +/* $OpenBSD: ieee80211_proto.h,v 1.33 2008/08/14 15:51:43 damien Exp $ */ /* $NetBSD: ieee80211_proto.h,v 1.3 2003/10/13 04:23:56 dyoung Exp $ */ /*- @@ -127,7 +127,9 @@ extern int ieee80211_parse_rsn(struct ieee80211com *, const u_int8_t *, extern int ieee80211_parse_wpa(struct ieee80211com *, const u_int8_t *, struct ieee80211_rsnparams *); extern void ieee80211_print_essid(const u_int8_t *, int); +#ifdef IEEE80211_DEBUG extern void ieee80211_dump_pkt(const u_int8_t *, int, int, int); +#endif extern int ieee80211_ibss_merge(struct ieee80211com *, struct ieee80211_node *, u_int64_t); extern void ieee80211_reset_erp(struct ieee80211com *); -- 2.20.1