add support for max antenna gain (not used at the moment)

This commit is contained in:
Sam Leffler 2009-02-05 17:51:46 +00:00
parent 3f147ab251
commit b8bd4a9751
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=188155
2 changed files with 5 additions and 0 deletions

View File

@ -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) {

View File

@ -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;