add support for max antenna gain (not used at the moment)
This commit is contained in:
parent
3f147ab251
commit
b8bd4a9751
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=188155
@ -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) {
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user