MCPcopy Create free account
hub / github.com/F-Stack/f-stack / defaultcountry

Function defaultcountry

tools/ifconfig/ifieee80211.c:2479–2492  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2477}
2478
2479static void
2480defaultcountry(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
2494static
2495DECL_CMD_FUNC(set80211regdomain, val, d)

Callers 2

ifieee80211.cFile · 0.85
setdefregdomainFunction · 0.85

Calls 1

getregdataFunction · 0.85

Tested by

no test coverage detected