country
mt->country->rd = (void *)strdup(ref);
if (iseq(name, "country") && mt->country == NULL) {
mt->country = calloc(1, sizeof(struct country));
mt->country->isoname = strdup(id);
mt->country->code = NO_COUNTRY;
LIST_INSERT_HEAD(&mt->rdp->countries, mt->country, next);
if (iseq(name, "isocc") && mt->country != NULL) {
mt->country->code = strtoul(p, NULL, 0);
if (iseq(name, "name") && mt->country != NULL) {
mt->country->name = strdup(p);
if (iseq(name, "country") && mt->country != NULL) {
if ((int) mt->country->code == NO_COUNTRY) {
if (mt->country->name == NULL) {
if (mt->country->rd == NULL) {
mt->country = NULL;
struct country *cp;
struct country *country; /* current country */
struct country *cp = LIST_FIRST(&rdp->countries);
const struct country *
const struct country *cp;
const struct country *
const struct country *cp;
if (mt->country == NULL) {
const struct country *lib80211_country_findbycc(const struct regdata *,
const struct country *lib80211_country_findbyname(const struct regdata *,
struct country;
const struct country *cc; /* country code for 1-1/default map */
LIST_ENTRY(country) next;
LIST_HEAD(, country) countries; /* country code table */
const struct country *cc;
cc = lib80211_country_findbycc(rdp, reg->country);
reg->country);
const struct country *cp;
const struct country *cc;
regdomain.country = cc->code;
if (regdomain.country == 0 && rd->cc != NULL) {
const struct country *cc;
regdomain.country = cc->code;
reg->regdomain != reg->country) || verb) {
if (reg->country != 0 || verb) {
const struct country *cc =
lib80211_country_findbycc(getregdata(), reg->country);
LINE_CHECK("country %d", reg->country);
if (rd->country != NO_COUNTRY) {
const struct country *cc;
cc = lib80211_country_findbycc(rdp, rd->country);
errx(1, "unknown ISO country code %d", rd->country);
regdomain.country != CTRY_DEFAULT)
regdomain.country != CTRY_DEFAULT)
regdomain.country = CTRY_DEFAULT;
COUNTRY_CODE_TO_ENUM_RD *country;
country = findCountry(cc);
if (country != AH_NULL)
COUNTRY_CODE_TO_ENUM_RD *country;
country = findCountry(cc);
if (country == AH_NULL) {
regDmn = country->regDmnEnum;
if (country->countryCode == CTRY_DEFAULT) {
country = findCountry(cc);
if (country == AH_NULL) {
regDmn = country->regDmnEnum;
__func__, regDmn, country->countryCode);
__func__, regpair->regDmn5GHz, country->countryCode);
__func__, regpair->regDmn2GHz, country->countryCode);
__func__, regDmn, country->countryCode);
*pcountry = country;
COUNTRY_CODE_TO_ENUM_RD *country;
cc, regDmn, enableExtendedChannels, &country, &rd2GHz, &rd5GHz);
ah->ah_countryCode = country->countryCode;
COUNTRY_CODE_TO_ENUM_RD *country;
&country, &rd2GHz, &rd5GHz);
&country, &rd2GHz, &rd5GHz);
ah->ah_countryCode = country->countryCode;
__func__, reg->regdomain, reg->country, reg->location,
reg->country, reg->regdomain);
ic->ic_regdomain.country = (uint16_t) sc->sc_eecc;
ic->ic_regdomain.regdomain, ic->ic_regdomain.country,
if (rd->country == CTRY_SPAIN)
if (rd->country == CTRY_FRANCE || rd->country == CTRY_FRANCE2)
ic->ic_regdomain.country = CTRY_DEFAULT;
ic->ic_regdomain.country = CTRY_SWEDEN;
uint16_t country; /* ISO country code */
scan->country = frm;
if (scan->country != NULL) {
IEEE80211_VERIFY_LENGTH(scan->country[1], 3 * sizeof(uint8_t),
scan->country = NULL);
rd->country);
ic->ic_regdomain.country == CTRY_DEFAULT) {
if (sp->country != NULL)
dump_country(sp->country);
uint8_t *country;
(ic->ic_regdomain.country == CTRY_DEFAULT ||
if (sp->country != NULL) {
(const struct ieee80211_country_ie *) sp->country;
(ic->ic_regdomain.country == CTRY_DEFAULT ||
const char *country, *host;
country = host = NULL;
country = optarg;
if (!argc || (country != NULL && host != NULL))
if (host == NULL && country == NULL) {
if (country != NULL) {
s_asprintf(&qnichost, "%s%s", country, QNICHOST_TAIL);
static struct country countries[NCOUNTRIES];
struct country *cp;
static struct country *
struct country *cp;
add_cont_to_country(struct country *cp, struct continent *cont)
add_zone_to_country(int lineno, struct country *cp, const char *descr,
const struct country *a = xa, *b = xb;
struct country *cp;
struct country *cp;
struct country *cp;
struct country *cp = dmi->data;