Date: Sat, 7 Feb 2009 01:50:44 +0000 (UTC) From: Sam Leffler <sam@FreeBSD.org> To: src-committers@freebsd.org, svn-src-projects@freebsd.org Subject: svn commit: r188261 - projects/vap7/sbin/ifconfig Message-ID: <200902070150.n171oiHV077340@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200902070150.n171oiHV077340>