linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Silence debug prints when using adhoc mode
@ 2010-05-23 16:22 Mikko Rapeli
  2010-05-23 16:31 ` Mikko Rapeli
  2010-05-24  8:05 ` Johannes Berg
  0 siblings, 2 replies; 10+ messages in thread
From: Mikko Rapeli @ 2010-05-23 16:22 UTC (permalink / raw)
  To: Johannes Berg; +Cc: linux-wireless

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


^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2010-05-24 19:14 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-23 16:22 [PATCH] Silence debug prints when using adhoc mode Mikko Rapeli
2010-05-23 16:31 ` 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

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).