PERFORCE change 120651 for review

Andrew Thompson thompsa at FreeBSD.org
Thu May 31 08:44:19 UTC 2007


http://perforce.freebsd.org/chv.cgi?CH=120651

Change 120651 by thompsa at thompsa_heff on 2007/05/31 08:44:06

	Split the debug message for the two scan types.

Affected files ...

.. //depot/projects/wifi/sys/dev/iwi/if_iwi.c#34 edit

Differences ...

==== //depot/projects/wifi/sys/dev/iwi/if_iwi.c#34 (text+ko) ====

@@ -2706,18 +2706,20 @@
 			scan.channels[++i] = ieee80211_chan2ieee(ic, chan);
 			set_scan_type(&scan, i, type);
 		}
+		DPRINTF(("Scanning on %d channel(s)\n", i));
 	} else {
 		/* Scan the current channel only */
 		i = 1;
 		scan.channels[i] = ieee80211_chan2ieee(ic, chan);
 		set_scan_type(&scan, i, type);
+		DPRINTF(("Scanning on channel %u\n",
+			    ieee80211_chan2ieee(ic, chan)));
 	}
 	if (IEEE80211_IS_CHAN_5GHZ(chan))
 		scan.channels[0] = i | IWI_CHAN_5GHZ;
 	else
 		scan.channels[0] = i | IWI_CHAN_2GHZ;
 
-	DPRINTF(("Scanning on %d channel(s)\n", i));
 	sc->flags |= IWI_FLAG_SCANNING;
 	sc->sc_scan_timer = 3;
 	sc->sc_ifp->if_timer = 1;


More information about the p4-projects mailing list