Commit 38e3a646 authored by Larry Finger's avatar Larry Finger Committed by Jeff Garzik

[PATCH] softmac: reduce scan debug output

When scanning in debug mode, softmac is very chatty in that it puts
3 lines in the logs for each time it scans. This patch has only one
line containing all the information previously reported.
Signed-off-by: default avatarLarry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 718cc4ca
...@@ -134,7 +134,8 @@ void ieee80211softmac_scan(void *d) ...@@ -134,7 +134,8 @@ void ieee80211softmac_scan(void *d)
si->started = 0; si->started = 0;
spin_unlock_irqrestore(&sm->lock, flags); spin_unlock_irqrestore(&sm->lock, flags);
dprintk(PFX "Scanning finished\n"); dprintk(PFX "Scanning finished: scanned %d channels starting with channel %d\n",
sm->scaninfo->number_channels, sm->scaninfo->channels[0].channel);
ieee80211softmac_scan_finished(sm); ieee80211softmac_scan_finished(sm);
complete_all(&sm->scaninfo->finished); complete_all(&sm->scaninfo->finished);
} }
...@@ -182,8 +183,6 @@ int ieee80211softmac_start_scan_implementation(struct net_device *dev) ...@@ -182,8 +183,6 @@ int ieee80211softmac_start_scan_implementation(struct net_device *dev)
sm->scaninfo->channels = sm->ieee->geo.bg; sm->scaninfo->channels = sm->ieee->geo.bg;
sm->scaninfo->number_channels = sm->ieee->geo.bg_channels; sm->scaninfo->number_channels = sm->ieee->geo.bg_channels;
} }
dprintk(PFX "Start scanning with channel: %d\n", sm->scaninfo->channels[0].channel);
dprintk(PFX "Scanning %d channels\n", sm->scaninfo->number_channels);
sm->scaninfo->current_channel_idx = 0; sm->scaninfo->current_channel_idx = 0;
sm->scaninfo->started = 1; sm->scaninfo->started = 1;
sm->scaninfo->stop = 0; sm->scaninfo->stop = 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment