Lines Matching full:regdomain

192 static struct ieee80211_regdomain regdomain;  variable
257 errx(-1, "missing or corrupted regdomain database"); in getregdata()
483 &regdomain, sizeof(regdomain)) < 0) in getregdomain()
508 * compatible with the new regdomain. If not, then in setregdomain_cb()
515 if (cc->rd->sku != rd->regdomain) { in setregdomain_cb()
516 const struct regdomain *rp; in setregdomain_cb()
518 * Check if country is incompatible with regdomain. in setregdomain_cb()
520 * we permit a mismatch between the regdomain and in setregdomain_cb()
521 * the country's associated regdomain when the in setregdomain_cb()
522 * regdomain is setup w/o a default country. For in setregdomain_cb()
523 * example, US is bound to the FCC regdomain but in setregdomain_cb()
528 * regdomain to construct the channel list. in setregdomain_cb()
530 rp = lib80211_regdomain_findbysku(rdp, rd->regdomain); in setregdomain_cb()
533 "regdomain %d", cc->isoname, cc->name, in setregdomain_cb()
534 rd->regdomain); in setregdomain_cb()
537 "regdomain %s", cc->isoname, cc->name, in setregdomain_cb()
545 * push the regdomain info + channel list to the kernel. in setregdomain_cb()
567 errx(1, "no space for regdomain request"); in setregdomain_cb()
2327 const struct regdomain *rd; in regdomain_makechannels()
2331 * the regdomain/SKU as definitive so a country can be in in regdomain_makechannels()
2333 * If no regdomain is specified then we fallback on the country in regdomain_makechannels()
2334 * code to find the associated regdomain since countries always in regdomain_makechannels()
2335 * belong to at least one regdomain. in regdomain_makechannels()
2337 if (reg->regdomain == 0) { in regdomain_makechannels()
2344 rd = lib80211_regdomain_findbysku(rdp, reg->regdomain); in regdomain_makechannels()
2346 errx(1, "internal error, regdomain %d not found", in regdomain_makechannels()
2347 reg->regdomain); in regdomain_makechannels()
2461 const struct regdomain *dp; in list_countries()
2481 defaultcountry(const struct regdomain *rd) in defaultcountry()
2489 "defined for regdomain %s", rd->cc->code, rd->name); in defaultcountry()
2490 regdomain.country = cc->code; in defaultcountry()
2491 regdomain.isocc[0] = cc->isoname[0]; in defaultcountry()
2492 regdomain.isocc[1] = cc->isoname[1]; in defaultcountry()
2499 const struct regdomain *rd; in set80211regdomain()
2509 errx(1, "unknown regdomain %s", val); in set80211regdomain()
2512 regdomain.regdomain = rd->sku; in set80211regdomain()
2513 if (regdomain.country == 0 && rd->cc != NULL) { in set80211regdomain()
2516 * one for this regdomain fill it in. in set80211regdomain()
2520 callback_register(setregdomain_cb, &regdomain); in set80211regdomain()
2540 regdomain.regdomain = cc->rd->sku; in set80211country()
2541 regdomain.country = cc->code; in set80211country()
2542 regdomain.isocc[0] = cc->isoname[0]; in set80211country()
2543 regdomain.isocc[1] = cc->isoname[1]; in set80211country()
2544 callback_register(setregdomain_cb, &regdomain); in set80211country()
2551 regdomain.location = d; in set80211location()
2552 callback_register(setregdomain_cb, &regdomain); in set80211location()
2559 regdomain.ecm = d; in set80211ecm()
2560 callback_register(setregdomain_cb, &regdomain); in set80211ecm()
4837 if ((reg->regdomain != 0 && in print_regdomain()
4838 reg->regdomain != reg->country) || verb) { in print_regdomain()
4839 const struct regdomain *rd = in print_regdomain()
4840 lib80211_regdomain_findbysku(getregdata(), reg->regdomain); in print_regdomain()
4842 LINE_CHECK("regdomain %d", reg->regdomain); in print_regdomain()
4844 LINE_CHECK("regdomain %s", rd->name); in print_regdomain()
4873 print_regdomain(&regdomain, 1); in list_regdomain()
4877 print_regdomain(&regdomain, ctx->args->verbose); in list_regdomain()
4953 else if (iseq(arg, "regdomain")) in set80211list()
6040 const struct regdomain *rd; in setdefregdomain()
6042 /* Check if regdomain/country was already set by a previous call. */ in setdefregdomain()
6044 if (regdomain.regdomain != 0 || in setdefregdomain()
6045 regdomain.country != CTRY_DEFAULT) in setdefregdomain()
6051 if (regdomain.regdomain != 0 || in setdefregdomain()
6052 regdomain.country != CTRY_DEFAULT) in setdefregdomain()
6058 errx(1, "FCC regdomain was not found"); in setdefregdomain()
6060 regdomain.regdomain = rd->sku; in setdefregdomain()
6065 setregdomain_cb(ctx, &regdomain); in setdefregdomain()
6068 regdomain.regdomain = 0; in setdefregdomain()
6069 regdomain.country = CTRY_DEFAULT; in setdefregdomain()
6070 regdomain.isocc[0] = 0; in setdefregdomain()
6071 regdomain.isocc[1] = 0; in setdefregdomain()
6315 DEF_CMD_ARG("regdomain", set80211regdomain),