From: Mikko Rapeli <mikko.rapeli@iki.fi>
To: Johannes Berg <johannes@sipsolutions.net>
Cc: linux-wireless@vger.kernel.org
Subject: [PATCH] Silence debug prints when using adhoc mode
Date: Sun, 23 May 2010 19:22:40 +0300 [thread overview]
Message-ID: <20100523162240.GZ19669@nalle> (raw)
This is flooded to syslog quite a few times when connecting to another
Linux box in adhoc mode. Syslog files fill up the disk fast:
$ dmesg | tail -10
[ 1986.772018] wlan0: No active IBSS STAs - trying to scan for other IBSS networks with same SSID (merge)
[ 1986.776149] wlan0: No active IBSS STAs - trying to scan for other IBSS networks with same SSID (merge)
[ 1986.780076] wlan0: No active IBSS STAs - trying to scan for other IBSS networks with same SSID (merge)
[ 1986.784020] wlan0: No active IBSS STAs - trying to scan for other IBSS networks with same SSID (merge)
[ 1986.788149] wlan0: No active IBSS STAs - trying to scan for other IBSS networks with same SSID (merge)
[ 1986.792108] wlan0: No active IBSS STAs - trying to scan for other IBSS networks with same SSID (merge)
[ 1986.796070] wlan0: No active IBSS STAs - trying to scan for other IBSS networks with same SSID (merge)
[ 1986.800018] wlan0: No active IBSS STAs - trying to scan for other IBSS networks with same SSID (merge)
[ 1986.804186] wlan0: No active IBSS STAs - trying to scan for other IBSS networks with same SSID (merge)
[ 1986.808072] wlan0: No active IBSS STAs - trying to scan for other IBSS networks with same SSID (merge)
Tested on a Thinkpad T60 with Intel Corporation PRO/Wireless 3945ABG [Golan]
Network Connection (rev 02) running vanilla 2.6.34 kernel.
Signed-off-by: Mikko Rapeli <mikko.rapeli@iki.fi>
---
net/mac80211/ibss.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/net/mac80211/ibss.c b/net/mac80211/ibss.c
index e2976da..eab174f 100644
--- a/net/mac80211/ibss.c
+++ b/net/mac80211/ibss.c
@@ -478,8 +478,10 @@ static void ieee80211_sta_merge_ibss(struct ieee80211_sub_if_data *sdata)
if (ifibss->fixed_channel)
return;
+#ifdef CONFIG_MAC80211_IBSS_DEBUG
printk(KERN_DEBUG "%s: No active IBSS STAs - trying to scan for other "
"IBSS networks with same SSID (merge)\n", sdata->name);
+#endif
ieee80211_request_internal_scan(sdata, ifibss->ssid, ifibss->ssid_len);
}
--
1.7.1
next reply other threads:[~2010-05-23 16:22 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-23 16:22 Mikko Rapeli [this message]
2010-05-23 16:31 ` [PATCH] Silence debug prints when using adhoc mode Mikko Rapeli
2010-05-24 8:04 ` Johannes Berg
2010-05-24 8:05 ` Johannes Berg
2010-05-24 8:09 ` Johannes Berg
2010-05-24 8:14 ` Mikko Rapeli
2010-05-24 8:24 ` Johannes Berg
2010-05-24 8:28 ` Mikko Rapeli
2010-05-24 13:59 ` Mikko Rapeli
2010-05-24 19:14 ` Mikko Rapeli
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=20100523162240.GZ19669@nalle \
--to=mikko.rapeli@iki.fi \
--cc=johannes@sipsolutions.net \
--cc=linux-wireless@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).