summaryrefslogtreecommitdiffstats
path: root/sbin
diff options
context:
space:
mode:
authorsam <sam@FreeBSD.org>2009-02-05 17:51:46 +0000
committersam <sam@FreeBSD.org>2009-02-05 17:51:46 +0000
commitc2ef74981e48ea6112d18468d2e885627fcc104f (patch)
tree0110ef34ad38453216827265023898b7d82a25ad /sbin
parent62489ed61cdf1586309c9fb863f57466d79da298 (diff)
downloadFreeBSD-src-c2ef74981e48ea6112d18468d2e885627fcc104f.zip
FreeBSD-src-c2ef74981e48ea6112d18468d2e885627fcc104f.tar.gz
add support for max antenna gain (not used at the moment)
Diffstat (limited to 'sbin')
-rw-r--r--sbin/ifconfig/regdomain.c4
-rw-r--r--sbin/ifconfig/regdomain.h1
2 files changed, 5 insertions, 0 deletions
diff --git a/sbin/ifconfig/regdomain.c b/sbin/ifconfig/regdomain.c
index 5846469..e5d1734 100644
--- a/sbin/ifconfig/regdomain.c
+++ b/sbin/ifconfig/regdomain.c
@@ -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) {
diff --git a/sbin/ifconfig/regdomain.h b/sbin/ifconfig/regdomain.h
index 5b37a0b..05ddb62 100644
--- a/sbin/ifconfig/regdomain.h
+++ b/sbin/ifconfig/regdomain.h
@@ -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;
OpenPOWER on IntegriCloud