/freebsd-11-stable/lib/lib80211/ |
H A D | lib80211_regdomain.h | 66 struct country; 71 const struct country *cc; /* country code for 1-1/default map */ 82 struct country { struct 89 LIST_ENTRY(country) next; 95 LIST_HEAD(, country) countries; /* country code table */ 114 const struct country *lib80211_country_findbycc(const struct regdata *, 116 const struct country *lib80211_country_findbyname(const struct regdata *,
|
H A D | lib80211_regdomain.c | 57 struct country *country; /* current country */ member in struct:mystate 97 if (mt->country == NULL) { 103 mt->country->rd = (void *)strdup(ref); 153 if (iseq(name, "country") && mt->country == NULL) { 154 mt->country = calloc(1, sizeof(struct country)); 155 mt->country [all...] |
/freebsd-11-stable/usr.sbin/bsdinstall/scripts/ |
H A D | wlanconfig | 47 [ "$2" ] && ifconfig_args="$ifconfig_args country $2" 52 # Regdomain/country cannot be applied while interface is running 82 local input regdomains countries regdomain country prompt 101 country = substr($0, RSTART) 103 country) 104 code = substr(country, 1, 2) 105 desc = substr(country, 4) 131 prompt="Select your country." 135 country=$( eval $DIALOG \ 145 f_dialog_data_sanitize country [all...] |
/freebsd-11-stable/tools/tools/net80211/scripts/ |
H A D | setup.dfs | 17 ifconfig $WLAN country $COUNTRY
|
/freebsd-11-stable/sys/dev/ath/ath_hal/ |
H A D | ah_regdomain.c | 75 * This table maps country ISO codes from net80211 into regulatory 155 * Return whether or not the regulatory domain/country in EEPROM 180 "%s: invalid regulatory domain/country code 0x%x\n", __func__, rd); 185 * Find the pointer to the country element in the country table 186 * corresponding to the country code 227 * Calculate a default country based on the EEPROM setting. 237 COUNTRY_CODE_TO_ENUM_RD *country; local 239 country = findCountry(cc); 240 if (country ! 267 COUNTRY_CODE_TO_ENUM_RD *country; local 759 COUNTRY_CODE_TO_ENUM_RD *country; local 790 COUNTRY_CODE_TO_ENUM_RD *country; local [all...] |
/freebsd-11-stable/contrib/wpa/wpa_supplicant/ |
H A D | wnm_sta.h | 33 char country[2]; /* valid if country_present=1 */ member in struct:neighbor_report
|
H A D | mesh.c | 303 wpa_s->hw.num_modes) && wpa_s->conf->country[0]) { 306 conf->country[0] = wpa_s->conf->country[0]; 307 conf->country[1] = wpa_s->conf->country[1]; 308 conf->country[2] = ' ';
|
H A D | config.h | 300 char country[3]; member in struct:wpa_cred::roaming_partner 731 * country - Country code 733 * This is the ISO/IEC alpha2 country code for which we are operating 736 char country[2]; member in struct:wpa_config
|
H A D | rrm.c | 572 const char *country, const u8 *subelems, 594 op = get_oper_class(country, *pos); 638 const char *country = NULL; local 646 country = (const char *) (elem + 2); 648 op = get_oper_class(country, op_class); 676 ext_freqs = wpas_channel_report_freqs(wpa_s, active, country, subelems, 571 wpas_channel_report_freqs(struct wpa_supplicant *wpa_s, int active, const char *country, const u8 *subelems, size_t len) argument
|
H A D | ap.c | 307 wpa_s->hw.num_modes) && wpa_s->conf->country[0]) { 310 conf->country[0] = wpa_s->conf->country[0]; 311 conf->country[1] = wpa_s->conf->country[1]; 312 conf->country[2] = ' ';
|
/freebsd-11-stable/usr.bin/whois/ |
H A D | whois.c | 139 const char *country, *host; local 146 country = host = NULL; 160 country = optarg; 213 if (!argc || (country != NULL && host != NULL)) 217 * If no host or country is specified, rely on referrals from IANA. 219 if (host == NULL && country == NULL) { 227 if (country != NULL) { 229 s_asprintf(&qnichost, "%s%s", country, QNICHOST_TAIL); 524 "usage: whois [-aAbfgiIklmPQrRS] [-c country-code | -h hostname] "
|
/freebsd-11-stable/contrib/wpa/src/common/ |
H A D | ieee802_11_common.c | 944 static int country_match(const char *const cc[], const char *const country) argument 948 if (country == NULL) 951 if (cc[i][0] == country[0] && cc[i][1] == country[1]) 1174 * @country: Country code, if known; otherwise, global operating class is used 1179 int ieee80211_chan_to_freq(const char *country, u8 op_class, u8 chan) argument 1183 if (country_match(us_op_class_cc, country)) { 1189 if (country_match(eu_op_class_cc, country)) { 1195 if (country_match(jp_op_class_cc, country)) { 1201 if (country_match(cn_op_class_cc, country)) { 1831 country_to_global_op_class(const char *country, u8 op_class) argument 1868 get_oper_class(const char *country, u8 op_class) argument [all...] |
H A D | ieee802_11_common.h | 174 int ieee80211_chan_to_freq(const char *country, u8 op_class, u8 chan); 219 u8 country_to_global_op_class(const char *country, u8 op_class); 221 const struct oper_class_map * get_oper_class(const char *country, u8 op_class);
|
/freebsd-11-stable/contrib/wpa/src/p2p/ |
H A D | p2p_go_neg.c | 51 os_memcpy(dev->country, pos, 3); 52 wpa_hexdump_ascii(MSG_DEBUG, "P2P: Peer country", pos, 3); 53 if (pos[2] != 0x04 && os_memcmp(pos, p2p->cfg->country, 2) != 0) { 54 p2p_info(p2p, "Mismatching country (ours=%c%c peer's=%c%c)", 55 p2p->cfg->country[0], p2p->cfg->country[1], 176 p2p_buf_add_listen_channel(buf, p2p->cfg->country, p2p->cfg->reg_class, 182 p2p_buf_add_channel_list(buf, p2p->cfg->country, &p2p->channels); 184 p2p_buf_add_operating_channel(buf, p2p->cfg->country, 320 p2p_buf_add_operating_channel(buf, p2p->cfg->country, [all...] |
H A D | p2p_build.c | 85 void p2p_buf_add_listen_channel(struct wpabuf *buf, const char *country, argument 91 wpabuf_put_data(buf, country, 3); 99 void p2p_buf_add_operating_channel(struct wpabuf *buf, const char *country, argument 105 wpabuf_put_data(buf, country, 3); 151 void p2p_buf_add_channel_list(struct wpabuf *buf, const char *country, argument 160 wpabuf_put_data(buf, country, 3); /* Country String */ 370 void p2p_buf_add_oob_go_neg_channel(struct wpabuf *buf, const char *country, argument 377 wpabuf_put_data(buf, country, 3);
|
H A D | p2p_invitation.c | 72 p2p_buf_add_operating_channel(buf, p2p->cfg->country, 77 p2p_buf_add_channel_list(buf, p2p->cfg->country, &p2p->channels); 154 p2p_buf_add_operating_channel(buf, p2p->cfg->country, 159 p2p_buf_add_channel_list(buf, p2p->cfg->country, channels); 358 p2p_dbg(p2p, "Unknown operational channel (country=%c%c reg_class=%u channel=%u)", 359 p2p->cfg->country[0], p2p->cfg->country[1],
|
H A D | p2p_i.h | 80 char country[3]; member in struct:p2p_device 365 * numbering of the clases depends on the configured country code. 751 void p2p_buf_add_listen_channel(struct wpabuf *buf, const char *country, 753 void p2p_buf_add_operating_channel(struct wpabuf *buf, const char *country, 755 void p2p_buf_add_channel_list(struct wpabuf *buf, const char *country, 769 void p2p_buf_add_oob_go_neg_channel(struct wpabuf *buf, const char *country,
|
H A D | p2p_pd.c | 128 p2p_buf_add_channel_list(buf, p2p->cfg->country, 133 p2p_buf_add_operating_channel(buf, p2p->cfg->country, 157 p2p_buf_add_listen_channel(buf, p2p->cfg->country, 348 buf, p2p->cfg->country, 353 buf, p2p->cfg->country, 360 p2p_buf_add_channel_list(buf, p2p->cfg->country,
|
/freebsd-11-stable/usr.sbin/tzsetup/ |
H A D | tzsetup.c | 273 /* Short cut -- if there's only one country, don't post a menu. */ 281 snprintf(prompt, sizeof(prompt), "Select a country or region"); 307 struct country { struct 325 * This is the easiest organization... we use ISO 3166 country codes, 330 static struct country countries[NCOUNTRIES]; 335 * Read the ISO 3166 country code database in _PATH_ISO3166 342 struct country *cp; 380 errx(1, "%s:%d: country code `%s' multiply defined: %s", 398 struct country *cp; 401 errx(1, "%s:%d: country cod [all...] |
/freebsd-11-stable/sys/net80211/ |
H A D | ieee80211_regdomain.c | 71 ic->ic_regdomain.country == CTRY_DEFAULT) { 109 * country code, and operating modes. This interface is used 247 ic_printf(ic, "%s: unable to allocate memory for country ie\n", 255 ic_printf(ic, "no ISO country string for cc %d; using blanks\n", 256 rd->country); 263 * Indoor/Outdoor portion of country string: 293 ic_printf(ic, "%s: country ie too big, "
|
H A D | ieee80211_scan.h | 237 uint8_t *country; member in struct:ieee80211_scanparams 281 uint8_t se_cc[2]; /* captured country code */
|
H A D | _ieee80211.h | 383 uint16_t country; /* ISO country code */ member in struct:ieee80211_regdomain 386 char isocc[2]; /* country code string */
|
H A D | ieee80211_input.c | 511 * [tlv] country information 546 scan->country = frm; 692 if (scan->country != NULL) { 695 * the country code. Not sure if we should return an 700 IEEE80211_VERIFY_LENGTH(scan->country[1], 3 * sizeof(uint8_t), 701 scan->country = NULL);
|
/freebsd-11-stable/sbin/ifconfig/ |
H A D | ifieee80211.c | 456 if (rd->country != NO_COUNTRY) { 457 const struct country *cc; 459 * Check current country seting to make sure it's 461 * override it with any default country for this 464 cc = lib80211_country_findbycc(rdp, rd->country); 466 errx(1, "unknown ISO country code %d", rd->country); 470 * Check if country is incompatible with regdomain. 471 * To enable multiple regdomains for a country code 473 * the country' [all...] |
/freebsd-11-stable/contrib/wpa/wpa_supplicant/dbus/ |
H A D | dbus_new_handlers.c | 3329 * wpas_dbus_getter_country - Control country code 3342 char country[3]; local 3343 char *str = country; 3345 country[0] = wpa_s->conf->country[0]; 3346 country[1] = wpa_s->conf->country[1]; 3347 country[2] = '\0'; 3355 * wpas_dbus_setter_country - Control country code 3368 const char *country; local [all...] |