Lines Matching full:country
54 struct country *country; /* current country */
64 enum { DOMAIN, COUNTRY, FREQBAND } type;
94 if (mt->country == NULL) {
100 mt->country->rd = (void *)strdup(ref);
154 if (iseq(name, "country") && mt->country == NULL) {
155 mt->country = calloc(1, sizeof(struct country));
156 mt->country->isoname = strdup(id);
157 mt->country->code = NO_COUNTRY;
159 LIST_INSERT_HEAD(&mt->rdp->countries, mt->country, next);
310 /* <country>...</country> */
311 if (iseq(name, "isocc") && mt->country != NULL) {
312 mt->country->code = strtoul(p, NULL, 0);
315 if (iseq(name, "name") && mt->country != NULL) {
316 mt->country->name = strdup(p);
358 /* </country> */
359 if (iseq(name, "country") && mt->country != NULL) {
360 /* XXX NO_COUNTRY should be in the net80211 country enum */
361 if ((int) mt->country->code == NO_COUNTRY) {
362 warnx("no ISO cc for country at line %ld",
365 if (mt->country->name == NULL) {
366 warnx("no name for country at line %ld",
369 if (mt->country->rd == NULL) {
370 warnx("no regdomain reference for country at line %ld",
373 mt->country = NULL;
419 struct country *cp;
466 rdp->ident[i].type = COUNTRY;
474 dp->cc = findid(rdp, id, COUNTRY);
476 warnx("undefined country \"%s\"",
550 warnx("undefined country \"%s\"",
599 struct country *cp = LIST_FIRST(&rdp->countries);
704 * Lookup a country by ISO country code.
706 const struct country *
709 const struct country *cp;
719 * Lookup a country by ISO/long name.
721 const struct country *
724 const struct country *cp;