aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;