PERFORCE change 133358 for review

Sam Leffler sam at FreeBSD.org
Tue Jan 15 14:49:27 PST 2008


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

Change 133358 by sam at sam_ebb on 2008/01/15 22:48:50

	handle null rd

Affected files ...

.. //depot/projects/vap/sys/net80211/ieee80211_regdomain.c#5 edit

Differences ...

==== //depot/projects/vap/sys/net80211/ieee80211_regdomain.c#5 (text+ko) ====

@@ -116,7 +116,10 @@
 	ic->ic_nchans = 0;
 	if (isset(bands, IEEE80211_MODE_11B) ||
 	    isset(bands, IEEE80211_MODE_11G)) {
-		for (i = 1; i <= (rd->ecm ? 14 : 11); i++) {
+		int maxchan = 11;
+		if (rd != NULL && rd->ecm)
+			maxchan = 14;
+		for (i = 1; i <= maxchan; i++) {
 			if (isset(bands, IEEE80211_MODE_11B))
 				addchan(ic, i, IEEE80211_CHAN_B);
 			if (isset(bands, IEEE80211_MODE_11G))


More information about the p4-projects mailing list