Lines Matching +defs:a +defs:code
9 * 1. Redistributions of source code must retain the above copyright
34 * This code is derived from software contributed to The NetBSD Foundation
41 * 1. Redistributions of source code must retain the above copyright
162 [IEEE80211_MODE_11A] = "11a",
264 * check if there is a channel with attributes to in
293 * Handle channel promotion. When a channel is specified with
294 * only a frequency we want to promote it to the ``best'' channel
296 * 11a, and 11n[ga] channels so specifying a frequency w/o any
299 * command line with a media request that constrains the available
300 * channe list (e.g. mode 11a); we want to honor that to avoid
311 * constrained (e.g. to 11a). We must do this carefully
312 * as there may be a pending ifmedia request in which case
319 * we have a ``current setting''; otherwise we must pass
510 * SKU. If we cannot arrange a match, then abort.
514 errx(1, "unknown ISO country code %d", rd->country);
519 * To enable multiple regdomains for a country code
520 * we permit a mismatch between the regdomain and
522 * regdomain is setup w/o a default country. For
543 * full set of netbands for which we request a new
657 * Parse a channel specification for attributes/flags.
660 * freq:mode channel mode (a,b,g,h,n,t,s,d)
686 case 'a': /* 802.11a */
978 * This function is purely a NetBSD compatibility interface. The NetBSD
1487 * to apply a parameter to. This is basically the same syntax
1490 * 14:abg apply to 11a, 11b, and 11g
1492 * We don't make a big effort to catch silly things; this is
1493 * really a convenience mechanism.
1511 case 'a': /* 802.11a */
2058 regdomain_sort(const void *a, const void *b)
2062 const struct ieee80211_channel *ca = a;
2122 * If this is a 1/2 or 1/4 width channel allow it if a full
2124 * supports fractional channels on this band. This is a hack
2186 * VHT first - HT is a subset.
2192 printf("%u: skip, not a "
2199 printf("%u: skip, not a "
2206 printf("%u: skip, not a "
2213 printf("%u: skip, not a "
2220 printf("%u: skip, not a "
2331 * the regdomain/SKU as definitive so a country can be in
2334 * code to find the associated regdomain since countries always
2385 /* VHT40 is a function of HT40.. */
2486 cc = lib80211_country_findbycc(rdp, rd->cc->code);
2488 errx(1, "internal error, ISO country code %d not "
2489 "defined for regdomain %s", rd->cc->code, rd->name);
2490 regdomain.country = cc->code;
2515 * No country code setup and there's a default
2532 long code = strtol(val, &eptr, 0);
2535 cc = lib80211_country_findbycc(rdp, code);
2537 errx(1, "unknown ISO country code %s", val);
2541 regdomain.country = cc->code;
2734 * NB: The decoding routines assume a properly formatted ie
3830 * NB: only root can trigger a scan so ignore errors. Also ignore
3832 * started there might still be a valid scan cache.
4018 strlcat(buf, " 11a", bsize);
4147 * entries for 11g/11b and 11a/turbo.
4163 struct ieee80211_channel *a =
4165 if (chanpref(c) > chanpref(a))
4166 *a = *c;
4663 #define iseq(a,b) (strncasecmp(a,b,sizeof(b)-1) == 0)
5687 #define tohex(x) (isdigit(x) ? (x) - '0' : tolower(x) - 'a' + 10)
5743 /* Check if regdomain/country was already set by a previous call. */
5788 errx(1, "must specify a parent device (wlandev) when creating "
5789 "a wlan device");
5831 #define iseq(a,b) (strncasecmp(a,b,sizeof(b)-1) == 0)