svn commit: r188155 - head/sbin/ifconfig

Sam Leffler sam at FreeBSD.org
Thu Feb 5 09:51:47 PST 2009


Author: sam
Date: Thu Feb  5 17:51:46 2009
New Revision: 188155
URL: http://svn.freebsd.org/changeset/base/188155

Log:
  add support for max antenna gain (not used at the moment)

Modified:
  head/sbin/ifconfig/regdomain.c
  head/sbin/ifconfig/regdomain.h

Modified: head/sbin/ifconfig/regdomain.c
==============================================================================
--- head/sbin/ifconfig/regdomain.c	Thu Feb  5 17:43:12 2009	(r188154)
+++ head/sbin/ifconfig/regdomain.c	Thu Feb  5 17:51:46 2009	(r188155)
@@ -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: head/sbin/ifconfig/regdomain.h
==============================================================================
--- head/sbin/ifconfig/regdomain.h	Thu Feb  5 17:43:12 2009	(r188154)
+++ head/sbin/ifconfig/regdomain.h	Thu Feb  5 17:51:46 2009	(r188155)
@@ -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-head mailing list