PERFORCE change 138639 for review

Sam Leffler sam at FreeBSD.org
Wed Mar 26 18:19:47 UTC 2008


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

Change 138639 by sam at sam_ebb on 2008/03/26 18:18:59

	add a null getradiocaps callback

Affected files ...

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

Differences ...

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

@@ -43,6 +43,15 @@
 #include <net80211/ieee80211_var.h>
 #include <net80211/ieee80211_regdomain.h>
 
+static void
+null_getradiocaps(struct ieee80211com *ic, int *n, struct ieee80211_channel *c)
+{
+	/* just feed back the current channel list */
+	*n = ic->ic_nchans;
+	memcpy(c, ic->ic_channels,
+	    ic->ic_nchans*sizeof(struct ieee80211_channel));
+}
+
 static int
 null_setregdomain(struct ieee80211com *ic,
 	struct ieee80211_regdomain *rd,
@@ -62,6 +71,7 @@
 		ic->ic_regdomain.isocc[1] = 'S';		/* XXX */
 		/* XXX? too late to setup default channel list */
 	}
+	ic->ic_getradiocaps = null_getradiocaps;
 	ic->ic_setregdomain = null_setregdomain;
 }
 


More information about the p4-projects mailing list