Home
last modified time | relevance | path

Searched refs:ssid (Results 1 – 25 of 261) sorted by relevance

1234567891011

/freebsd/contrib/wpa/wpa_supplicant/
H A Dwps_supplicant.c130 struct wpa_ssid *ssid = NULL; in wpas_wps_eapol_cb() local
151 bss = wpa_supplicant_pick_network(wpa_s, &ssid); in wpas_wps_eapol_cb()
194 struct wpa_ssid *ssid, in wpas_wps_security_workaround() argument
215 if (ssid->ssid == NULL) in wpas_wps_security_workaround()
217 bss = wpa_bss_get(wpa_s, cred->mac_addr, ssid->ssid, ssid->ssid_len); in wpas_wps_security_workaround()
220 ssid->ssid, ssid->ssid_len); in wpas_wps_security_workaround()
241 if (ie == NULL && (ssid->proto & WPA_PROTO_WPA) && in wpas_wps_security_workaround()
242 (ssid->pairwise_cipher & WPA_CIPHER_TKIP)) { in wpas_wps_security_workaround()
254 iftype = ssid->p2p_group ? WPA_IF_P2P_CLIENT : WPA_IF_STATION; in wpas_wps_security_workaround()
256 if (ccmp && !(ssid->pairwise_cipher & WPA_CIPHER_CCMP) && in wpas_wps_security_workaround()
[all …]
H A Dconfig.c42 int (*parser)(const struct parse_data *data, struct wpa_ssid *ssid,
48 char * (*writer)(const struct parse_data *data, struct wpa_ssid *ssid);
65 struct wpa_ssid *ssid, in wpa_config_parse_str() argument
112 dst = (char **) (((u8 *) ssid) + (long) data->param1); in wpa_config_parse_str()
113 dst_len = (size_t *) (((u8 *) ssid) + (long) data->param2); in wpa_config_parse_str()
181 struct wpa_ssid *ssid) in wpa_config_write_str() argument
186 src = (char **) (((u8 *) ssid) + (long) data->param1); in wpa_config_write_str()
191 len = *((size_t *) (((u8 *) ssid) + (long) data->param2)); in wpa_config_write_str()
201 struct wpa_ssid *ssid, in wpa_config_parse_int_impl() argument
208 dst = (int *) (((u8 *) ssid) + (long) data->param1); in wpa_config_parse_int_impl()
[all …]
H A Dap.c71 struct wpa_ssid *ssid, in wpas_conf_ap_vht() argument
85 if (ssid->max_oper_chwidth) in wpas_conf_ap_vht()
86 hostapd_set_oper_chwidth(conf, ssid->max_oper_chwidth); in wpas_conf_ap_vht()
88 ieee80211_freq_to_channel_ext(ssid->frequency, 0, in wpas_conf_ap_vht()
94 ieee80211_freq_to_chan(ssid->vht_center_freq2, in wpas_conf_ap_vht()
99 if (!ssid->p2p_group) { in wpas_conf_ap_vht()
100 if (!ssid->vht_center_freq1) in wpas_conf_ap_vht()
102 ieee80211_freq_to_chan(ssid->vht_center_freq1, in wpas_conf_ap_vht()
137 ieee80211_freq_to_channel_ext(ssid->frequency, 0, in wpas_conf_ap_vht()
149 ieee80211_freq_to_channel_ext(ssid->frequency, 0, in wpas_conf_ap_vht()
[all …]
H A Dscan.c32 struct wpa_ssid *ssid; in wpa_supplicant_gen_assoc_event() local
35 ssid = wpa_supplicant_get_ssid(wpa_s); in wpa_supplicant_gen_assoc_event()
36 if (ssid == NULL) in wpa_supplicant_gen_assoc_event()
40 wpa_s->current_ssid = ssid; in wpa_supplicant_gen_assoc_event()
55 struct wpa_ssid *ssid; in wpas_wps_in_use() local
58 for (ssid = wpa_s->conf->ssid; ssid; ssid = ssid->next) { in wpas_wps_in_use()
59 if (!(ssid->key_mgmt & WPA_KEY_MGMT_WPS)) in wpas_wps_in_use()
63 *req_type = wpas_wps_get_req_type(ssid); in wpas_wps_in_use()
64 if (ssid->eap.phase1 && os_strstr(ssid->eap.phase1, "pbc=1")) in wpas_wps_in_use()
122 struct wpa_ssid *ssid = wpa_s->conf->ssid; in wpa_supplicant_enabled_networks() local
[all …]
H A Dwpa_supplicant.conf1769 ssid="simple"
1777 ssid="second ssid"
1785 ssid="example"
1796 ssid="example"
1808 ssid="example"
1825 ssid="example"
1839 ssid="example"
1852 ssid="example"
1865 ssid="example"
1883 ssid="example"
[all …]
H A Dmesh.c83 struct wpa_ssid *ssid) in mesh_config_create() argument
92 os_memcpy(conf->meshid, ssid->ssid, ssid->ssid_len); in mesh_config_create()
93 conf->meshid_len = ssid->ssid_len; in mesh_config_create()
95 if (ssid->key_mgmt & WPA_KEY_MGMT_SAE) in mesh_config_create()
100 conf->ieee80211w = ssid->ieee80211w; in mesh_config_create()
108 conf->ocv = ssid->ocv; in mesh_config_create()
111 cipher = wpa_pick_pairwise_cipher(ssid->pairwise_cipher, 0); in mesh_config_create()
119 cipher = wpa_pick_group_cipher(ssid->group_cipher); in mesh_config_create()
129 if (ssid->group_mgmt_cipher == WPA_CIPHER_BIP_GMAC_128 || in mesh_config_create()
130 ssid->group_mgmt_cipher == WPA_CIPHER_BIP_GMAC_256 || in mesh_config_create()
[all …]
H A Dwpa_supplicant.c139 int wpa_set_wep_keys(struct wpa_supplicant *wpa_s, struct wpa_ssid *ssid) in wpa_set_wep_keys() argument
144 if (ssid->wep_key_len[i] == 0) in wpa_set_wep_keys()
149 i, i == ssid->wep_tx_keyidx, NULL, 0, in wpa_set_wep_keys()
150 ssid->wep_key[i], ssid->wep_key_len[i], in wpa_set_wep_keys()
151 i == ssid->wep_tx_keyidx ? in wpa_set_wep_keys()
162 struct wpa_ssid *ssid) in wpa_supplicant_set_wpa_none_key() argument
173 if (ssid->mode != WPAS_MODE_IBSS) { in wpa_supplicant_set_wpa_none_key()
175 "IBSS/ad-hoc) for WPA-None", ssid->mode); in wpa_supplicant_set_wpa_none_key()
179 if (!ssid->psk_set) { in wpa_supplicant_set_wpa_none_key()
187 os_memcpy(key, ssid->psk, 16); in wpa_supplicant_set_wpa_none_key()
[all …]
H A Dconfig_winreg.c300 struct wpa_ssid *ssid; in wpa_config_read_network() local
311 ssid = os_zalloc(sizeof(*ssid)); in wpa_config_read_network()
312 if (ssid == NULL) { in wpa_config_read_network()
316 dl_list_init(&ssid->psk_list); in wpa_config_read_network()
317 ssid->id = id; in wpa_config_read_network()
319 wpa_config_set_network_defaults(ssid); in wpa_config_read_network()
349 if (wpa_config_set(ssid, (char *) name, (char *) data, 0) < 0) in wpa_config_read_network()
355 if (ssid->passphrase) { in wpa_config_read_network()
356 if (ssid->psk_set) { in wpa_config_read_network()
361 wpa_config_update_psk(ssid); in wpa_config_read_network()
[all …]
H A Dnotify.c119 wpa_s->current_ssid && wpa_s->current_ssid->ssid ? in wpas_notify_state_changed()
120 wpa_ssid_txt(wpa_s->current_ssid->ssid, in wpas_notify_state_changed()
235 struct wpa_ssid *ssid) in wpas_notify_network_enabled_changed() argument
240 wpas_dbus_signal_network_enabled_changed(wpa_s, ssid); in wpas_notify_network_enabled_changed()
245 struct wpa_ssid *ssid) in wpas_notify_network_selected() argument
250 wpas_dbus_signal_network_selected(wpa_s, ssid->id); in wpas_notify_network_selected()
255 struct wpa_ssid *ssid, in wpas_notify_network_request() argument
262 wpas_dbus_signal_network_request(wpa_s, ssid, rtype, default_txt); in wpas_notify_network_request()
353 struct wpa_ssid *ssid) in wpas_notify_network_added() argument
364 if (!ssid->p2p_group && wpa_s->global->p2p_group_formation != wpa_s) { in wpas_notify_network_added()
[all …]
H A Dwpas_glue.c401 struct wpa_ssid *ssid = wpa_s->current_ssid; in wpa_get_beacon_ie() local
407 if (ssid == NULL || in wpa_get_beacon_ie()
408 ((bss->ssid_len == ssid->ssid_len && in wpa_get_beacon_ie()
409 os_memcmp(bss->ssid, ssid->ssid, ssid->ssid_len) == 0) || in wpa_get_beacon_ie()
410 ssid->ssid_len == 0)) { in wpa_get_beacon_ie()
415 if (ssid && (ssid->key_mgmt & WPA_KEY_MGMT_OWE) && in wpa_get_beacon_ie()
584 struct wpa_ssid *ssid; in wpas_get_network_ctx() local
586 for (ssid = wpa_s->conf->ssid; ssid; ssid = ssid->next) { in wpas_get_network_ctx()
587 if (network_ctx == ssid) in wpas_get_network_ctx()
588 return ssid; in wpas_get_network_ctx()
[all …]
H A Dconfig_file.c29 static int wpa_config_validate_network(struct wpa_ssid *ssid, int line) in wpa_config_validate_network() argument
33 if (ssid->passphrase) { in wpa_config_validate_network()
34 if (ssid->psk_set) { in wpa_config_validate_network()
39 wpa_config_update_psk(ssid); in wpa_config_validate_network()
42 if (ssid->disabled == 2) in wpa_config_validate_network()
43 ssid->p2p_persistent_group = 1; in wpa_config_validate_network()
45 if ((ssid->group_cipher & WPA_CIPHER_CCMP) && in wpa_config_validate_network()
46 !(ssid->pairwise_cipher & (WPA_CIPHER_CCMP | WPA_CIPHER_CCMP_256 | in wpa_config_validate_network()
53 ssid->group_cipher &= ~WPA_CIPHER_CCMP; in wpa_config_validate_network()
56 if (is_6ghz_freq(ssid->frequency) && ssid->mode == WPAS_MODE_MESH && in wpa_config_validate_network()
[all …]
H A Dinterworking.c877 static int set_root_nai(struct wpa_ssid *ssid, const char *imsi, char prefix) in set_root_nai() argument
882 return wpa_config_set_quoted(ssid, "identity", nai); in set_root_nai()
891 struct wpa_ssid *ssid, *sel_ssid; in already_connected() local
897 ssid = wpa_s->current_ssid; in already_connected()
898 if (ssid->parent_cred != cred) in already_connected()
901 if (ssid->ssid_len != bss->ssid_len || in already_connected()
902 os_memcmp(ssid->ssid, bss->ssid, bss->ssid_len) != 0) in already_connected()
907 if (selected && sel_ssid && sel_ssid->priority > ssid->priority) in already_connected()
918 struct wpa_ssid *ssid; in remove_duplicate_network() local
920 for (ssid = wpa_s->conf->ssid; ssid; ssid = ssid->next) { in remove_duplicate_network()
[all …]
H A Dpasn_supplicant.c116 wpas_pasn_sae_derive_pt(struct wpa_ssid *ssid, int group) in wpas_pasn_sae_derive_pt() argument
118 const char *password = ssid->sae_password; in wpas_pasn_sae_derive_pt()
122 password = ssid->passphrase; in wpas_pasn_sae_derive_pt()
129 return sae_derive_pt(groups, ssid->ssid, ssid->ssid_len, in wpas_pasn_sae_derive_pt()
131 ssid->sae_password_id); in wpas_pasn_sae_derive_pt()
135 static int wpas_pasn_sae_setup_pt(struct wpa_ssid *ssid, int group) in wpas_pasn_sae_setup_pt() argument
137 if (!ssid->sae_password && !ssid->passphrase) { in wpas_pasn_sae_setup_pt()
142 if (ssid->pt) in wpas_pasn_sae_setup_pt()
145 ssid->pt = wpas_pasn_sae_derive_pt(ssid, group); in wpas_pasn_sae_setup_pt()
147 return ssid->pt ? 0 : -1; in wpas_pasn_sae_setup_pt()
[all …]
H A Devents.c68 int wpas_temp_disabled(struct wpa_supplicant *wpa_s, struct wpa_ssid *ssid) in wpas_temp_disabled() argument
72 if (ssid == NULL || ssid->disabled_until.sec == 0) in wpas_temp_disabled()
76 if (ssid->disabled_until.sec > now.sec) in wpas_temp_disabled()
77 return ssid->disabled_until.sec - now.sec; in wpas_temp_disabled()
79 wpas_clear_temp_disabled(wpa_s, ssid, 0); in wpas_temp_disabled()
98 struct wpa_ssid *ssid; in wpas_reenabled_network_time() local
107 for (ssid = wpa_s->conf->ssid; ssid; ssid = ssid->next) { in wpas_reenabled_network_time()
108 if (ssid->disabled) in wpas_reenabled_network_time()
111 disabled_for = wpas_temp_disabled(wpa_s, ssid); in wpas_reenabled_network_time()
141 struct wpa_supplicant *wpa_s, const u8 *bssid, const u8 *ssid, in __wpa_supplicant_get_new_bss() argument
[all …]
H A Dp2p_supplicant.c126 const u8 *ssid, size_t ssid_len);
132 const u8 *ssid, size_t ssid_len);
137 const u8 *ssid, size_t ssid_len);
453 params->ssids[0].ssid = n; in wpas_p2p_scan()
562 const u8 *ssid, in wpas_get_p2p_group() argument
568 for (s = wpa_s->conf->ssid; s; s = s->next) { in wpas_get_p2p_group()
571 os_memcmp(ssid, s->ssid, ssid_len) != 0) in wpas_get_p2p_group()
624 for (s = wpa_s->conf->ssid; s; s = s->next) { in p2p_group_go_member_count()
707 for (s = wpa_s->conf->ssid; s; s = s->next) { in wpas_p2p_get_persistent_go()
917 struct wpa_ssid *ssid; in wpas_p2p_group_delete() local
[all …]
H A Dsme.c91 struct wpa_ssid *ssid, in sme_auth_build_sae_commit() argument
129 if (ssid->sae_password) { in sme_auth_build_sae_commit()
130 password = os_strdup(ssid->sae_password); in sme_auth_build_sae_commit()
137 if (!password && ssid->passphrase) { in sme_auth_build_sae_commit()
138 password = os_strdup(ssid->passphrase); in sme_auth_build_sae_commit()
145 if (!password && ssid->ext_psk) { in sme_auth_build_sae_commit()
147 ssid->ext_psk); in sme_auth_build_sae_commit()
198 if (ssid->sae_password_id && in sme_auth_build_sae_commit()
209 ssid->sae_pk != SAE_PK_MODE_DISABLED && in sme_auth_build_sae_commit()
210 ((ssid->sae_password && in sme_auth_build_sae_commit()
[all …]
H A Dbss.c245 wpa_ssid_txt(bss->ssid, bss->ssid_len), reason); in wpa_bss_remove()
261 const u8 *ssid, size_t ssid_len) in wpa_bss_get() argument
270 os_memcmp(bss->ssid, ssid, ssid_len) == 0) in wpa_bss_get()
320 struct wpa_ssid *ssid; in wpa_bss_is_wps_candidate() local
335 for (ssid = wpa_s->conf->ssid; ssid; ssid = ssid->next) { in wpa_bss_is_wps_candidate()
336 if (!(ssid->key_mgmt & WPA_KEY_MGMT_WPS)) in wpa_bss_is_wps_candidate()
338 if (ssid->ssid_len && in wpa_bss_is_wps_candidate()
339 (ssid->ssid_len != bss->ssid_len || in wpa_bss_is_wps_candidate()
340 os_memcmp(ssid->ssid, bss->ssid, ssid->ssid_len) != 0)) in wpa_bss_is_wps_candidate()
344 ret = eap_is_wps_pbc_enrollee(&ssid->eap); in wpa_bss_is_wps_candidate()
[all …]
H A Dwpas_kay.c196 int ieee802_1x_alloc_kay_sm(struct wpa_supplicant *wpa_s, struct wpa_ssid *ssid) in ieee802_1x_alloc_kay_sm() argument
204 if (!ssid || ssid->macsec_policy == 0) in ieee802_1x_alloc_kay_sm()
207 if (ssid->macsec_policy == 1) { in ieee802_1x_alloc_kay_sm()
208 if (ssid->macsec_integ_only == 1) in ieee802_1x_alloc_kay_sm()
248 res = ieee802_1x_kay_init(kay_ctx, policy, ssid->macsec_replay_protect, in ieee802_1x_alloc_kay_sm()
249 ssid->macsec_replay_window, in ieee802_1x_alloc_kay_sm()
250 ssid->macsec_offload, ssid->macsec_port, in ieee802_1x_alloc_kay_sm()
251 ssid->mka_priority, ssid->macsec_csindex, in ieee802_1x_alloc_kay_sm()
377 struct wpa_ssid *ssid) in ieee802_1x_create_preshared_mka() argument
383 if ((ssid->mka_psk_set & MKA_PSK_SET) != MKA_PSK_SET) in ieee802_1x_create_preshared_mka()
[all …]
H A Dconfig_none.c40 struct wpa_ssid *ssid; in wpa_config_write() local
48 for (ssid = config->ssid; ssid; ssid = ssid->next) { in wpa_config_write()
H A Ddpp_supplicant.c380 struct wpa_ssid *ssid = wpa_s->current_ssid; in wpas_dpp_send_conn_status_result() local
399 ssid ? ssid->ssid : in wpas_dpp_send_conn_status_result()
401 ssid ? ssid->ssid_len : in wpas_dpp_send_conn_status_result()
411 ssid ? ssid->ssid : in wpas_dpp_send_conn_status_result()
413 ssid ? ssid->ssid_len : in wpas_dpp_send_conn_status_result()
1384 struct wpa_ssid *ssid; in wpas_dpp_add_network() local
1408 ssid = wpa_config_add_network(wpa_s->conf); in wpas_dpp_add_network()
1409 if (!ssid) in wpas_dpp_add_network()
1411 wpas_notify_network_added(wpa_s, ssid); in wpas_dpp_add_network()
1412 wpa_config_set_network_defaults(ssid); in wpas_dpp_add_network()
[all …]
H A Dnotify.h41 struct wpa_ssid *ssid);
43 struct wpa_ssid *ssid);
45 struct wpa_ssid *ssid,
60 struct wpa_ssid *ssid);
62 struct wpa_ssid *ssid);
106 const struct wpa_ssid *ssid,
127 struct wpa_ssid *ssid, int persistent,
132 struct wpa_ssid *ssid);
134 struct wpa_ssid *ssid);
150 struct wpa_ssid *ssid);
[all …]
H A Dwps_supplicant.h31 enum wps_request_type wpas_wps_get_req_type(struct wpa_ssid *ssid);
41 struct wpa_ssid *ssid, struct wpa_bss *bss);
43 struct wpa_ssid *ssid, struct wpa_bss *bss);
45 struct wpa_bss *selected, struct wpa_ssid *ssid);
73 const u8 *ssid, size_t ssid_len, int freq);
109 static inline u8 wpas_wps_get_req_type(struct wpa_ssid *ssid) in wpas_wps_get_req_type() argument
115 struct wpa_ssid *ssid, in wpas_wps_ssid_bss_match() argument
122 struct wpa_ssid *ssid, in wpas_wps_ssid_wildcard_ok() argument
130 struct wpa_ssid *ssid) in wpas_wps_scan_pbc_overlap() argument
/freebsd/contrib/wpa/src/ap/
H A Dneighbor_db.c21 const struct wpa_ssid_value *ssid) in hostapd_neighbor_get() argument
28 (!ssid || in hostapd_neighbor_get()
29 (ssid->ssid_len == nr->ssid.ssid_len && in hostapd_neighbor_get()
30 os_memcmp(ssid->ssid, nr->ssid.ssid, in hostapd_neighbor_get()
31 ssid->ssid_len) == 0))) in hostapd_neighbor_get()
52 char ssid[SSID_MAX_LEN * 2 + 1]; in hostapd_neighbor_show() local
54 ssid[0] = '\0'; in hostapd_neighbor_show()
55 wpa_snprintf_hex(ssid, sizeof(ssid), nr->ssid.ssid, in hostapd_neighbor_show()
56 nr->ssid.ssid_len); in hostapd_neighbor_show()
78 MAC2STR(nr->bssid), ssid, in hostapd_neighbor_show()
[all …]
H A Dap_config.c320 struct hostapd_ssid *ssid) in hostapd_config_read_wpa_psk() argument
429 pbkdf2_sha1(pos, ssid->ssid, ssid->ssid_len, in hostapd_config_read_wpa_psk()
455 psk->next = ssid->wpa_psk; in hostapd_config_read_wpa_psk()
456 ssid->wpa_psk = psk; in hostapd_config_read_wpa_psk()
465 static int hostapd_derive_psk(struct hostapd_ssid *ssid) in hostapd_derive_psk() argument
467 ssid->wpa_psk = os_zalloc(sizeof(struct hostapd_wpa_psk)); in hostapd_derive_psk()
468 if (ssid->wpa_psk == NULL) { in hostapd_derive_psk()
473 (u8 *) ssid->ssid, ssid->ssid_len); in hostapd_derive_psk()
475 (u8 *) ssid->wpa_passphrase, in hostapd_derive_psk()
476 os_strlen(ssid->wpa_passphrase)); in hostapd_derive_psk()
[all …]
H A Dwps_hostapd.c101 struct hostapd_ssid *ssid = &hapd->conf->ssid; in hostapd_wps_new_psk_cb() local
135 p->next = ssid->wpa_psk; in hostapd_wps_new_psk_cb()
136 ssid->wpa_psk = p; in hostapd_wps_new_psk_cb()
138 if (ssid->wpa_psk_file) { in hostapd_wps_new_psk_cb()
143 f = fopen(ssid->wpa_psk_file, "a"); in hostapd_wps_new_psk_cb()
146 ssid->wpa_psk_file); in hostapd_wps_new_psk_cb()
282 for (wpa_psk = hapd->conf->ssid.wpa_psk; wpa_psk; in hostapd_wps_lookup_pskfile_cb()
362 os_memcpy(bss->ssid.ssid, cred->ssid, cred->ssid_len); in hapd_wps_reconfig_in_memory()
363 bss->ssid.ssid_len = cred->ssid_len; in hapd_wps_reconfig_in_memory()
364 bss->ssid.ssid_set = 1; in hapd_wps_reconfig_in_memory()
[all …]

1234567891011