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

Function print_regdomain

tools/ifconfig/ifieee80211.c:4543–4573  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4541}
4542
4543static void
4544print_regdomain(const struct ieee80211_regdomain *reg, int verb)
4545{
4546 if ((reg->regdomain != 0 &&
4547 reg->regdomain != reg->country) || verb) {
4548 const struct regdomain *rd =
4549 lib80211_regdomain_findbysku(getregdata(), reg->regdomain);
4550 if (rd == NULL)
4551 LINE_CHECK("regdomain %d", reg->regdomain);
4552 else
4553 LINE_CHECK("regdomain %s", rd->name);
4554 }
4555 if (reg->country != 0 || verb) {
4556 const struct country *cc =
4557 lib80211_country_findbycc(getregdata(), reg->country);
4558 if (cc == NULL)
4559 LINE_CHECK("country %d", reg->country);
4560 else
4561 LINE_CHECK("country %s", cc->isoname);
4562 }
4563 if (reg->location == 'I')
4564 LINE_CHECK("indoor");
4565 else if (reg->location == 'O')
4566 LINE_CHECK("outdoor");
4567 else if (verb)
4568 LINE_CHECK("anywhere");
4569 if (reg->ecm)
4570 LINE_CHECK("ecm");
4571 else if (verb)
4572 LINE_CHECK("-ecm");
4573}
4574
4575static void
4576list_regdomain(int s, int channelsalso)

Callers 2

setregdomain_cbFunction · 0.85
list_regdomainFunction · 0.85

Calls 2

getregdataFunction · 0.85
LINE_CHECKFunction · 0.85

Tested by

no test coverage detected