aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Leffler <sam@FreeBSD.org>2009-02-05 17:51:46 +0000
committerSam Leffler <sam@FreeBSD.org>2009-02-05 17:51:46 +0000
commitb8bd4a9751d101a32257bd893d81c008376bb1bb (patch)
tree0110ef34ad38453216827265023898b7d82a25ad
parent3f147ab25163eb6f6f11777db1cf796188ba123f (diff)
downloadsrc-b8bd4a9751d101a32257bd893d81c008376bb1bb.tar.gz
src-b8bd4a9751d101a32257bd893d81c008376bb1bb.zip
add support for max antenna gain (not used at the moment)
Notes
Notes: svn path=/head/; revision=188155
-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 584646934712..e5d17340eb0b 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 5b37a0b17fc2..05ddb620b172 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;