Home
last modified time | relevance | path

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

123

/external/wpa_supplicant_8/wpa_supplicant/tests/
Dtest_wpa.c20 struct wpa { struct
46 struct wpa *wpa = ctx; in supp_get_bssid() local
48 os_memcpy(bssid, wpa->auth_addr, ETH_ALEN); in supp_get_bssid()
61 struct wpa *wpa = eloop_data; in auth_eapol_rx() local
64 wpa_receive(wpa->auth_group, wpa->auth, wpa->supp_eapol, in auth_eapol_rx()
65 wpa->supp_eapol_len); in auth_eapol_rx()
72 struct wpa *wpa = ctx; in supp_ether_send() local
78 os_free(wpa->supp_eapol); in supp_ether_send()
79 wpa->supp_eapol = os_malloc(len); in supp_ether_send()
80 if (wpa->supp_eapol == NULL) in supp_ether_send()
[all …]
/external/sepolicy/
Dwpa.te1 # wpa - wpa supplicant or equivalent
2 type wpa, domain;
5 init_daemon_domain(wpa)
7 net_domain(wpa)
9 allow wpa kernel:system module_request;
10 allow wpa self:capability { setuid net_admin setgid net_raw };
11 allow wpa cgroup:dir create_dir_perms;
12 allow wpa self:netlink_route_socket nlmsg_write;
13 allow wpa self:netlink_socket create_socket_perms;
14 allow wpa self:packet_socket create_socket_perms;
[all …]
/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.c317 if (wpa_sm_parse_own_wpa_ie(wpa_s->wpa, &ie) < 0 || in wpa_find_assoc_pmkid()
322 pmksa_set = pmksa_cache_set_current(wpa_s->wpa, in wpa_find_assoc_pmkid()
350 pmksa_candidate_add(wpa_s->wpa, data->pmkid_candidate.bssid, in wpa_supplicant_event_pmkid_candidate()
439 wpa_sm_set_scard_ctx(wpa_s->wpa, wpa_s->scard); in wpa_supplicant_scard_init()
817 int wpa; in wpa_scan_res_match() local
878 wpa = wpa_ie_len > 0 || rsn_ie_len > 0; in wpa_scan_res_match()
881 int check_ssid = wpa ? 1 : (ssid->ssid_len != 0); in wpa_scan_res_match()
903 if (wpa && ssid->ssid_len == 0 && in wpa_scan_res_match()
907 if (!wpa && (ssid->key_mgmt & WPA_KEY_MGMT_WPS)) { in wpa_scan_res_match()
956 if (!osen && !wpa && in wpa_scan_res_match()
[all …]
Dwpa_supplicant.c195 wpa_sm_notify_disassoc(wpa_s->wpa); in wpa_supplicant_timeout()
350 wpa_sm_set_ap_wpa_ie(wpa_s->wpa, NULL, 0); in wpa_supplicant_set_non_wpa_policy()
351 wpa_sm_set_ap_rsn_ie(wpa_s->wpa, NULL, 0); in wpa_supplicant_set_non_wpa_policy()
352 wpa_sm_set_assoc_wpa_ie(wpa_s->wpa, NULL, 0); in wpa_supplicant_set_non_wpa_policy()
369 wpa_sm_set_param(wpa_s->wpa, WPA_PARAM_RSN_ENABLED, 0); in wpa_supplicant_set_non_wpa_policy()
370 wpa_sm_set_param(wpa_s->wpa, WPA_PARAM_KEY_MGMT, wpa_s->key_mgmt); in wpa_supplicant_set_non_wpa_policy()
371 wpa_sm_set_param(wpa_s->wpa, WPA_PARAM_PAIRWISE, in wpa_supplicant_set_non_wpa_policy()
373 wpa_sm_set_param(wpa_s->wpa, WPA_PARAM_GROUP, wpa_s->group_cipher); in wpa_supplicant_set_non_wpa_policy()
375 wpa_sm_set_param(wpa_s->wpa, WPA_PARAM_MGMT_GROUP, in wpa_supplicant_set_non_wpa_policy()
379 pmksa_cache_clear_current(wpa_s->wpa); in wpa_supplicant_set_non_wpa_policy()
[all …]
Dsme.c300 if (pmksa_cache_set_current(wpa_s->wpa, NULL, bss->bssid, in sme_send_authentication()
356 wpa_sm_set_ft_params(wpa_s->wpa, ie, ie ? 2 + ie[1] : 0); in sme_send_authentication()
359 wpa_ft_prepare_auth_request(wpa_s->wpa, ie); in sme_send_authentication()
379 wpa_sm_has_ptk(wpa_s->wpa)) { in sme_send_authentication()
472 pmksa_cache_set_current(wpa_s->wpa, NULL, bss->bssid, ssid, 0) == 0) in sme_send_authentication()
798 wpa_sm_set_pmk(wpa_s->wpa, wpa_s->sme.sae.pmk, PMK_LEN, in sme_event_auth()
842 if (wpa_ft_process_response(wpa_s->wpa, data->auth.ies, in sme_event_auth()
933 wpa_sm_set_assoc_wpa_ie(wpa_s->wpa, elems.rsn_ie - 2, in sme_associate()
937 wpa_sm_set_assoc_wpa_ie(wpa_s->wpa, elems.wpa_ie - 2, in sme_associate()
941 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()
1080 wpa_s->wpa = wpa_sm_init(ctx); in wpa_supplicant_init_wpa()
1081 if (wpa_s->wpa == NULL) { in wpa_supplicant_init_wpa()
1128 wpa_sm_set_config(wpa_s->wpa, ssid ? &conf : NULL); in wpa_supplicant_rsn_supp_set_config()
Dap.c233 bss->wpa = ssid->proto; in wpa_supplicant_conf_ap()
287 if ((bss->wpa & 2) && bss->rsn_pairwise == 0) in wpa_supplicant_conf_ap()
289 bss->wpa_group = wpa_select_ap_group_cipher(bss->wpa, bss->wpa_pairwise, in wpa_supplicant_conf_ap()
292 if (bss->wpa && bss->ieee802_1x) in wpa_supplicant_conf_ap()
294 else if (bss->wpa) in wpa_supplicant_conf_ap()
321 if (bss->wpa_group_rekey < 86400 && (bss->wpa & 2) && in wpa_supplicant_conf_ap()
349 !(bss->wpa & 2))) in wpa_supplicant_conf_ap()
1101 if (conf->wpa == 0) in ap_ctrl_iface_wpa_get_status()
1111 conf->wpa)); in ap_ctrl_iface_wpa_get_status()
Dctrl_iface.c312 if (wpa_sm_set_param(wpa_s->wpa, RSNA_PMK_LIFETIME, in wpa_supplicant_ctrl_iface_set()
317 if (wpa_sm_set_param(wpa_s->wpa, RSNA_PMK_REAUTH_THRESHOLD, in wpa_supplicant_ctrl_iface_set()
321 if (wpa_sm_set_param(wpa_s->wpa, RSNA_SA_TIMEOUT, atoi(value))) in wpa_supplicant_ctrl_iface_set()
367 wpa_tdls_enable(wpa_s->wpa, !disabled); in wpa_supplicant_ctrl_iface_set()
527 rsn_preauth_deinit(wpa_s->wpa); in wpa_supplicant_ctrl_iface_preauth()
528 if (rsn_preauth_init(wpa_s->wpa, bssid, ssid ? &ssid->eap : NULL)) in wpa_supplicant_ctrl_iface_preauth()
552 return wpa_sm_stkstart(wpa_s->wpa, peer); in wpa_supplicant_ctrl_iface_stkstart()
574 if (wpa_tdls_is_external_setup(wpa_s->wpa)) in wpa_supplicant_ctrl_iface_tdls_discover()
575 ret = wpa_tdls_send_discovery_request(wpa_s->wpa, peer); in wpa_supplicant_ctrl_iface_tdls_discover()
599 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.c715 if (bss->wpa) { in hostapd_config_check_bss()
733 if (full_config && bss->wpa && in hostapd_config_check_bss()
741 if (full_config && bss->wpa && (bss->wpa_key_mgmt & WPA_KEY_MGMT_PSK) && in hostapd_config_check_bss()
794 if (full_config && conf->ieee80211n && bss->wpa && in hostapd_config_check_bss()
814 bss->ssid.wep.keys_set && bss->wpa == 0) { in hostapd_config_check_bss()
820 if (full_config && bss->wps_state && bss->wpa && in hostapd_config_check_bss()
821 (!(bss->wpa & 2) || in hostapd_config_check_bss()
831 (!(bss->wpa & 2) || in hostapd_config_check_bss()
921 if ((bss->wpa & 2) && bss->rsn_pairwise == 0) in hostapd_set_security_params()
923 bss->wpa_group = wpa_select_ap_group_cipher(bss->wpa, bss->wpa_pairwise, in hostapd_set_security_params()
[all …]
Dwpa_auth.c598 if (wpa_auth == NULL || !wpa_auth->conf.wpa || sm == NULL) in wpa_auth_sta_associated()
885 if (wpa_auth == NULL || !wpa_auth->conf.wpa || sm == NULL) in wpa_receive()
917 if (sm->wpa == WPA_VERSION_WPA2) { in wpa_receive()
1136 ft = sm->wpa == WPA_VERSION_WPA2 && in wpa_receive()
1472 key->type = sm->wpa == WPA_VERSION_WPA2 ? in __wpa_send_eapol()
1475 if (encr && sm->wpa == WPA_VERSION_WPA2) in __wpa_send_eapol()
1477 if (sm->wpa != WPA_VERSION_WPA2) in __wpa_send_eapol()
1777 if (sm->wpa == WPA_VERSION_WPA) in SM_STATE()
1964 if (sm->wpa == WPA_VERSION_WPA2 && in SM_STATE()
2053 if (sm->wpa == WPA_VERSION_WPA2 && wpa_key_mgmt_ft(sm->wpa_key_mgmt)) { in SM_STATE()
[all …]
Dwpa_auth_ie.c382 if (wpa_auth->conf.wpa == WPA_PROTO_OSEN) { in wpa_auth_gen_wpa_ie()
385 if (wpa_auth->conf.wpa & WPA_PROTO_RSN) { in wpa_auth_gen_wpa_ie()
401 if (wpa_auth->conf.wpa & WPA_PROTO_WPA) { in wpa_auth_gen_wpa_ie()
478 if (!(wpa_auth->conf.wpa & version)) { in wpa_validate_wpa_ie()
662 sm->wpa = WPA_VERSION_WPA2; in wpa_validate_wpa_ie()
664 sm->wpa = WPA_VERSION_WPA; in wpa_validate_wpa_ie()
730 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
512 wpa = 3; in hapd_wps_cred_cb()
514 wpa = 2; in hapd_wps_cred_cb()
516 wpa = 1; in hapd_wps_cred_cb()
[all …]
Dap_drv_ops.c271 if (((!hapd->conf->ieee802_1x && !hapd->conf->wpa) || in hostapd_set_sta_flags()
290 params.wpa = hapd->conf->wpa; in hostapd_set_drv_ieee8021x()
293 if ((hapd->conf->wpa & (WPA_PROTO_WPA | WPA_PROTO_RSN)) == in hostapd_set_drv_ieee8021x()
297 else if (hapd->conf->wpa & WPA_PROTO_RSN) in hostapd_set_drv_ieee8021x()
299 else if (hapd->conf->wpa & WPA_PROTO_WPA) in hostapd_set_drv_ieee8021x()
Dieee802_1x.c349 suite = wpa_cipher_to_suite(((hapd->conf->wpa & 0x2) || in add_common_radius_sta_attr_rsn()
443 if (hapd->conf->wpa && wpa_key_mgmt_ft(hapd->conf->wpa_key_mgmt) && in add_common_radius_sta_attr()
457 if ((hapd->conf->wpa || hapd->conf->osen) && sta->wpa_sm && in add_common_radius_sta_attr()
847 if (!hapd->conf->ieee802_1x && !hapd->conf->wpa && !hapd->conf->osen && in ieee802_1x_receive()
1026 ((hapd->conf->wpa && (sta->flags & WLAN_STA_MAYBE_WPS)) || in ieee802_1x_new_station()
2088 conf.wpa = hapd->conf->wpa; in ieee802_1x_init()
2140 if ((hapd->conf->ieee802_1x || hapd->conf->wpa) && in ieee802_1x_init()
2183 (hapd->conf->ieee802_1x || hapd->conf->wpa)) in ieee802_1x_deinit()
2239 const struct wpa_eapol_key *wpa; in ieee802_1x_eapol_tx_status() local
2240 wpa = (const struct wpa_eapol_key *) pos; in ieee802_1x_eapol_tx_status()
[all …]
Dbeacon.c959 if ((hapd->conf->wpa & (WPA_PROTO_WPA | WPA_PROTO_RSN)) == in ieee802_11_build_ap_params()
963 else if (hapd->conf->wpa & WPA_PROTO_RSN) in ieee802_11_build_ap_params()
965 else if (hapd->conf->wpa & WPA_PROTO_WPA) in ieee802_11_build_ap_params()
970 params->wpa_version = hapd->conf->wpa; in ieee802_11_build_ap_params()
971 params->privacy = hapd->conf->ssid.wep.keys_set || hapd->conf->wpa || in ieee802_11_build_ap_params()
Dwpa_auth_glue.c35 wconf->wpa = conf->wpa; in hostapd_wpa_auth_conf()
80 wconf->wpa = WPA_PROTO_OSEN; in hostapd_wpa_auth_conf()
Dieee802_11.c160 if (hapd->conf->wpa) in hostapd_own_capab_info()
936 (hapd->conf->wpa && wpa_key_mgmt_ft(hapd->conf->wpa_key_mgmt) && in handle_auth()
940 (hapd->conf->wpa && wpa_key_mgmt_sae(hapd->conf->wpa_key_mgmt) && in handle_auth()
1341 if ((hapd->conf->wpa & WPA_PROTO_RSN) && elems.rsn_ie) { in check_assoc_ies()
1344 } else if ((hapd->conf->wpa & WPA_PROTO_WPA) && in check_assoc_ies()
1379 if (hapd->conf->wpa && wpa_ie == NULL) { in check_assoc_ies()
1386 if (hapd->conf->wpa && wpa_ie) { in check_assoc_ies()
1636 ((sta->flags & WLAN_STA_MAYBE_WPS) && hapd->conf->wpa)) { in send_assoc_resp()
2330 if (hapd->conf->ieee802_1x || hapd->conf->wpa) in hostapd_set_wds_encryption()
2400 if ((!hapd->conf->ieee802_1x && !hapd->conf->wpa && !hapd->conf->osen) || in handle_assoc_cb()
/external/wpa_supplicant_8/src/drivers/
Ddriver_bsd.c467 wpa_printf(MSG_DEBUG, "%s: enable WPA= 0x%x", __func__, params->wpa); in bsd_configure_wpa()
468 if (set80211param(priv, IEEE80211_IOC_WPA, params->wpa)) { in bsd_configure_wpa()
469 wpa_printf(MSG_INFO, "Unable to set WPA to %u", params->wpa); in bsd_configure_wpa()
485 if (!params->wpa && !params->ieee802_1x) { in bsd_set_ieee8021x()
490 if (params->wpa && bsd_configure_wpa(priv, params) != 0) { in bsd_set_ieee8021x()
496 (params->wpa ? IEEE80211_AUTH_WPA : IEEE80211_AUTH_8021X))) { in bsd_set_ieee8021x()
963 wpa_driver_bsd_set_wpa_internal(void *priv, int wpa, int privacy) in wpa_driver_bsd_set_wpa_internal() argument
968 __FUNCTION__, wpa, privacy); in wpa_driver_bsd_set_wpa_internal()
970 if (!wpa && wpa_driver_bsd_set_wpa_ie(priv, NULL, 0) < 0) in wpa_driver_bsd_set_wpa_internal()
974 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/wpa_supplicant_8/src/eapol_auth/
Deapol_auth_sm.h19 int wpa; member

123