Searched refs:country (Results 1 - 25 of 51) sorted by relevance

123

/freebsd-current/lib/lib80211/
H A Dlib80211_regdomain.h64 struct country;
69 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 Dlib80211_regdomain.c54 struct country *country; /* current country */ member in struct:mystate
94 if (mt->country == NULL) {
100 mt->country->rd = (void *)strdup(ref);
154 if (iseq(name, "country") && mt->country == NULL) {
155 mt->country = calloc(1, sizeof(struct country));
156 mt->country
[all...]
/freebsd-current/usr.sbin/bsdinstall/scripts/
H A Dwlanconfig46 [ "$2" ] && ifconfig_args="$ifconfig_args country $2"
51 # Regdomain/country cannot be applied while interface is running
81 local input regdomains countries regdomain country prompt
100 country = substr($0, RSTART)
102 country)
103 code = substr(country, 1, 2)
104 desc = substr(country, 4)
130 prompt="Select your country."
134 country=$( eval $DIALOG \
144 f_dialog_data_sanitize country
[all...]
/freebsd-current/tools/tools/net80211/scripts/
H A Dsetup.dfs16 ifconfig $WLAN country $COUNTRY
/freebsd-current/sys/dev/ath/ath_hal/
H A Dah_regdomain.c75 * 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
819 COUNTRY_CODE_TO_ENUM_RD *country; local
850 COUNTRY_CODE_TO_ENUM_RD *country; local
[all...]
/freebsd-current/sys/contrib/dev/athk/
H A Dregd.c334 * - We enable initiating radiation if the country IE says its fine:
335 * - If no country IE has been processed and a we determine we have
363 * @reg: regulatory structure - used for country selection
366 * If no country IE has been received always enable passive scan
370 * If a country IE has been received check its rule for this
557 /* EEPROM value is a country code */
561 "a country code\n");
575 "ath: invalid regulatory domain/country code 0x%x\n", rd);
579 /* EEPROM country code to regpair mapping */
605 /* Returns the map of the EEPROM set RD to a country cod
609 struct country_code_to_enum_rd *country = NULL; local
685 struct country_code_to_enum_rd *country = NULL; local
[all...]
/freebsd-current/contrib/wpa/wpa_supplicant/
H A Dwnm_sta.h33 char country[2]; /* valid if country_present=1 */ member in struct:neighbor_report
H A Dconfig.h328 char country[3]; member in struct:wpa_cred::roaming_partner
760 * country - Country code
762 * This is the ISO/IEC alpha2 country code for which we are operating
765 char country[2]; member in struct:wpa_config
H A Dmesh.c479 wpa_s->hw.num_modes) && wpa_s->conf->country[0]) {
482 conf->country[0] = wpa_s->conf->country[0];
483 conf->country[1] = wpa_s->conf->country[1];
484 conf->country[2] = ' ';
H A Drrm.c589 const char *country, const u8 *subelems,
611 op = get_oper_class(country, *pos);
656 const char *country = NULL; local
664 country = (const char *) (elem + 2);
666 op = get_oper_class(country, op_class);
695 ext_freqs = wpas_channel_report_freqs(wpa_s, active, country, subelems,
588 wpas_channel_report_freqs(struct wpa_supplicant *wpa_s, int active, const char *country, const u8 *subelems, size_t len) argument
/freebsd-current/usr.bin/whois/
H A Dwhois.c153 const char *country, *host; local
160 country = host = NULL;
174 country = optarg;
227 if (!argc || (country != NULL && host != NULL))
231 * If no host or country is specified, rely on referrals from IANA.
233 if (host == NULL && country == NULL) {
241 if (country != NULL) {
243 s_asprintf(&qnichost, "%s%s", country, QNICHOST_TAIL);
607 "usage: whois [-aAbfgiIklmPQrRS] [-c country-code | -h hostname] "
/freebsd-current/usr.sbin/tzsetup/
H A Dtzsetup.c225 snprintf(prompt, sizeof(prompt), "Select a country or region");
274 struct country { struct
292 * This is the easiest organization... we use ISO 3166 country codes,
297 static struct country countries[NCOUNTRIES];
302 * Read the ISO 3166 country code database in _PATH_ISO3166
309 struct country *cp;
347 errx(1, "%s:%d: country code `%s' multiply defined: %s",
360 static struct country *
363 struct country *cp;
367 errx(1, "%s:%d: country cod
[all...]
/freebsd-current/contrib/wpa/src/p2p/
H A Dp2p_go_neg.c51 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 Dp2p_build.c85 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 Dp2p_invitation.c72 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 Dp2p_i.h80 char country[3]; member in struct:p2p_device
365 * numbering of the clases depends on the configured country code.
756 void p2p_buf_add_listen_channel(struct wpabuf *buf, const char *country,
758 void p2p_buf_add_operating_channel(struct wpabuf *buf, const char *country,
760 void p2p_buf_add_channel_list(struct wpabuf *buf, const char *country,
774 void p2p_buf_add_oob_go_neg_channel(struct wpabuf *buf, const char *country,
/freebsd-current/contrib/wpa/src/common/
H A Dieee802_11_common.c1186 static int country_match(const char *const cc[], const char *const country) argument
1190 if (country == NULL)
1193 if (cc[i][0] == country[0] && cc[i][1] == country[1])
1476 * @country: Country code, if known; otherwise, global operating class is used
1481 int ieee80211_chan_to_freq(const char *country, u8 op_class, u8 chan) argument
1485 if (country_match(us_op_class_cc, country)) {
1491 if (country_match(eu_op_class_cc, country)) {
1497 if (country_match(jp_op_class_cc, country)) {
1503 if (country_match(cn_op_class_cc, country)) {
2166 country_to_global_op_class(const char *country, u8 op_class) argument
2203 get_oper_class(const char *country, u8 op_class) argument
[all...]
H A Dieee802_11_common.h213 int ieee80211_chan_to_freq(const char *country, u8 op_class, u8 chan);
260 u8 country_to_global_op_class(const char *country, u8 op_class);
262 const struct oper_class_map * get_oper_class(const char *country, u8 op_class);
/freebsd-current/sys/contrib/dev/mediatek/mt76/
H A Deeprom.c225 struct property *country = of_find_property(cur, "country", NULL); local
228 if (!country && !regd) {
233 if (mt76_string_prop_find(country, dev->alpha2) ||
/freebsd-current/contrib/tzcode/
H A Dtzselect.ksh74 Instead of asking for continent and then country and then city,
211 # Awk script to output a country list.
255 country = cc_list[i]
256 if (cc_elsewhere[country])
258 if (cc_name[country])
259 country = cc_name[country]
260 print country
282 country[$1] = $2
284 country["U
[all...]
/freebsd-current/sys/net80211/
H A Dieee80211_regdomain.c71 ic->ic_regdomain.country == CTRY_DEFAULT) {
109 * country code, and operating modes. This interface is used
268 ic_printf(ic, "%s: unable to allocate memory for country ie\n",
276 ic_printf(ic, "no ISO country string for cc %d; using blanks\n",
277 rd->country);
284 * Indoor/Outdoor portion of country string:
314 ic_printf(ic, "%s: country ie too big, "
H A Dieee80211_scan.h241 uint8_t *country; member in struct:ieee80211_scanparams
287 uint8_t se_cc[2]; /* captured country code */
/freebsd-current/sbin/ifconfig/
H A Difieee80211.c500 if (rd->country != NO_COUNTRY) {
501 const struct country *cc;
503 * Check current country seting to make sure it's
505 * override it with any default country for this
508 cc = lib80211_country_findbycc(rdp, rd->country);
510 errx(1, "unknown ISO country code %d", rd->country);
514 * Check if country is incompatible with regdomain.
515 * To enable multiple regdomains for a country code
517 * the country'
[all...]
/freebsd-current/contrib/wpa/wpa_supplicant/dbus/
H A Ddbus_new_handlers.c3719 * wpas_dbus_getter_country - Control country code
3732 char country[3]; local
3733 char *str = country;
3735 country[0] = wpa_s->conf->country[0];
3736 country[1] = wpa_s->conf->country[1];
3737 country[2] = '\0';
3745 * wpas_dbus_setter_country - Control country code
3758 const char *country; local
[all...]
/freebsd-current/sys/contrib/dev/iwlwifi/fw/
H A Dacpi.c381 u32 country; local
391 country = wifi_pkg->package.elements[3 + i].integer.value;
392 cmd->v4.block_list_array[i] = cpu_to_le32(country);
393 IWL_DEBUG_RADIO(fwrt, "TAS block list country %d\n", country);

Completed in 194 milliseconds

123