• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-12-stable/sbin/ifconfig/

Lines Matching refs:regdomain

191 static struct ieee80211_regdomain regdomain;
254 errx(-1, "missing or corrupted regdomain database");
480 &regdomain, sizeof(regdomain)) < 0)
505 * compatible with the new regdomain. If not, then
512 if (cc->rd->sku != rd->regdomain) {
513 const struct regdomain *rp;
515 * Check if country is incompatible with regdomain.
517 * we permit a mismatch between the regdomain and
518 * the country's associated regdomain when the
519 * regdomain is setup w/o a default country. For
520 * example, US is bound to the FCC regdomain but
525 * regdomain to construct the channel list.
527 rp = lib80211_regdomain_findbysku(rdp, rd->regdomain);
530 "regdomain %d", cc->isoname, cc->name,
531 rd->regdomain);
534 "regdomain %s", cc->isoname, cc->name,
542 * push the regdomain info + channel list to the kernel.
564 errx(1, "no space for regdomain request");
2326 const struct regdomain *rd;
2330 * the regdomain/SKU as definitive so a country can be in
2332 * If no regdomain is specified then we fallback on the country
2333 * code to find the associated regdomain since countries always
2334 * belong to at least one regdomain.
2336 if (reg->regdomain == 0) {
2343 rd = lib80211_regdomain_findbysku(rdp, reg->regdomain);
2345 errx(1, "internal error, regdomain %d not found",
2346 reg->regdomain);
2460 const struct regdomain *dp;
2480 defaultcountry(const struct regdomain *rd)
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];
2498 const struct regdomain *rd;
2508 errx(1, "unknown regdomain %s", val);
2511 regdomain.regdomain = rd->sku;
2512 if (regdomain.country == 0 && rd->cc != NULL) {
2515 * one for this regdomain fill it in.
2519 callback_register(setregdomain_cb, &regdomain);
2539 regdomain.regdomain = cc->rd->sku;
2540 regdomain.country = cc->code;
2541 regdomain.isocc[0] = cc->isoname[0];
2542 regdomain.isocc[1] = cc->isoname[1];
2543 callback_register(setregdomain_cb, &regdomain);
2550 regdomain.location = d;
2551 callback_register(setregdomain_cb, &regdomain);
2558 regdomain.ecm = d;
2559 callback_register(setregdomain_cb, &regdomain);
4546 if ((reg->regdomain != 0 &&
4547 reg->regdomain != reg->country) || verb) {
4548 const struct regdomain *rd =
4549 lib80211_regdomain_findbysku(getregdata(), reg->regdomain);
4551 LINE_CHECK("regdomain %d", reg->regdomain);
4553 LINE_CHECK("regdomain %s", rd->name);
4582 print_regdomain(&regdomain, 1);
4586 print_regdomain(&regdomain, verbose);
4661 else if (iseq(arg, "regdomain"))
5707 const struct regdomain *rd;
5709 /* Check if regdomain/country was already set by a previous call. */
5711 if (regdomain.regdomain != 0 ||
5712 regdomain.country != CTRY_DEFAULT)
5718 if (regdomain.regdomain != 0 ||
5719 regdomain.country != CTRY_DEFAULT)
5725 errx(1, "FCC regdomain was not found");
5727 regdomain.regdomain = rd->sku;
5732 setregdomain_cb(s, &regdomain);
5735 regdomain.regdomain = 0;
5736 regdomain.country = CTRY_DEFAULT;
5737 regdomain.isocc[0] = 0;
5738 regdomain.isocc[1] = 0;
5989 DEF_CMD_ARG("regdomain", set80211regdomain),