From owner-svn-src-head@FreeBSD.ORG Thu Feb 5 17:51:47 2009 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 348B21065675; Thu, 5 Feb 2009 17:51:47 +0000 (UTC) (envelope-from sam@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 23C708FC1B; Thu, 5 Feb 2009 17:51:47 +0000 (UTC) (envelope-from sam@FreeBSD.org) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id n15Hpk8G033329; Thu, 5 Feb 2009 17:51:46 GMT (envelope-from sam@svn.freebsd.org) Received: (from sam@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id n15HpkEP033327; Thu, 5 Feb 2009 17:51:46 GMT (envelope-from sam@svn.freebsd.org) Message-Id: <200902051751.n15HpkEP033327@svn.freebsd.org> From: Sam Leffler Date: Thu, 5 Feb 2009 17:51:46 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r188155 - head/sbin/ifconfig X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Feb 2009 17:51:47 -0000 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; + } /* ... */ 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;