svn commit: r188261 - projects/vap7/sbin/ifconfig

Sam Leffler sam at FreeBSD.org
Fri Feb 6 17:50:44 PST 2009


Author: sam
Date: Sat Feb  7 01:50:43 2009
New Revision: 188261
URL: http://svn.freebsd.org/changeset/base/188261

Log:
  merge r188155: add support for max antenna gain

Modified:
  projects/vap7/sbin/ifconfig/   (props changed)
  projects/vap7/sbin/ifconfig/regdomain.c
  projects/vap7/sbin/ifconfig/regdomain.h

Modified: projects/vap7/sbin/ifconfig/regdomain.c
==============================================================================
--- projects/vap7/sbin/ifconfig/regdomain.c	Sat Feb  7 01:43:04 2009	(r188260)
+++ projects/vap7/sbin/ifconfig/regdomain.c	Sat Feb  7 01:50:43 2009	(r188261)
@@ -289,6 +289,10 @@ end_element(void *data, const char *name
 		mt->netband->maxPowerDFS = strtoul(p, NULL, 0);
 		goto done;
 	}
+	if (iseq(name, "maxantgain") && mt->netband != NULL) {
+		mt->netband->maxAntGain = strtoul(p, NULL, 0);
+		goto done;
+	}
 
 	/* <country>...</country> */
 	if (iseq(name, "isocc") && mt->country != NULL) {

Modified: projects/vap7/sbin/ifconfig/regdomain.h
==============================================================================
--- projects/vap7/sbin/ifconfig/regdomain.h	Sat Feb  7 01:43:04 2009	(r188260)
+++ projects/vap7/sbin/ifconfig/regdomain.h	Sat Feb  7 01:50:43 2009	(r188261)
@@ -49,6 +49,7 @@ struct netband {
 	const struct freqband *band;	/* channel list description */
 	uint8_t		maxPower;	/* regulatory cap on tx power (dBm) */
 	uint8_t		maxPowerDFS;	/* regulatory cap w/ DFS (dBm) */
+	uint8_t		maxAntGain;	/* max allowed antenna gain (.5 dBm) */
 	uint32_t	flags;		/* net80211 channel flags */
 
 	LIST_ENTRY(netband) next;


More information about the svn-src-projects mailing list