/hostap-latest/tests/hwsim/ |
D | test_mbo.py | 27 def run_mbo_supp_oper_classes(dev, apdev, hapd, hapd2, country, freq_list=None, argument 38 logger.info("Country: " + country) 39 dev[0].note("Setting country code " + country) 40 set_reg(country, apdev[0], apdev[1], dev[0]) 45 if "alpha2=" + country in ev: 53 hapd.set("country_code", country) 70 hapd2.set("country_code", country) 89 def run_mbo_supp_oper_class(dev, apdev, country, expected, inc5, argument 115 res2, res5 = run_mbo_supp_oper_classes(dev, apdev, hapd, hapd2, country, 147 if country == "FI": [all …]
|
D | hostapd.py | 855 def b_only_params(channel="1", ssid=None, country=None): argument 860 if country: 861 params["country_code"] = country 864 def g_only_params(channel="1", ssid=None, country=None): argument 869 if country: 870 params["country_code"] = country 873 def a_only_params(channel="36", ssid=None, country=None): argument 878 if country: 879 params["country_code"] = country 882 def ht20_params(channel="1", ssid=None, country=None): argument [all …]
|
D | test_dfs.py | 31 channel=None, country="FI", rrm_beacon_report=False, argument 37 hapd.set("country_code", country) 92 hapd = start_dfs_ap(apdev[0], country="US") 527 hapd = start_dfs_ap(apdev[0], country="US", rrm_beacon_report=True) 629 hapd = start_dfs_ap(apdev[0], country="US") 731 hapd = start_dfs_ap(apdev[0], country="US") 887 def dfs_chan_switch_precac(dev, apdev, country): argument 895 hapd = start_dfs_ap(apdev[0], country=country) 928 if not ev and country == 'US': 935 if country == 'US':
|
D | run-tests.py | 597 country = d.get_driver_status_field("country") 598 if country is None: 600 elif country != "00": 602 … logger.info(d.ifname + ": Country code not reset back to 00: is " + country) 603 print(d.ifname + ": Country code not reset back to 00: is " + country) 611 country = d.get_driver_status_field("country") 612 if country == "00": 614 if country == "00":
|
D | utils.py | 263 country = dev[0].get_driver_status_field("country") 264 logger.info("Country code at the end: " + country) 265 if country != "00":
|
D | test_wpas_config.py | 302 country = False 308 country = True 309 if country and "type=WORLD" in ev:
|
D | test_ap_acs.py | 22 def force_prev_ap_on_5g(ap, country="US"): argument 26 "channel": "36", "country_code": country}) 352 force_prev_ap_on_5g(apdev[0], country="ZA") 384 force_prev_ap_on_5g(apdev[0], country="ZA")
|
D | test_ap_ht.py | 1372 def run_op_class(dev, apdev, hw_mode, channel, country, ht_capab, sec_chan, argument 1382 if country: 1383 params['country_code'] = country 1590 def run_ap_ht_wmm(dev, apdev, country): argument 1597 "country_code": country}
|
D | test_wnm.py | 1236 def start_wnm_tm(ap, country, dev, country3=None): argument 1237 hapd = start_wnm_ap(ap, country_code=country, country3=country3) 1251 country = dev[0].get_driver_status_field("country") 1252 logger.info("Country code at the end: " + country) 1253 if country != "00": 1356 def run_wnm_bss_tm_global(dev, apdev, country, country3): argument 1360 hapd, id = start_wnm_tm(apdev[0], country, dev[0], country3=country3)
|
/hostap-latest/tests/remote/ |
D | rutils.py | 151 def get_ap_params(channel="1", bw="HT20", country="US", security="open", ht_capab=None, vht_capab=N… argument 155 params = hostapd.b_only_params(channel, ssid, country) 157 params = hostapd.g_only_params(channel, ssid, country) 159 params = hostapd.g_only_params(channel, ssid, country) 162 params = hostapd.a_only_params(channel, ssid, country) 164 params = hostapd.a_only_params(channel, ssid, country) 167 params = hostapd.ht20_params(channel, ssid, country) 174 params = hostapd.ht40_plus_params(channel, ssid, country) 178 params = hostapd.ht40_minus_params(channel, ssid, country) 182 params = hostapd.ht40_plus_params(channel, ssid, country)
|
D | test_example.py | 47 ap_params = rutils.get_ap_params(channel="1", bw="HT20", country="US",
|
/hostap-latest/src/p2p/ |
D | p2p_go_neg.c | 52 os_memcpy(dev->country, pos, 3); in p2p_peer_channels_check() 54 if (pos[2] != 0x04 && os_memcmp(pos, p2p->cfg->country, 2) != 0) { in p2p_peer_channels_check() 56 p2p->cfg->country[0], p2p->cfg->country[1], in p2p_peer_channels_check() 178 p2p_buf_add_listen_channel(buf, p2p->cfg->country, p2p->cfg->reg_class, in p2p_build_go_neg_req() 194 p2p_buf_add_channel_list(buf, p2p->cfg->country, in p2p_build_go_neg_req() 197 p2p_buf_add_channel_list(buf, p2p->cfg->country, in p2p_build_go_neg_req() 201 p2p_buf_add_operating_channel(buf, p2p->cfg->country, in p2p_build_go_neg_req() 339 p2p_buf_add_operating_channel(buf, p2p->cfg->country, in p2p_build_go_neg_resp() 345 p2p_buf_add_operating_channel(buf, p2p->cfg->country, in p2p_build_go_neg_resp() 363 p2p_buf_add_channel_list(buf, p2p->cfg->country, in p2p_build_go_neg_resp() [all …]
|
D | p2p_build.c | 86 void p2p_buf_add_listen_channel(struct wpabuf *buf, const char *country, in p2p_buf_add_listen_channel() argument 92 wpabuf_put_data(buf, country, 3); in p2p_buf_add_listen_channel() 100 void p2p_buf_add_operating_channel(struct wpabuf *buf, const char *country, in p2p_buf_add_operating_channel() argument 106 wpabuf_put_data(buf, country, 3); in p2p_buf_add_operating_channel() 154 void p2p_buf_add_channel_list(struct wpabuf *buf, const char *country, in p2p_buf_add_channel_list() argument 163 wpabuf_put_data(buf, country, 3); /* Country String */ in p2p_buf_add_channel_list() 376 void p2p_buf_add_oob_go_neg_channel(struct wpabuf *buf, const char *country, in p2p_buf_add_oob_go_neg_channel() argument 383 wpabuf_put_data(buf, country, 3); in p2p_buf_add_oob_go_neg_channel()
|
D | p2p_invitation.c | 73 p2p_buf_add_operating_channel(buf, p2p->cfg->country, in p2p_build_invitation_req() 80 p2p_buf_add_channel_list(buf, p2p->cfg->country, &p2p->channels, in p2p_build_invitation_req() 158 p2p_buf_add_operating_channel(buf, p2p->cfg->country, in p2p_build_invitation_resp() 167 p2p_buf_add_channel_list(buf, p2p->cfg->country, channels, in p2p_build_invitation_resp() 369 p2p->cfg->country[0], p2p->cfg->country[1], in p2p_process_invitation_req()
|
D | p2p_i.h | 81 char country[3]; member 758 void p2p_buf_add_listen_channel(struct wpabuf *buf, const char *country, 760 void p2p_buf_add_operating_channel(struct wpabuf *buf, const char *country, 762 void p2p_buf_add_channel_list(struct wpabuf *buf, const char *country, 776 void p2p_buf_add_oob_go_neg_channel(struct wpabuf *buf, const char *country,
|
D | p2p_pd.c | 133 p2p_buf_add_channel_list(buf, p2p->cfg->country, in p2ps_add_pd_req_attrs() 139 p2p_buf_add_operating_channel(buf, p2p->cfg->country, in p2ps_add_pd_req_attrs() 163 p2p_buf_add_listen_channel(buf, p2p->cfg->country, in p2ps_add_pd_req_attrs() 354 buf, p2p->cfg->country, in p2p_build_prov_disc_resp() 359 buf, p2p->cfg->country, in p2p_build_prov_disc_resp() 371 p2p_buf_add_channel_list(buf, p2p->cfg->country, in p2p_build_prov_disc_resp()
|
/hostap-latest/src/common/ |
D | ieee802_11_common.c | 1703 static int country_match(const char *const cc[], const char *const country) in country_match() argument 1707 if (country == NULL) in country_match() 1710 if (cc[i][0] == country[0] && cc[i][1] == country[1]) in country_match() 2005 int ieee80211_chan_to_freq(const char *country, u8 op_class, u8 chan) in ieee80211_chan_to_freq() argument 2009 if (country_match(us_op_class_cc, country)) { in ieee80211_chan_to_freq() 2015 if (country_match(eu_op_class_cc, country)) { in ieee80211_chan_to_freq() 2021 if (country_match(jp_op_class_cc, country)) { in ieee80211_chan_to_freq() 2027 if (country_match(cn_op_class_cc, country)) { in ieee80211_chan_to_freq() 2831 u8 country_to_global_op_class(const char *country, u8 op_class) in country_to_global_op_class() argument 2837 if (country_match(us_op_class_cc, country)) { in country_to_global_op_class() [all …]
|
D | ieee802_11_common.h | 244 int ieee80211_chan_to_freq(const char *country, u8 op_class, u8 chan); 296 u8 country_to_global_op_class(const char *country, u8 op_class); 298 const struct oper_class_map * get_oper_class(const char *country, u8 op_class);
|
/hostap-latest/wpa_supplicant/ |
D | mesh.c | 480 wpa_s->hw.num_modes) && wpa_s->conf->country[0]) { in wpa_supplicant_mesh_init() 483 conf->country[0] = wpa_s->conf->country[0]; in wpa_supplicant_mesh_init() 484 conf->country[1] = wpa_s->conf->country[1]; in wpa_supplicant_mesh_init() 485 conf->country[2] = ' '; in wpa_supplicant_mesh_init()
|
D | rrm.c | 595 const char *country, const u8 *subelems, in wpas_channel_report_freqs() argument 617 op = get_oper_class(country, *pos); in wpas_channel_report_freqs() 662 const char *country = NULL; in wpas_beacon_request_freqs() local 670 country = (const char *) (elem + 2); in wpas_beacon_request_freqs() 672 op = get_oper_class(country, op_class); in wpas_beacon_request_freqs() 701 ext_freqs = wpas_channel_report_freqs(wpa_s, country, subelems, len); in wpas_beacon_request_freqs()
|
D | config.h | 363 char country[3]; member 815 char country[2]; member
|
D | wnm_sta.h | 33 char country[2]; /* valid if country_present=1 */ member
|
/hostap-latest/wpa_supplicant/dbus/ |
D | dbus_new_handlers.c | 4000 char country[3]; in wpas_dbus_getter_country() local 4001 char *str = country; in wpas_dbus_getter_country() 4003 country[0] = wpa_s->conf->country[0]; in wpas_dbus_getter_country() 4004 country[1] = wpa_s->conf->country[1]; in wpas_dbus_getter_country() 4005 country[2] = '\0'; in wpas_dbus_getter_country() 4026 const char *country; in wpas_dbus_setter_country() local 4029 &country)) in wpas_dbus_setter_country() 4032 if (!country[0] || !country[1]) { in wpas_dbus_setter_country() 4038 if (wpa_s->drv_priv != NULL && wpa_drv_set_country(wpa_s, country)) { in wpas_dbus_setter_country() 4045 wpa_s->conf->country[0] = country[0]; in wpas_dbus_setter_country() [all …]
|
/hostap-latest/src/ap/ |
D | acs.c | 621 iface->conf->country[2] == 0x4f) in acs_survey_mode_interference_factor() 885 iface->conf->country[2] == 0x4f) in acs_find_ideal_chan_mode() 1392 iface->conf->country[2] == 0x4f) in acs_request_scan_add_freqs()
|
D | ctrl_iface_ap.c | 831 if (iconf->country[0] && iconf->country[1]) { in hostapd_ctrl_iface_status() 834 iconf->country[0], iconf->country[1], in hostapd_ctrl_iface_status() 835 iconf->country[2]); in hostapd_ctrl_iface_status()
|