Home
last modified time | relevance | path

Searched refs:wpa (Results 1 – 25 of 118) sorted by relevance

12345

/third_party/weston/libweston/
Dplugin-registry.c70 struct weston_plugin_api *wpa; in weston_plugin_api_register() local
79 wl_list_for_each(wpa, &compositor->plugin_api_list, link) in weston_plugin_api_register()
80 if (strcmp(wpa->api_name, api_name) == 0) in weston_plugin_api_register()
83 wpa = zalloc(sizeof(*wpa)); in weston_plugin_api_register()
84 if (!wpa) in weston_plugin_api_register()
87 wpa->api_name = strdup(api_name); in weston_plugin_api_register()
88 wpa->vtable = vtable; in weston_plugin_api_register()
89 wpa->vtable_size = vtable_size; in weston_plugin_api_register()
91 if (!wpa->api_name) { in weston_plugin_api_register()
92 free(wpa); in weston_plugin_api_register()
[all …]
/third_party/wpa_supplicant/wpa_supplicant-2.9/wpa_supplicant/
Dpreauth_test.c183 rsn_preauth_deinit(wpa_s->wpa); in test_eapol_clean()
184 pmksa_candidate_free(wpa_s->wpa); in test_eapol_clean()
185 wpa_sm_deinit(wpa_s->wpa); in test_eapol_clean()
207 if (!rsn_preauth_in_progress(wpa_s->wpa)) in eapol_test_poll()
248 wpa_s->wpa = wpa_sm_init(ctx); in wpa_init_conf()
249 assert(wpa_s->wpa != NULL); in wpa_init_conf()
250 wpa_sm_set_param(wpa_s->wpa, WPA_PARAM_PROTO, WPA_PROTO_RSN); in wpa_init_conf()
253 wpa_sm_set_ifname(wpa_s->wpa, wpa_s->ifname, NULL); in wpa_init_conf()
263 wpa_sm_set_own_addr(wpa_s->wpa, wpa_s->own_addr); in wpa_init_conf()
338 if (rsn_preauth_init(wpa_s.wpa, bssid, &wpa_s.conf->ssid->eap)) in main()
[all …]
Devents.c347 if (wpa_sm_parse_own_wpa_ie(wpa_s->wpa, &ie) < 0 || in wpa_find_assoc_pmkid()
352 pmksa_set = pmksa_cache_set_current(wpa_s->wpa, in wpa_find_assoc_pmkid()
380 pmksa_candidate_add(wpa_s->wpa, data->pmkid_candidate.bssid, in wpa_supplicant_event_pmkid_candidate()
469 wpa_sm_set_scard_ctx(wpa_s->wpa, wpa_s->scard); in wpa_supplicant_scard_init()
1017 int wpa; in wpa_scan_res_match() local
1102 wpa = wpa_ie_len > 0 || rsn_ie_len > 0; in wpa_scan_res_match()
1105 int check_ssid = wpa ? 1 : (ssid->ssid_len != 0); in wpa_scan_res_match()
1131 if (wpa && ssid->ssid_len == 0 && in wpa_scan_res_match()
1135 if (!wpa && (ssid->key_mgmt & WPA_KEY_MGMT_WPS)) { in wpa_scan_res_match()
1191 if (!osen && !wpa && in wpa_scan_res_match()
[all …]
Dwpa_supplicant.c222 wpa_sm_notify_disassoc(wpa_s->wpa); in wpa_supplicant_timeout()
405 wpa_sm_set_ap_wpa_ie(wpa_s->wpa, NULL, 0); in wpa_supplicant_set_non_wpa_policy()
406 wpa_sm_set_ap_rsn_ie(wpa_s->wpa, NULL, 0); in wpa_supplicant_set_non_wpa_policy()
407 wpa_sm_set_assoc_wpa_ie(wpa_s->wpa, NULL, 0); in wpa_supplicant_set_non_wpa_policy()
424 wpa_sm_set_param(wpa_s->wpa, WPA_PARAM_RSN_ENABLED, 0); in wpa_supplicant_set_non_wpa_policy()
425 wpa_sm_set_param(wpa_s->wpa, WPA_PARAM_KEY_MGMT, wpa_s->key_mgmt); in wpa_supplicant_set_non_wpa_policy()
426 wpa_sm_set_param(wpa_s->wpa, WPA_PARAM_PAIRWISE, in wpa_supplicant_set_non_wpa_policy()
428 wpa_sm_set_param(wpa_s->wpa, WPA_PARAM_GROUP, wpa_s->group_cipher); in wpa_supplicant_set_non_wpa_policy()
430 wpa_sm_set_param(wpa_s->wpa, WPA_PARAM_MGMT_GROUP, in wpa_supplicant_set_non_wpa_policy()
434 pmksa_cache_clear_current(wpa_s->wpa); in wpa_supplicant_set_non_wpa_policy()
[all …]
Dsme.c363 if (pmksa_cache_set_current(wpa_s->wpa, NULL, bss->bssid, in sme_send_authentication()
456 wpa_sm_set_ft_params(wpa_s->wpa, ie, ie ? 2 + ie[1] : 0); in sme_send_authentication()
462 wpa_ft_prepare_auth_request(wpa_s->wpa, ie); in sme_send_authentication()
485 wpa_sm_has_ptk(wpa_s->wpa)) { in sme_send_authentication()
642 pmksa_cache_set_current(wpa_s->wpa, NULL, bss->bssid, ssid, 0, in sme_send_authentication()
649 wpa_sm_set_pmk_from_pmksa(wpa_s->wpa); in sme_send_authentication()
729 if (pmksa_cache_set_current(wpa_s->wpa, NULL, bss->bssid, in sme_send_authentication()
735 resp = fils_build_auth(wpa_s->wpa, ssid->fils_dh_group, md); in sme_send_authentication()
857 wpa_sm_set_assoc_wpa_ie(wpa_s->wpa, NULL, 0); in sme_auth_start_cb()
1235 wpa_sm_set_pmk(wpa_s->wpa, wpa_s->sme.sae.pmk, PMK_LEN, in sme_external_auth_mgmt_rx()
[all …]
Dwpas_glue.c165 if (pmksa_cache_get_current(wpa_s->wpa) && in wpa_supplicant_eapol_send()
256 wpa_sm_aborted_cached(wpa_s->wpa); in wpa_supplicant_aborted_cached()
397 if (wpa_sm_set_ap_wpa_ie(wpa_s->wpa, ie, ie ? 2 + ie[1] : 0)) in wpa_get_beacon_ie()
401 if (wpa_sm_set_ap_rsn_ie(wpa_s->wpa, ie, ie ? 2 + ie[1] : 0)) in wpa_get_beacon_ie()
979 wpa_sm_pmksa_cache_flush(wpa_s->wpa, ssid); in wpa_sm_sim_state_error_handler()
1248 wpa_s->wpa = wpa_sm_init(ctx); in wpa_supplicant_init_wpa()
1249 if (wpa_s->wpa == NULL) { in wpa_supplicant_init_wpa()
1301 wpa_sm_set_config(wpa_s->wpa, ssid ? &conf : NULL); in wpa_supplicant_rsn_supp_set_config()
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/wpa_supplicant/
Dpreauth_test.c192 rsn_preauth_deinit(wpa_s->wpa); in test_eapol_clean()
193 pmksa_candidate_free(wpa_s->wpa); in test_eapol_clean()
194 wpa_sm_deinit(wpa_s->wpa); in test_eapol_clean()
214 if (!rsn_preauth_in_progress(wpa_s->wpa)) in eapol_test_poll()
256 wpa_s->wpa = wpa_sm_init(ctx); in wpa_init_conf()
257 assert(wpa_s->wpa != NULL); in wpa_init_conf()
258 wpa_sm_set_param(wpa_s->wpa, WPA_PARAM_PROTO, WPA_PROTO_RSN); in wpa_init_conf()
261 wpa_sm_set_ifname(wpa_s->wpa, wpa_s->ifname, NULL); in wpa_init_conf()
271 wpa_sm_set_own_addr(wpa_s->wpa, wpa_s->own_addr); in wpa_init_conf()
346 if (rsn_preauth_init(wpa_s.wpa, bssid, &wpa_s.conf->ssid->eap)) in main()
[all …]
Devents.c364 cur_pmksa = pmksa_cache_get_current(wpa_s->wpa); in wpa_find_assoc_pmkid()
366 pmksa_cache_clear_current(wpa_s->wpa); in wpa_find_assoc_pmkid()
368 if (wpa_sm_parse_own_wpa_ie(wpa_s->wpa, &ie) < 0 || in wpa_find_assoc_pmkid()
373 pmksa_set = pmksa_cache_set_current(wpa_s->wpa, in wpa_find_assoc_pmkid()
401 pmksa_candidate_add(wpa_s->wpa, data->pmkid_candidate.bssid, in wpa_supplicant_event_pmkid_candidate()
490 wpa_sm_set_scard_ctx(wpa_s->wpa, wpa_s->scard); in wpa_supplicant_scard_init()
1140 bool wpa, check_ssid, osen, rsn_osen = false; in wpa_scan_res_ok() local
1151 wpa = ie && ie[1]; in wpa_scan_res_ok()
1153 wpa |= ie && ie[1]; in wpa_scan_res_ok()
1166 check_ssid = wpa || ssid->ssid_len > 0; in wpa_scan_res_ok()
[all …]
Dwpa_supplicant.c232 wpa_sm_notify_disassoc(wpa_s->wpa); in wpa_supplicant_timeout()
417 wpa_sm_set_ap_wpa_ie(wpa_s->wpa, NULL, 0); in wpa_supplicant_set_non_wpa_policy()
418 wpa_sm_set_ap_rsn_ie(wpa_s->wpa, NULL, 0); in wpa_supplicant_set_non_wpa_policy()
419 wpa_sm_set_ap_rsnxe(wpa_s->wpa, NULL, 0); in wpa_supplicant_set_non_wpa_policy()
420 wpa_sm_set_assoc_wpa_ie(wpa_s->wpa, NULL, 0); in wpa_supplicant_set_non_wpa_policy()
421 wpa_sm_set_assoc_rsnxe(wpa_s->wpa, NULL, 0); in wpa_supplicant_set_non_wpa_policy()
441 wpa_sm_set_param(wpa_s->wpa, WPA_PARAM_RSN_ENABLED, 0); in wpa_supplicant_set_non_wpa_policy()
442 wpa_sm_set_param(wpa_s->wpa, WPA_PARAM_KEY_MGMT, wpa_s->key_mgmt); in wpa_supplicant_set_non_wpa_policy()
443 wpa_sm_set_param(wpa_s->wpa, WPA_PARAM_PAIRWISE, in wpa_supplicant_set_non_wpa_policy()
445 wpa_sm_set_param(wpa_s->wpa, WPA_PARAM_GROUP, wpa_s->group_cipher); in wpa_supplicant_set_non_wpa_policy()
[all …]
Dsme.c447 if (pmksa_cache_set_current(wpa_s->wpa, NULL, bss->bssid, in sme_send_authentication()
540 wpa_sm_set_ft_params(wpa_s->wpa, ie, ie ? 2 + ie[1] : 0); in sme_send_authentication()
546 wpa_ft_prepare_auth_request(wpa_s->wpa, ie); in sme_send_authentication()
570 wpa_sm_has_ptk(wpa_s->wpa)) { in sme_send_authentication()
746 pmksa_cache_set_current(wpa_s->wpa, NULL, bss->bssid, ssid, 0, in sme_send_authentication()
753 wpa_sm_set_pmk_from_pmksa(wpa_s->wpa); in sme_send_authentication()
840 if (pmksa_cache_set_current(wpa_s->wpa, NULL, bss->bssid, in sme_send_authentication()
846 resp = fils_build_auth(wpa_s->wpa, ssid->fils_dh_group, md); in sme_send_authentication()
973 wpa_sm_set_assoc_wpa_ie(wpa_s->wpa, NULL, 0); in sme_auth_start_cb()
974 wpa_sm_set_assoc_rsnxe(wpa_s->wpa, NULL, 0); in sme_auth_start_cb()
[all …]
Dwpas_glue.c117 int encrypt = wpa_s->wpa && in wpa_ether_send()
118 wpa_sm_has_ptk_installed(wpa_s->wpa); in wpa_ether_send()
174 if (pmksa_cache_get_current(wpa_s->wpa) && in wpa_supplicant_eapol_send()
269 wpa_sm_aborted_cached(wpa_s->wpa); in wpa_supplicant_aborted_cached()
417 if (wpa_sm_set_ap_wpa_ie(wpa_s->wpa, ie, ie ? 2 + ie[1] : 0)) in wpa_get_beacon_ie()
421 if (wpa_sm_set_ap_rsn_ie(wpa_s->wpa, ie, ie ? 2 + ie[1] : 0)) in wpa_get_beacon_ie()
425 if (wpa_sm_set_ap_rsnxe(wpa_s->wpa, ie, ie ? 2 + ie[1] : 0)) in wpa_get_beacon_ie()
1034 wpa_sm_pmksa_cache_flush(wpa_s->wpa, ssid); in wpa_sm_sim_state_error_handler()
1110 !wpa_sm_ext_key_id_active(wpa_s->wpa)) { in wpa_supplicant_eap_auth_start_cb()
1430 wpa_s->wpa = wpa_sm_init(ctx); in wpa_supplicant_init_wpa()
[all …]
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/ap/
Dap_config.c1171 if (bss->wpa != WPA_PROTO_RSN) { in hostapd_config_check_bss_6g()
1225 if (bss->wpa) { in hostapd_config_check_bss()
1244 if (full_config && bss->wpa && in hostapd_config_check_bss()
1252 if (full_config && bss->wpa && (bss->wpa_key_mgmt & WPA_KEY_MGMT_PSK) && in hostapd_config_check_bss()
1306 if (full_config && conf->ieee80211n && bss->wpa && in hostapd_config_check_bss()
1327 if (full_config && conf->ieee80211ac && bss->wpa && in hostapd_config_check_bss()
1348 if (full_config && conf->ieee80211ax && bss->wpa && in hostapd_config_check_bss()
1368 bss->ssid.wep.keys_set && bss->wpa == 0) { in hostapd_config_check_bss()
1375 if (full_config && bss->wps_state && bss->wpa && in hostapd_config_check_bss()
1376 (!(bss->wpa & 2) || in hostapd_config_check_bss()
[all …]
Dwps_hostapd.c370 bss->wpa = 2; in hapd_wps_reconfig_in_memory()
372 bss->wpa = 0; in hapd_wps_reconfig_in_memory()
376 bss->wpa = 3; in hapd_wps_reconfig_in_memory()
378 bss->wpa = 2; in hapd_wps_reconfig_in_memory()
380 bss->wpa = 1; in hapd_wps_reconfig_in_memory()
382 bss->wpa = 0; in hapd_wps_reconfig_in_memory()
385 if (bss->wpa) { in hapd_wps_reconfig_in_memory()
403 bss->wpa_group = wpa_select_ap_group_cipher(bss->wpa, in hapd_wps_reconfig_in_memory()
463 int wpa; in hapd_wps_cred_cb() local
575 wpa = 2; in hapd_wps_cred_cb()
[all …]
Dwpa_auth_ie.c506 if (wpa_auth->conf.wpa == WPA_PROTO_OSEN) { in wpa_auth_gen_wpa_ie()
509 if (wpa_auth->conf.wpa & WPA_PROTO_RSN) { in wpa_auth_gen_wpa_ie()
530 if (wpa_auth->conf.wpa & WPA_PROTO_WPA) { in wpa_auth_gen_wpa_ie()
611 if (!(wpa_auth->conf.wpa & version)) { in wpa_validate_wpa_ie()
918 sm->wpa = WPA_VERSION_WPA2; in wpa_validate_wpa_ie()
920 sm->wpa = WPA_VERSION_WPA; in wpa_validate_wpa_ie()
996 if (conf->extended_key_id && sm->wpa == WPA_VERSION_WPA2 && in wpa_validate_wpa_ie()
1053 sm->wpa = WPA_VERSION_WPA2; in wpa_validate_osen()
1161 if (!(conf->wpa & WPA_PROTO_RSN)) in wpa_auth_write_fd_rsn_info()
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/ap/
Dap_config.c1041 if (bss->wpa) { in hostapd_config_check_bss()
1059 if (full_config && bss->wpa && in hostapd_config_check_bss()
1067 if (full_config && bss->wpa && (bss->wpa_key_mgmt & WPA_KEY_MGMT_PSK) && in hostapd_config_check_bss()
1120 if (full_config && conf->ieee80211n && bss->wpa && in hostapd_config_check_bss()
1140 if (full_config && conf->ieee80211ac && bss->wpa && in hostapd_config_check_bss()
1159 bss->ssid.wep.keys_set && bss->wpa == 0) { in hostapd_config_check_bss()
1165 if (full_config && bss->wps_state && bss->wpa && in hostapd_config_check_bss()
1166 (!(bss->wpa & 2) || in hostapd_config_check_bss()
1178 (!(bss->wpa & 2) || in hostapd_config_check_bss()
1190 if (full_config && bss->mbo_enabled && (bss->wpa & 2) && in hostapd_config_check_bss()
[all …]
Dwps_hostapd.c329 bss->wpa = 3; in hapd_wps_reconfig_in_memory()
331 bss->wpa = 2; in hapd_wps_reconfig_in_memory()
333 bss->wpa = 1; in hapd_wps_reconfig_in_memory()
335 bss->wpa = 0; in hapd_wps_reconfig_in_memory()
337 if (bss->wpa) { in hapd_wps_reconfig_in_memory()
353 bss->wpa_group = wpa_select_ap_group_cipher(bss->wpa, in hapd_wps_reconfig_in_memory()
415 int wpa; in hapd_wps_cred_cb() local
526 wpa = 3; in hapd_wps_cred_cb()
528 wpa = 2; in hapd_wps_cred_cb()
530 wpa = 1; in hapd_wps_cred_cb()
[all …]
Dwpa_auth.c635 if (wpa_auth == NULL || !wpa_auth->conf.wpa || sm == NULL) in wpa_auth_sta_associated()
964 if (wpa_auth == NULL || !wpa_auth->conf.wpa || sm == NULL) in wpa_receive()
1000 if (sm->wpa == WPA_VERSION_WPA2) { in wpa_receive()
1168 if (sm->wpa == WPA_VERSION_WPA2 && mic_len == 0 && in wpa_receive()
1504 key->type = sm->wpa == WPA_VERSION_WPA2 ? in __wpa_send_eapol()
1507 if (encr && sm->wpa == WPA_VERSION_WPA2) in __wpa_send_eapol()
1509 if (sm->wpa != WPA_VERSION_WPA2) in __wpa_send_eapol()
1514 if (sm->wpa == WPA_VERSION_WPA2 && !pairwise) in __wpa_send_eapol()
1873 if (sm->wpa == WPA_VERSION_WPA) in SM_STATE()
2140 if (sm->wpa == WPA_VERSION_WPA2 && in SM_STATE()
[all …]
/third_party/wpa_supplicant/wpa_supplicant-2.9/wpa_supplicant/examples/
Dwpas-dbus-new.py57 wpa = "no"
59 wpa = "yes"
76 …print(" %s :: ssid='%s' wpa=%s wpa2=%s signal=%d rate=%d freq=%d" % (bssid, ssid, wpa, wpa…
Dwpas-dbus-new-signals.py64 wpa = "no"
66 wpa = "yes"
83 …print(" %s :: ssid='%s' wpa=%s wpa2=%s signal=%d rate=%d freq=%d" % (bssid, ssid, wpa, wpa…
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/wpa_supplicant/examples/
Dwpas-dbus-new.py57 wpa = "no"
59 wpa = "yes"
76 …print(" %s :: ssid='%s' wpa=%s wpa2=%s signal=%d rate=%d freq=%d" % (bssid, ssid, wpa, wpa…
Dwpas-dbus-new-signals.py64 wpa = "no"
66 wpa = "yes"
83 …print(" %s :: ssid='%s' wpa=%s wpa2=%s signal=%d rate=%d freq=%d" % (bssid, ssid, wpa, wpa…
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/rsn_supp/
DMakefile11 wpa.o \
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/
Dohos.build6 "//third_party/wpa_supplicant/wpa_supplicant-2.9_standard:wpa",
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/drivers/
Ddriver_bsd.c509 wpa_printf(MSG_DEBUG, "%s: enable WPA= 0x%x", __func__, params->wpa); in bsd_configure_wpa()
510 if (set80211param(priv, IEEE80211_IOC_WPA, params->wpa)) { in bsd_configure_wpa()
511 wpa_printf(MSG_INFO, "Unable to set WPA to %u", params->wpa); in bsd_configure_wpa()
527 if (!params->wpa && !params->ieee802_1x) { in bsd_set_ieee8021x()
532 if (params->wpa && bsd_configure_wpa(priv, params) != 0) { in bsd_set_ieee8021x()
538 (params->wpa ? IEEE80211_AUTH_WPA : IEEE80211_AUTH_8021X))) { in bsd_set_ieee8021x()
988 wpa_driver_bsd_set_wpa_internal(void *priv, int wpa, int privacy) in wpa_driver_bsd_set_wpa_internal() argument
993 __func__, wpa, privacy); in wpa_driver_bsd_set_wpa_internal()
995 if (!wpa && wpa_driver_bsd_set_wpa_ie(priv, NULL, 0) < 0) in wpa_driver_bsd_set_wpa_internal()
999 if (set80211param(priv, IEEE80211_IOC_WPA, wpa) < 0) in wpa_driver_bsd_set_wpa_internal()
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/rsn_supp/
DMakefile22 wpa.o \

12345