Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Jan 2008 22:49:25 GMT
From:      Sam Leffler <sam@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 133358 for review
Message-ID:  <200801152249.m0FMnP0S079319@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=133358

Change 133358 by sam@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))



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200801152249.m0FMnP0S079319>