Date: Thu, 5 Feb 2009 17:51:46 +0000 (UTC) From: Sam Leffler <sam@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r188155 - head/sbin/ifconfig Message-ID: <200902051751.n15HpkEP033327@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200902051751.n15HpkEP033327>