| 4541 | } |
| 4542 | |
| 4543 | static void |
| 4544 | print_regdomain(const struct ieee80211_regdomain *reg, int verb) |
| 4545 | { |
| 4546 | if ((reg->regdomain != 0 && |
| 4547 | reg->regdomain != reg->country) || verb) { |
| 4548 | const struct regdomain *rd = |
| 4549 | lib80211_regdomain_findbysku(getregdata(), reg->regdomain); |
| 4550 | if (rd == NULL) |
| 4551 | LINE_CHECK("regdomain %d", reg->regdomain); |
| 4552 | else |
| 4553 | LINE_CHECK("regdomain %s", rd->name); |
| 4554 | } |
| 4555 | if (reg->country != 0 || verb) { |
| 4556 | const struct country *cc = |
| 4557 | lib80211_country_findbycc(getregdata(), reg->country); |
| 4558 | if (cc == NULL) |
| 4559 | LINE_CHECK("country %d", reg->country); |
| 4560 | else |
| 4561 | LINE_CHECK("country %s", cc->isoname); |
| 4562 | } |
| 4563 | if (reg->location == 'I') |
| 4564 | LINE_CHECK("indoor"); |
| 4565 | else if (reg->location == 'O') |
| 4566 | LINE_CHECK("outdoor"); |
| 4567 | else if (verb) |
| 4568 | LINE_CHECK("anywhere"); |
| 4569 | if (reg->ecm) |
| 4570 | LINE_CHECK("ecm"); |
| 4571 | else if (verb) |
| 4572 | LINE_CHECK("-ecm"); |
| 4573 | } |
| 4574 | |
| 4575 | static void |
| 4576 | list_regdomain(int s, int channelsalso) |
no test coverage detected