Skip to contentSkip to conversation

mac80211: kill useless scan printks

PATCH New Johannes Berg 1 participant 1 message Apr 12, 2007 mac80211

lore
Share & tools
lore

Johannes Berg

author maintainer
#0 lore raw

PATCH 1/1 mac80211: kill useless scan printks

This patch removes the "starting scan" and "scan completed" messages that mac80211 prints all the time.

---
We should probably remove more but I find these most annoying. You ought to know when you start a scan, and you get an iwevent when it finishes...

 net/mac80211/ieee80211_sta.c |    3 ---
 1 file changed, 3 deletions(-)
net/mac80211/ieee80211_sta.c +0 -3
@@ -2558,7 +2558,6 @@ void ieee80211_scan_completed(struct iee
 	struct ieee80211_sub_if_data *sdata;
 	union iwreq_data wrqu;
 
-	printk(KERN_DEBUG "%s: scan completed\n", dev->name);
 	local->last_scan_completed = jiffies;
 	wmb();
 	local->sta_scanning = 0;
@@ -2703,8 +2702,6 @@ static int ieee80211_sta_start_scan(stru
 		return -EBUSY;
 	}
 
-	printk(KERN_DEBUG "%s: starting scan\n", dev->name);
-
 	if (local->ops->hw_scan) {
 		int rc = local->ops->hw_scan(local_to_hw(local),
 					    ssid, ssid_len);