From: Jiri Benc <jbenc@suse.cz>
To: "John W. Linville" <linville@tuxdriver.com>
Cc: netdev@vger.kernel.org
Subject: [PATCH 10/21] d80211: make lowlevel TX framedump option visible
Date: Wed, 23 Aug 2006 21:24:19 +0200 (CEST) [thread overview]
Message-ID: <20060823192419.2F400483AA@silver.suse.cz> (raw)
In-Reply-To: <20060823212316.333159079.midnight@suse.cz>
From: Johannes Berg <johannes@sipsolutions.net>
This patch surfaces the lowlevel TX framedump option in Kconfig.
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: Jiri Benc <jbenc@suse.cz>
---
net/d80211/Kconfig | 13 +++++++++++++
net/d80211/ieee80211.c | 6 +++---
2 files changed, 16 insertions(+), 3 deletions(-)
bebc14745291105672e2cc3c46821e1c0731b330
diff --git a/net/d80211/Kconfig b/net/d80211/Kconfig
index 36df52d..ffe2bdf 100644
--- a/net/d80211/Kconfig
+++ b/net/d80211/Kconfig
@@ -21,6 +21,19 @@ config D80211_VERBOSE_DEBUG
bool "Verbose debugging output"
depends on D80211_DEBUG
+config D80211_LOWTX_FRAME_DUMP
+ bool "Debug frame dumping"
+ depends on D80211_DEBUG
+ ---help---
+ Selecting this option will cause the stack to
+ print a message for each frame that is handed
+ to the lowlevel driver for transmission. This
+ message includes all MAC addresses and the
+ frame control field.
+
+ If unsure, say N and insert the debugging code
+ you require into the driver you are debugging.
+
config TKIP_DEBUG
bool "TKIP debugging"
depends on D80211_DEBUG
diff --git a/net/d80211/ieee80211.c b/net/d80211/ieee80211.c
index b9bea6a..96ef85a 100644
--- a/net/d80211/ieee80211.c
+++ b/net/d80211/ieee80211.c
@@ -284,7 +284,7 @@ int ieee80211_get_hdrlen_from_skb(struct
}
EXPORT_SYMBOL(ieee80211_get_hdrlen_from_skb);
-#ifdef IEEE80211_VERBOSE_DEBUG_FRAME_DUMP
+#ifdef CONFIG_D80211_LOWTX_FRAME_DUMP
static void ieee80211_dump_frame(const char *ifname, const char *title,
struct sk_buff *skb)
{
@@ -315,12 +315,12 @@ static void ieee80211_dump_frame(const c
printk(" A4=" MAC_FMT, MAC_ARG(hdr->addr4));
printk("\n");
}
-#else /* IEEE80211_VERBOSE_DEBUG_FRAME_DUMP */
+#else /* CONFIG_D80211_LOWTX_FRAME_DUMP */
static inline void ieee80211_dump_frame(const char *ifname, const char *title,
struct sk_buff *skb)
{
}
-#endif /* IEEE80211_VERBOSE_DEBUG_FRAME_DUMP */
+#endif /* CONFIG_D80211_LOWTX_FRAME_DUMP */
static int ieee80211_is_eapol(struct sk_buff *skb)
--
1.3.0
next prev parent reply other threads:[~2006-08-23 19:24 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-08-23 19:24 [PATCH 0/21] d80211: pull request Jiri Benc
2006-08-23 19:24 ` [PATCH 1/21] d80211: relax sysfs permissions Jiri Benc
2006-08-23 19:24 ` [PATCH 2/21] d80211: master link Jiri Benc
2006-08-23 19:24 ` [PATCH 3/21] d80211: pointers as extended booleans Jiri Benc
2006-08-23 19:24 ` [PATCH 4/21] d80211: use kzalloc() Jiri Benc
2006-08-23 19:24 ` [PATCH 5/21] d80211: get rid of WME bitfield Jiri Benc
2006-08-23 19:24 ` [PATCH 6/21] d80211: get rid of sta_aid in favour of keeping track of TIM Jiri Benc
2006-08-23 19:24 ` [PATCH 7/21] d80211: clean up exports Jiri Benc
2006-08-23 19:24 ` [PATCH 8/21] d80211: clean up includes Jiri Benc
2006-08-23 19:24 ` [PATCH 9/21] d80211: fix some sparse warnings Jiri Benc
2006-08-23 19:24 ` Jiri Benc [this message]
2006-08-23 19:24 ` [PATCH 11/21] d80211: surface IBSS debug Jiri Benc
2006-08-23 19:24 ` [PATCH 12/21] d80211: get rid of MICHAEL_MIC_HWACCEL define Jiri Benc
2006-08-23 19:24 ` [PATCH 13/21] d80211: surface powersave debug switch Jiri Benc
2006-08-23 19:24 ` [PATCH 14/21] d80211: fix some documentation Jiri Benc
2006-08-23 19:24 ` [PATCH 15/21] d80211: switch status codes, reason codes, and EIDs to enums Jiri Benc
2006-08-23 19:24 ` [PATCH 16/21] d80211: Group EIDs by standard, add remaining 802.11d EIDs Jiri Benc
2006-08-23 19:24 ` [PATCH 17/21] d80211: remove useless and wrong check for interface type Jiri Benc
2006-08-23 19:24 ` [PATCH 18/21] d80211: allow for large scan results Jiri Benc
2006-08-23 19:24 ` [PATCH 19/21] d80211: fix multiple device support Jiri Benc
2006-08-23 19:24 ` [PATCH 20/21] d80211: fix interface removal Jiri Benc
2006-08-23 19:24 ` [PATCH 21/21] d80211: add ieee80211_stop_queues() Jiri Benc
2006-08-23 19:30 ` [PATCH 0/21] d80211: pull request Jiri Benc
2006-08-24 7:58 ` Johannes Berg
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20060823192419.2F400483AA@silver.suse.cz \
--to=jbenc@suse.cz \
--cc=linville@tuxdriver.com \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).