| 2477 | } |
| 2478 | |
| 2479 | static void |
| 2480 | defaultcountry(const struct regdomain *rd) |
| 2481 | { |
| 2482 | struct regdata *rdp = getregdata(); |
| 2483 | const struct country *cc; |
| 2484 | |
| 2485 | cc = lib80211_country_findbycc(rdp, rd->cc->code); |
| 2486 | if (cc == NULL) |
| 2487 | errx(1, "internal error, ISO country code %d not " |
| 2488 | "defined for regdomain %s", rd->cc->code, rd->name); |
| 2489 | regdomain.country = cc->code; |
| 2490 | regdomain.isocc[0] = cc->isoname[0]; |
| 2491 | regdomain.isocc[1] = cc->isoname[1]; |
| 2492 | } |
| 2493 | |
| 2494 | static |
| 2495 | DECL_CMD_FUNC(set80211regdomain, val, d) |
no test coverage detected