Home
last modified time | relevance | path

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

123

/external/wpa_supplicant_8/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.c331 if (wpa_sm_parse_own_wpa_ie(wpa_s->wpa, &ie) < 0 || in wpa_find_assoc_pmkid()
336 pmksa_set = pmksa_cache_set_current(wpa_s->wpa, in wpa_find_assoc_pmkid()
364 pmksa_candidate_add(wpa_s->wpa, data->pmkid_candidate.bssid, in wpa_supplicant_event_pmkid_candidate()
453 wpa_sm_set_scard_ctx(wpa_s->wpa, wpa_s->scard); in wpa_supplicant_scard_init()
967 int wpa; in wpa_scan_res_match() local
1048 wpa = wpa_ie_len > 0 || rsn_ie_len > 0; in wpa_scan_res_match()
1051 int check_ssid = wpa ? 1 : (ssid->ssid_len != 0); in wpa_scan_res_match()
1077 if (wpa && ssid->ssid_len == 0 && in wpa_scan_res_match()
1081 if (!wpa && (ssid->key_mgmt & WPA_KEY_MGMT_WPS)) { in wpa_scan_res_match()
1137 if (!osen && !wpa && in wpa_scan_res_match()
[all …]
Dwpa_supplicant.c215 wpa_sm_notify_disassoc(wpa_s->wpa); in wpa_supplicant_timeout()
376 wpa_sm_set_ap_wpa_ie(wpa_s->wpa, NULL, 0); in wpa_supplicant_set_non_wpa_policy()
377 wpa_sm_set_ap_rsn_ie(wpa_s->wpa, NULL, 0); in wpa_supplicant_set_non_wpa_policy()
378 wpa_sm_set_assoc_wpa_ie(wpa_s->wpa, NULL, 0); in wpa_supplicant_set_non_wpa_policy()
395 wpa_sm_set_param(wpa_s->wpa, WPA_PARAM_RSN_ENABLED, 0); in wpa_supplicant_set_non_wpa_policy()
396 wpa_sm_set_param(wpa_s->wpa, WPA_PARAM_KEY_MGMT, wpa_s->key_mgmt); in wpa_supplicant_set_non_wpa_policy()
397 wpa_sm_set_param(wpa_s->wpa, WPA_PARAM_PAIRWISE, in wpa_supplicant_set_non_wpa_policy()
399 wpa_sm_set_param(wpa_s->wpa, WPA_PARAM_GROUP, wpa_s->group_cipher); in wpa_supplicant_set_non_wpa_policy()
401 wpa_sm_set_param(wpa_s->wpa, WPA_PARAM_MGMT_GROUP, in wpa_supplicant_set_non_wpa_policy()
405 pmksa_cache_clear_current(wpa_s->wpa); in wpa_supplicant_set_non_wpa_policy()
[all …]
Dsme.c330 if (pmksa_cache_set_current(wpa_s->wpa, NULL, bss->bssid, in sme_send_authentication()
386 wpa_sm_set_ft_params(wpa_s->wpa, ie, ie ? 2 + ie[1] : 0); in sme_send_authentication()
389 wpa_ft_prepare_auth_request(wpa_s->wpa, ie); in sme_send_authentication()
414 wpa_sm_has_ptk(wpa_s->wpa)) { in sme_send_authentication()
546 pmksa_cache_set_current(wpa_s->wpa, NULL, bss->bssid, ssid, 0, in sme_send_authentication()
612 if (pmksa_cache_set_current(wpa_s->wpa, NULL, bss->bssid, in sme_send_authentication()
618 resp = fils_build_auth(wpa_s->wpa, ssid->fils_dh_group, md); in sme_send_authentication()
740 wpa_sm_set_assoc_wpa_ie(wpa_s->wpa, NULL, 0); in sme_auth_start_cb()
950 wpa_sm_set_pmk(wpa_s->wpa, wpa_s->sme.sae.pmk, PMK_LEN, in sme_event_auth()
1016 if (wpa_ft_process_response(wpa_s->wpa, data->auth.ies, in sme_event_auth()
[all …]
Dwpas_glue.c161 if (pmksa_cache_get_current(wpa_s->wpa) && in wpa_supplicant_eapol_send()
252 wpa_sm_aborted_cached(wpa_s->wpa); in wpa_supplicant_aborted_cached()
393 if (wpa_sm_set_ap_wpa_ie(wpa_s->wpa, ie, ie ? 2 + ie[1] : 0)) in wpa_get_beacon_ie()
397 if (wpa_sm_set_ap_rsn_ie(wpa_s->wpa, ie, ie ? 2 + ie[1] : 0)) in wpa_get_beacon_ie()
975 wpa_sm_pmksa_cache_flush(wpa_s->wpa, ssid); in wpa_sm_sim_state_error_handler()
1235 wpa_s->wpa = wpa_sm_init(ctx); in wpa_supplicant_init_wpa()
1236 if (wpa_s->wpa == NULL) { in wpa_supplicant_init_wpa()
1288 wpa_sm_set_config(wpa_s->wpa, ssid ? &conf : NULL); in wpa_supplicant_rsn_supp_set_config()
Dap.c324 bss->wpa = ssid->proto; in wpa_supplicant_conf_ap()
403 if ((bss->wpa & 2) && bss->rsn_pairwise == 0) in wpa_supplicant_conf_ap()
405 bss->wpa_group = wpa_select_ap_group_cipher(bss->wpa, bss->wpa_pairwise, in wpa_supplicant_conf_ap()
408 if (bss->wpa && bss->ieee802_1x) in wpa_supplicant_conf_ap()
410 else if (bss->wpa) in wpa_supplicant_conf_ap()
437 if (bss->wpa_group_rekey < 86400 && (bss->wpa & 2) && in wpa_supplicant_conf_ap()
465 !(bss->wpa & 2))) in wpa_supplicant_conf_ap()
1238 if (conf->wpa == 0) in ap_ctrl_iface_wpa_get_status()
1248 conf->wpa)); in ap_ctrl_iface_wpa_get_status()
Dctrl_iface.c460 if (wpa_sm_set_param(wpa_s->wpa, RSNA_PMK_LIFETIME, in wpa_supplicant_ctrl_iface_set()
469 if (wpa_sm_set_param(wpa_s->wpa, RSNA_PMK_REAUTH_THRESHOLD, in wpa_supplicant_ctrl_iface_set()
477 if (wpa_sm_set_param(wpa_s->wpa, RSNA_SA_TIMEOUT, in wpa_supplicant_ctrl_iface_set()
541 wpa_tdls_enable(wpa_s->wpa, !disabled); in wpa_supplicant_ctrl_iface_set()
755 wpa_sm_get_anonce(wpa_s->wpa), in wpa_supplicant_ctrl_iface_get()
782 rsn_preauth_deinit(wpa_s->wpa); in wpa_supplicant_ctrl_iface_preauth()
783 if (rsn_preauth_init(wpa_s->wpa, bssid, ssid ? &ssid->eap : NULL)) in wpa_supplicant_ctrl_iface_preauth()
808 if (wpa_tdls_is_external_setup(wpa_s->wpa)) in wpa_supplicant_ctrl_iface_tdls_discover()
809 ret = wpa_tdls_send_discovery_request(wpa_s->wpa, peer); in wpa_supplicant_ctrl_iface_tdls_discover()
833 wpa_tdls_is_external_setup(wpa_s->wpa)) in wpa_supplicant_ctrl_iface_tdls_setup()
[all …]
/external/wpa_supplicant_8/src/ap/
Dap_config.c813 if (bss->wpa) { in hostapd_config_check_bss()
831 if (full_config && bss->wpa && in hostapd_config_check_bss()
839 if (full_config && bss->wpa && (bss->wpa_key_mgmt & WPA_KEY_MGMT_PSK) && in hostapd_config_check_bss()
892 if (full_config && conf->ieee80211n && bss->wpa && in hostapd_config_check_bss()
912 if (full_config && conf->ieee80211ac && bss->wpa && in hostapd_config_check_bss()
931 bss->ssid.wep.keys_set && bss->wpa == 0) { in hostapd_config_check_bss()
937 if (full_config && bss->wps_state && bss->wpa && in hostapd_config_check_bss()
938 (!(bss->wpa & 2) || in hostapd_config_check_bss()
948 (!(bss->wpa & 2) || in hostapd_config_check_bss()
960 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()
403 int wpa; in hapd_wps_cred_cb() local
513 wpa = 3; in hapd_wps_cred_cb()
515 wpa = 2; in hapd_wps_cred_cb()
517 wpa = 1; in hapd_wps_cred_cb()
[all …]
Dwpa_auth_ie.c436 if (wpa_auth->conf.wpa == WPA_PROTO_OSEN) { in wpa_auth_gen_wpa_ie()
439 if (wpa_auth->conf.wpa & WPA_PROTO_RSN) { in wpa_auth_gen_wpa_ie()
455 if (wpa_auth->conf.wpa & WPA_PROTO_WPA) { in wpa_auth_gen_wpa_ie()
533 if (!(wpa_auth->conf.wpa & version)) { in wpa_validate_wpa_ie()
774 sm->wpa = WPA_VERSION_WPA2; in wpa_validate_wpa_ie()
776 sm->wpa = WPA_VERSION_WPA; in wpa_validate_wpa_ie()
853 sm->wpa = WPA_VERSION_WPA2; in wpa_validate_osen()
Dwpa_auth.c605 if (wpa_auth == NULL || !wpa_auth->conf.wpa || sm == NULL) in wpa_auth_sta_associated()
911 if (wpa_auth == NULL || !wpa_auth->conf.wpa || sm == NULL) in wpa_receive()
947 if (sm->wpa == WPA_VERSION_WPA2) { in wpa_receive()
1123 if (sm->wpa == WPA_VERSION_WPA2 && mic_len == 0 && in wpa_receive()
1439 key->type = sm->wpa == WPA_VERSION_WPA2 ? in __wpa_send_eapol()
1442 if (encr && sm->wpa == WPA_VERSION_WPA2) in __wpa_send_eapol()
1444 if (sm->wpa != WPA_VERSION_WPA2) in __wpa_send_eapol()
1449 if (sm->wpa == WPA_VERSION_WPA2 && !pairwise) in __wpa_send_eapol()
1793 if (sm->wpa == WPA_VERSION_WPA) in SM_STATE()
2041 if (sm->wpa == WPA_VERSION_WPA2 && in SM_STATE()
[all …]
Dieee802_1x.c361 suite = wpa_cipher_to_suite(((hapd->conf->wpa & 0x2) || in add_common_radius_sta_attr_rsn()
463 if ((hapd->conf->wpa & 2) && in add_common_radius_sta_attr()
479 if (hapd->conf->wpa && wpa_key_mgmt_ft(hapd->conf->wpa_key_mgmt) && in add_common_radius_sta_attr()
493 if ((hapd->conf->wpa || hapd->conf->osen) && sta->wpa_sm && in add_common_radius_sta_attr()
910 if (!hapd->conf->ieee802_1x && !hapd->conf->wpa && !hapd->conf->osen && in ieee802_1x_receive()
1098 ((hapd->conf->wpa && (sta->flags & WLAN_STA_MAYBE_WPS)) || in ieee802_1x_new_station()
2221 conf.wpa = hapd->conf->wpa; in ieee802_1x_init()
2275 if ((hapd->conf->ieee802_1x || hapd->conf->wpa) && in ieee802_1x_init()
2318 (hapd->conf->ieee802_1x || hapd->conf->wpa)) in ieee802_1x_deinit()
2384 const struct wpa_eapol_key *wpa; in ieee802_1x_eapol_tx_status() local
[all …]
Dap_drv_ops.c268 if (((!hapd->conf->ieee802_1x && !hapd->conf->wpa) || in hostapd_set_sta_flags()
287 params.wpa = hapd->conf->wpa; in hostapd_set_drv_ieee8021x()
290 if ((hapd->conf->wpa & (WPA_PROTO_WPA | WPA_PROTO_RSN)) == in hostapd_set_drv_ieee8021x()
294 else if (hapd->conf->wpa & WPA_PROTO_RSN) in hostapd_set_drv_ieee8021x()
296 else if (hapd->conf->wpa & WPA_PROTO_WPA) in hostapd_set_drv_ieee8021x()
/external/wpa_supplicant_8/wpa_supplicant/examples/
Dwpas-test.py68 wpa = "no"
70 wpa = "yes"
83 …print " %s :: ssid='%s' wpa=%s wpa2=%s quality=%d%% rate=%d freq=%d" % (bssid, ssid, wpa, …
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…
/external/wpa_supplicant_8/wpa_supplicant/hidl/1.0/
Dsta_iface.cpp635 if (wpa_tdls_is_external_setup(wpa_s->wpa)) { in initiateTdlsDiscoverInternal()
636 ret = wpa_tdls_send_discovery_request(wpa_s->wpa, peer); in initiateTdlsDiscoverInternal()
652 if (wpa_tdls_is_external_setup(wpa_s->wpa) && in initiateTdlsSetupInternal()
654 wpa_tdls_remove(wpa_s->wpa, peer); in initiateTdlsSetupInternal()
655 ret = wpa_tdls_start(wpa_s->wpa, peer); in initiateTdlsSetupInternal()
671 if (wpa_tdls_is_external_setup(wpa_s->wpa) && in initiateTdlsTeardownInternal()
674 wpa_s->wpa, peer, WLAN_REASON_TDLS_TEARDOWN_UNSPECIFIED); in initiateTdlsTeardownInternal()
/external/wpa_supplicant_8/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()
/external/wpa_supplicant_8/wpa_supplicant/hidl/1.1/
Dsta_iface.cpp649 if (wpa_tdls_is_external_setup(wpa_s->wpa)) { in initiateTdlsDiscoverInternal()
650 ret = wpa_tdls_send_discovery_request(wpa_s->wpa, peer); in initiateTdlsDiscoverInternal()
666 if (wpa_tdls_is_external_setup(wpa_s->wpa) && in initiateTdlsSetupInternal()
668 wpa_tdls_remove(wpa_s->wpa, peer); in initiateTdlsSetupInternal()
669 ret = wpa_tdls_start(wpa_s->wpa, peer); in initiateTdlsSetupInternal()
685 if (wpa_tdls_is_external_setup(wpa_s->wpa) && in initiateTdlsTeardownInternal()
688 wpa_s->wpa, peer, WLAN_REASON_TDLS_TEARDOWN_UNSPECIFIED); in initiateTdlsTeardownInternal()
/external/wpa_supplicant_8/wpa_supplicant/wpa_gui-qt4/
Dnetworkconfig.cpp525 int wpa = 0; in paramsFromConfig() local
529 wpa = 2; in paramsFromConfig()
531 wpa = 1; in paramsFromConfig()
540 auth = wpa & 2 ? AUTH_WPA2_EAP : AUTH_WPA_EAP; in paramsFromConfig()
542 auth = wpa & 2 ? AUTH_WPA2_PSK : AUTH_WPA_PSK; in paramsFromConfig()
/external/wpa_supplicant_8/src/rsn_supp/
DMakefile22 wpa.o \
/external/perfetto/src/ftrace_reader/test/data/android_seed_N2F62_3.10.49/events/cfg80211/rdev_connect/
Dformat19 print fmt: "%s, netdev:%s(%d), bssid: %pM, ssid: %s, auth type: %d, privacy: %s, wpa versions: %u, …
/external/perfetto/src/ftrace_reader/test/data/android_flounder_lte_LRX16F_3.10.40/events/cfg80211/rdev_connect/
Dformat19 print fmt: "%s, netdev:%s(%d), bssid: %pM, ssid: %s, auth type: %d, privacy: %s, wpa versions: %u, …
/external/autotest/server/site_tests/network_WiFi_RoamSuspendSSID/
Dcontrol.wpa7 NAME = 'network_WiFi_RoamSuspendSSID.wpa'
/external/perfetto/src/ftrace_reader/test/data/android_walleye_OPM5.171019.017.A1_4.4.88/events/cfg80211/rdev_connect/
Dformat20 print fmt: "%s, netdev:%s(%d), bssid: %pM, ssid: %s, auth type: %d, privacy: %s, wpa versions: %u, …

123