Home
last modified time | relevance | path

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

123

/external/wpa_supplicant_8/wpa_supplicant/
Dpreauth_test.c180 rsn_preauth_deinit(wpa_s->wpa); in test_eapol_clean()
181 pmksa_candidate_free(wpa_s->wpa); in test_eapol_clean()
182 wpa_sm_deinit(wpa_s->wpa); in test_eapol_clean()
204 if (!rsn_preauth_in_progress(wpa_s->wpa)) in eapol_test_poll()
245 wpa_s->wpa = wpa_sm_init(ctx); in wpa_init_conf()
246 assert(wpa_s->wpa != NULL); in wpa_init_conf()
247 wpa_sm_set_param(wpa_s->wpa, WPA_PARAM_PROTO, WPA_PROTO_RSN); in wpa_init_conf()
250 wpa_sm_set_ifname(wpa_s->wpa, wpa_s->ifname, NULL); in wpa_init_conf()
260 wpa_sm_set_own_addr(wpa_s->wpa, wpa_s->own_addr); in wpa_init_conf()
335 if (rsn_preauth_init(wpa_s.wpa, bssid, &wpa_s.conf->ssid->eap)) in main()
[all …]
Devents.c318 if (wpa_sm_parse_own_wpa_ie(wpa_s->wpa, &ie) < 0 || in wpa_find_assoc_pmkid()
323 pmksa_set = pmksa_cache_set_current(wpa_s->wpa, in wpa_find_assoc_pmkid()
351 pmksa_candidate_add(wpa_s->wpa, data->pmkid_candidate.bssid, in wpa_supplicant_event_pmkid_candidate()
440 wpa_sm_set_scard_ctx(wpa_s->wpa, wpa_s->scard); in wpa_supplicant_scard_init()
835 int wpa; in wpa_scan_res_match() local
899 wpa = wpa_ie_len > 0 || rsn_ie_len > 0; in wpa_scan_res_match()
902 int check_ssid = wpa ? 1 : (ssid->ssid_len != 0); in wpa_scan_res_match()
924 if (wpa && ssid->ssid_len == 0 && in wpa_scan_res_match()
928 if (!wpa && (ssid->key_mgmt & WPA_KEY_MGMT_WPS)) { in wpa_scan_res_match()
977 if (!osen && !wpa && in wpa_scan_res_match()
[all …]
Dwpa_supplicant.c200 wpa_sm_notify_disassoc(wpa_s->wpa); in wpa_supplicant_timeout()
355 wpa_sm_set_ap_wpa_ie(wpa_s->wpa, NULL, 0); in wpa_supplicant_set_non_wpa_policy()
356 wpa_sm_set_ap_rsn_ie(wpa_s->wpa, NULL, 0); in wpa_supplicant_set_non_wpa_policy()
357 wpa_sm_set_assoc_wpa_ie(wpa_s->wpa, NULL, 0); in wpa_supplicant_set_non_wpa_policy()
374 wpa_sm_set_param(wpa_s->wpa, WPA_PARAM_RSN_ENABLED, 0); in wpa_supplicant_set_non_wpa_policy()
375 wpa_sm_set_param(wpa_s->wpa, WPA_PARAM_KEY_MGMT, wpa_s->key_mgmt); in wpa_supplicant_set_non_wpa_policy()
376 wpa_sm_set_param(wpa_s->wpa, WPA_PARAM_PAIRWISE, in wpa_supplicant_set_non_wpa_policy()
378 wpa_sm_set_param(wpa_s->wpa, WPA_PARAM_GROUP, wpa_s->group_cipher); in wpa_supplicant_set_non_wpa_policy()
380 wpa_sm_set_param(wpa_s->wpa, WPA_PARAM_MGMT_GROUP, in wpa_supplicant_set_non_wpa_policy()
384 pmksa_cache_clear_current(wpa_s->wpa); in wpa_supplicant_set_non_wpa_policy()
[all …]
Dsme.c303 if (pmksa_cache_set_current(wpa_s->wpa, NULL, bss->bssid, in sme_send_authentication()
359 wpa_sm_set_ft_params(wpa_s->wpa, ie, ie ? 2 + ie[1] : 0); in sme_send_authentication()
362 wpa_ft_prepare_auth_request(wpa_s->wpa, ie); in sme_send_authentication()
382 wpa_sm_has_ptk(wpa_s->wpa)) { in sme_send_authentication()
519 pmksa_cache_set_current(wpa_s->wpa, NULL, bss->bssid, ssid, 0) == 0) in sme_send_authentication()
848 wpa_sm_set_pmk(wpa_s->wpa, wpa_s->sme.sae.pmk, PMK_LEN, in sme_event_auth()
906 if (wpa_ft_process_response(wpa_s->wpa, data->auth.ies, in sme_event_auth()
997 wpa_sm_set_assoc_wpa_ie(wpa_s->wpa, elems.rsn_ie - 2, in sme_associate()
1001 wpa_sm_set_assoc_wpa_ie(wpa_s->wpa, elems.wpa_ie - 2, in sme_associate()
1005 wpa_sm_set_assoc_wpa_ie(wpa_s->wpa, elems.osen - 2, in sme_associate()
[all …]
Dwpas_glue.c158 if (pmksa_cache_get_current(wpa_s->wpa) && in wpa_supplicant_eapol_send()
249 wpa_sm_aborted_cached(wpa_s->wpa); in wpa_supplicant_aborted_cached()
390 if (wpa_sm_set_ap_wpa_ie(wpa_s->wpa, ie, ie ? 2 + ie[1] : 0)) in wpa_get_beacon_ie()
394 if (wpa_sm_set_ap_rsn_ie(wpa_s->wpa, ie, ie ? 2 + ie[1] : 0)) in wpa_get_beacon_ie()
1088 wpa_s->wpa = wpa_sm_init(ctx); in wpa_supplicant_init_wpa()
1089 if (wpa_s->wpa == NULL) { in wpa_supplicant_init_wpa()
1137 wpa_sm_set_config(wpa_s->wpa, ssid ? &conf : NULL); in wpa_supplicant_rsn_supp_set_config()
Dap.c289 bss->wpa = ssid->proto; in wpa_supplicant_conf_ap()
347 if ((bss->wpa & 2) && bss->rsn_pairwise == 0) in wpa_supplicant_conf_ap()
349 bss->wpa_group = wpa_select_ap_group_cipher(bss->wpa, bss->wpa_pairwise, in wpa_supplicant_conf_ap()
352 if (bss->wpa && bss->ieee802_1x) in wpa_supplicant_conf_ap()
354 else if (bss->wpa) in wpa_supplicant_conf_ap()
381 if (bss->wpa_group_rekey < 86400 && (bss->wpa & 2) && in wpa_supplicant_conf_ap()
409 !(bss->wpa & 2))) in wpa_supplicant_conf_ap()
1179 if (conf->wpa == 0) in ap_ctrl_iface_wpa_get_status()
1189 conf->wpa)); in ap_ctrl_iface_wpa_get_status()
Dctrl_iface.c339 if (wpa_sm_set_param(wpa_s->wpa, RSNA_PMK_LIFETIME, in wpa_supplicant_ctrl_iface_set()
344 if (wpa_sm_set_param(wpa_s->wpa, RSNA_PMK_REAUTH_THRESHOLD, in wpa_supplicant_ctrl_iface_set()
348 if (wpa_sm_set_param(wpa_s->wpa, RSNA_SA_TIMEOUT, atoi(value))) in wpa_supplicant_ctrl_iface_set()
408 wpa_tdls_enable(wpa_s->wpa, !disabled); in wpa_supplicant_ctrl_iface_set()
569 rsn_preauth_deinit(wpa_s->wpa); in wpa_supplicant_ctrl_iface_preauth()
570 if (rsn_preauth_init(wpa_s->wpa, bssid, ssid ? &ssid->eap : NULL)) in wpa_supplicant_ctrl_iface_preauth()
594 return wpa_sm_stkstart(wpa_s->wpa, peer); in wpa_supplicant_ctrl_iface_stkstart()
616 if (wpa_tdls_is_external_setup(wpa_s->wpa)) in wpa_supplicant_ctrl_iface_tdls_discover()
617 ret = wpa_tdls_send_discovery_request(wpa_s->wpa, peer); in wpa_supplicant_ctrl_iface_tdls_discover()
641 wpa_tdls_is_external_setup(wpa_s->wpa)) in wpa_supplicant_ctrl_iface_tdls_setup()
[all …]
/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/src/ap/
Dap_config.c750 if (bss->wpa) { in hostapd_config_check_bss()
768 if (full_config && bss->wpa && in hostapd_config_check_bss()
776 if (full_config && bss->wpa && (bss->wpa_key_mgmt & WPA_KEY_MGMT_PSK) && in hostapd_config_check_bss()
829 if (full_config && conf->ieee80211n && bss->wpa && in hostapd_config_check_bss()
849 bss->ssid.wep.keys_set && bss->wpa == 0) { in hostapd_config_check_bss()
855 if (full_config && bss->wps_state && bss->wpa && in hostapd_config_check_bss()
856 (!(bss->wpa & 2) || in hostapd_config_check_bss()
866 (!(bss->wpa & 2) || in hostapd_config_check_bss()
878 if (full_config && bss->mbo_enabled && (bss->wpa & 2) && in hostapd_config_check_bss()
965 if ((bss->wpa & 2) && bss->rsn_pairwise == 0) in hostapd_set_security_params()
[all …]
Dwpa_auth_ie.c400 if (wpa_auth->conf.wpa == WPA_PROTO_OSEN) { in wpa_auth_gen_wpa_ie()
403 if (wpa_auth->conf.wpa & WPA_PROTO_RSN) { in wpa_auth_gen_wpa_ie()
419 if (wpa_auth->conf.wpa & WPA_PROTO_WPA) { in wpa_auth_gen_wpa_ie()
496 if (!(wpa_auth->conf.wpa & version)) { in wpa_validate_wpa_ie()
680 sm->wpa = WPA_VERSION_WPA2; in wpa_validate_wpa_ie()
682 sm->wpa = WPA_VERSION_WPA; in wpa_validate_wpa_ie()
751 sm->wpa = WPA_VERSION_WPA2; in wpa_validate_osen()
Dwps_hostapd.c335 bss->wpa = 3; in hapd_wps_reconfig_in_memory()
337 bss->wpa = 2; in hapd_wps_reconfig_in_memory()
339 bss->wpa = 1; in hapd_wps_reconfig_in_memory()
341 bss->wpa = 0; in hapd_wps_reconfig_in_memory()
343 if (bss->wpa) { in hapd_wps_reconfig_in_memory()
359 bss->wpa_group = wpa_select_ap_group_cipher(bss->wpa, in hapd_wps_reconfig_in_memory()
409 int wpa; in hapd_wps_cred_cb() local
519 wpa = 3; in hapd_wps_cred_cb()
521 wpa = 2; in hapd_wps_cred_cb()
523 wpa = 1; in hapd_wps_cred_cb()
[all …]
Dwpa_auth.c599 if (wpa_auth == NULL || !wpa_auth->conf.wpa || sm == NULL) in wpa_auth_sta_associated()
890 if (wpa_auth == NULL || !wpa_auth->conf.wpa || sm == NULL) in wpa_receive()
922 if (sm->wpa == WPA_VERSION_WPA2) { in wpa_receive()
1141 ft = sm->wpa == WPA_VERSION_WPA2 && in wpa_receive()
1477 key->type = sm->wpa == WPA_VERSION_WPA2 ? in __wpa_send_eapol()
1480 if (encr && sm->wpa == WPA_VERSION_WPA2) in __wpa_send_eapol()
1482 if (sm->wpa != WPA_VERSION_WPA2) in __wpa_send_eapol()
1792 if (sm->wpa == WPA_VERSION_WPA) in SM_STATE()
2000 if (sm->wpa == WPA_VERSION_WPA2 && in SM_STATE()
2094 if (sm->wpa == WPA_VERSION_WPA2 && wpa_key_mgmt_ft(sm->wpa_key_mgmt)) { in SM_STATE()
[all …]
Dieee802_1x.c358 suite = wpa_cipher_to_suite(((hapd->conf->wpa & 0x2) || in add_common_radius_sta_attr_rsn()
459 if ((hapd->conf->wpa & 2) && in add_common_radius_sta_attr()
475 if (hapd->conf->wpa && wpa_key_mgmt_ft(hapd->conf->wpa_key_mgmt) && in add_common_radius_sta_attr()
489 if ((hapd->conf->wpa || hapd->conf->osen) && sta->wpa_sm && in add_common_radius_sta_attr()
906 if (!hapd->conf->ieee802_1x && !hapd->conf->wpa && !hapd->conf->osen && in ieee802_1x_receive()
1092 ((hapd->conf->wpa && (sta->flags & WLAN_STA_MAYBE_WPS)) || in ieee802_1x_new_station()
2180 conf.wpa = hapd->conf->wpa; in ieee802_1x_init()
2233 if ((hapd->conf->ieee802_1x || hapd->conf->wpa) && in ieee802_1x_init()
2276 (hapd->conf->ieee802_1x || hapd->conf->wpa)) in ieee802_1x_deinit()
2332 const struct wpa_eapol_key *wpa; in ieee802_1x_eapol_tx_status() local
[all …]
Dap_drv_ops.c259 if (((!hapd->conf->ieee802_1x && !hapd->conf->wpa) || in hostapd_set_sta_flags()
278 params.wpa = hapd->conf->wpa; in hostapd_set_drv_ieee8021x()
281 if ((hapd->conf->wpa & (WPA_PROTO_WPA | WPA_PROTO_RSN)) == in hostapd_set_drv_ieee8021x()
285 else if (hapd->conf->wpa & WPA_PROTO_RSN) in hostapd_set_drv_ieee8021x()
287 else if (hapd->conf->wpa & WPA_PROTO_WPA) in hostapd_set_drv_ieee8021x()
Dieee802_11.c163 if (hapd->conf->wpa) in hostapd_own_capab_info()
999 (hapd->conf->wpa && wpa_key_mgmt_ft(hapd->conf->wpa_key_mgmt) && in handle_auth()
1003 (hapd->conf->wpa && wpa_key_mgmt_sae(hapd->conf->wpa_key_mgmt) && in handle_auth()
1526 if ((hapd->conf->wpa & WPA_PROTO_RSN) && elems.rsn_ie) { in check_assoc_ies()
1529 } else if ((hapd->conf->wpa & WPA_PROTO_WPA) && in check_assoc_ies()
1564 if (hapd->conf->wpa && wpa_ie == NULL) { in check_assoc_ies()
1571 if (hapd->conf->wpa && wpa_ie) { in check_assoc_ies()
1734 if (hapd->conf->mbo_enabled && (hapd->conf->wpa & 2) && in check_assoc_ies()
1908 ((sta->flags & WLAN_STA_MAYBE_WPS) && hapd->conf->wpa)) { in send_assoc_resp()
2675 if (hapd->conf->ieee802_1x || hapd->conf->wpa) in hostapd_set_wds_encryption()
[all …]
/external/autotest/client/site_tests/security_AccountsBaseline/
Dbaseline.group32 pkcs11:!:208:root,ipsec,chronos,chaps,wpa
41 wpa:!:219:root
/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/src/rsn_supp/
DMakefile24 wpa.o \
/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/autotest/server/site_tests/network_WiFi_RoamSuspendSSID/
Dcontrol.wpa7 NAME = 'network_WiFi_RoamSuspendSSID.wpa'
/external/autotest/server/site_tests/network_WiFi_RoamSuspendTimeout/
Dcontrol.wpa6 NAME = 'network_WiFi_RoamSuspendTimeout.wpa'
/external/wpa_supplicant_8/src/eapol_auth/
Deapol_auth_sm.h19 int wpa; member
/external/autotest/client/site_tests/security_SandboxedServices/
Dbaseline6 wpa_supplicant,wpa,No,No,No,No,No

123