Lines Matching defs:netband
52 struct netband *netband; /* current netband */
55 netband_head *curband; /* current netband list */
107 if (iseq(name, "netband") && mt->curband == NULL && mt->rd != NULL) {
109 warnx("no mode for netband at line %ld",
133 if (iseq(name, "band") && mt->netband == NULL) {
135 warnx("band without enclosing netband at line %ld",
139 mt->netband = calloc(1, sizeof(struct netband));
140 LIST_INSERT_HEAD(mt->curband, mt->netband, next);
143 if (iseq(name, "freqband") && mt->freqband == NULL && mt->netband != NULL) {
145 if (mt->netband->band != NULL) {
150 mt->netband->band = (void *)strdup(ref);
269 else if (mt->netband != NULL)
270 mt->netband->flags |= decode_flag(mt, p, len);
272 warnx("flags without freqband or netband at line %ld ignored",
287 if (iseq(name, "netband") && mt->rd != NULL) {
293 if (iseq(name, "freqband") && mt->netband != NULL) {
297 if (iseq(name, "maxpower") && mt->netband != NULL) {
298 mt->netband->maxPower = strtoul(p, NULL, 0);
301 if (iseq(name, "maxpowerdfs") && mt->netband != NULL) {
302 mt->netband->maxPowerDFS = strtoul(p, NULL, 0);
305 if (iseq(name, "maxantgain") && mt->netband != NULL) {
306 mt->netband->maxAntGain = strtoul(p, NULL, 0);
338 if (iseq(name, "band") && mt->netband != NULL) {
339 if (mt->netband->band == NULL) {
343 if (mt->netband->maxPower == 0) {
348 if (mt->netband->maxPowerDFS == 0)
349 mt->netband->maxPowerDFS = mt->netband->maxPower;
350 mt->netband = NULL;
353 /* </netband> */
354 if (iseq(name, "netband") && mt->netband != NULL) {
421 struct netband *nb;
563 struct netband *nb;