/external/wpa_supplicant_6/wpa_supplicant/tests/ |
D | test_wpa.c | 30 struct wpa { struct 56 struct wpa *wpa = ctx; in supp_get_ssid() local 58 return &wpa->ssid; in supp_get_ssid() 64 struct wpa *wpa = ctx; in supp_get_bssid() local 66 os_memcpy(bssid, wpa->auth_addr, ETH_ALEN); in supp_get_bssid() 79 struct wpa *wpa = eloop_data; in auth_eapol_rx() local 82 wpa_receive(wpa->auth_group, wpa->auth, wpa->supp_eapol, in auth_eapol_rx() 83 wpa->supp_eapol_len); in auth_eapol_rx() 90 struct wpa *wpa = ctx; in supp_ether_send() local 96 os_free(wpa->supp_eapol); in supp_ether_send() [all …]
|
/external/wpa_supplicant_8/wpa_supplicant/tests/ |
D | test_wpa.c | 24 struct wpa { struct 50 struct wpa *wpa = ctx; in supp_get_bssid() argument 52 os_memcpy(bssid, wpa->auth_addr, ETH_ALEN); in supp_get_bssid() 65 struct wpa *wpa = eloop_data; in auth_eapol_rx() local 68 wpa_receive(wpa->auth_group, wpa->auth, wpa->supp_eapol, in auth_eapol_rx() 69 wpa->supp_eapol_len); in auth_eapol_rx() 76 struct wpa *wpa = ctx; in supp_ether_send() local 82 os_free(wpa->supp_eapol); in supp_ether_send() 83 wpa->supp_eapol = os_malloc(len); in supp_ether_send() 84 if (wpa->supp_eapol == NULL) in supp_ether_send() [all …]
|
/external/sepolicy/ |
D | wpa_supplicant.te | 1 # wpa - wpa supplicant or equivalent 2 type wpa, domain; 5 init_daemon_domain(wpa) 6 allow wpa kernel:system module_request; 7 allow wpa self:capability { setuid net_admin setgid net_raw }; 8 allow wpa cgroup:dir create_dir_perms; 9 allow wpa self:netlink_route_socket *; 10 allow wpa self:netlink_socket *; 11 allow wpa self:packet_socket *; 12 allow wpa self:udp_socket *; [all …]
|
D | system.te | 90 unix_socket_send(system, wpa, wpa) 156 # Create a socket for receiving info from wpa.
|
/external/wpa_supplicant_8/wpa_supplicant/ |
D | preauth_test.c | 189 rsn_preauth_deinit(wpa_s->wpa); in test_eapol_clean() 190 pmksa_candidate_free(wpa_s->wpa); in test_eapol_clean() 191 wpa_sm_deinit(wpa_s->wpa); in test_eapol_clean() 213 if (!rsn_preauth_in_progress(wpa_s->wpa)) in eapol_test_poll() 255 wpa_s->wpa = wpa_sm_init(ctx); in wpa_init_conf() 256 assert(wpa_s->wpa != NULL); in wpa_init_conf() 257 wpa_sm_set_param(wpa_s->wpa, WPA_PARAM_PROTO, WPA_PROTO_RSN); in wpa_init_conf() 260 wpa_sm_set_ifname(wpa_s->wpa, wpa_s->ifname, NULL); in wpa_init_conf() 270 wpa_sm_set_own_addr(wpa_s->wpa, wpa_s->own_addr); in wpa_init_conf() 345 if (rsn_preauth_init(wpa_s.wpa, bssid, &wpa_s.conf->ssid->eap)) in main() [all …]
|
D | wpa_supplicant.c | 183 wpa_sm_notify_disassoc(wpa_s->wpa); in wpa_supplicant_timeout() 318 wpa_sm_set_ap_wpa_ie(wpa_s->wpa, NULL, 0); in wpa_supplicant_set_non_wpa_policy() 319 wpa_sm_set_ap_rsn_ie(wpa_s->wpa, NULL, 0); in wpa_supplicant_set_non_wpa_policy() 320 wpa_sm_set_assoc_wpa_ie(wpa_s->wpa, NULL, 0); in wpa_supplicant_set_non_wpa_policy() 337 wpa_sm_set_param(wpa_s->wpa, WPA_PARAM_RSN_ENABLED, 0); in wpa_supplicant_set_non_wpa_policy() 338 wpa_sm_set_param(wpa_s->wpa, WPA_PARAM_KEY_MGMT, wpa_s->key_mgmt); in wpa_supplicant_set_non_wpa_policy() 339 wpa_sm_set_param(wpa_s->wpa, WPA_PARAM_PAIRWISE, in wpa_supplicant_set_non_wpa_policy() 341 wpa_sm_set_param(wpa_s->wpa, WPA_PARAM_GROUP, wpa_s->group_cipher); in wpa_supplicant_set_non_wpa_policy() 343 wpa_sm_set_param(wpa_s->wpa, WPA_PARAM_MGMT_GROUP, in wpa_supplicant_set_non_wpa_policy() 347 pmksa_cache_clear_current(wpa_s->wpa); in wpa_supplicant_set_non_wpa_policy() [all …]
|
D | events.c | 154 if (wpa_sm_parse_own_wpa_ie(wpa_s->wpa, &ie) < 0 || in wpa_find_assoc_pmkid() 159 pmksa_set = pmksa_cache_set_current(wpa_s->wpa, in wpa_find_assoc_pmkid() 187 pmksa_candidate_add(wpa_s->wpa, data->pmkid_candidate.bssid, in wpa_supplicant_event_pmkid_candidate() 278 wpa_sm_set_scard_ctx(wpa_s->wpa, wpa_s->scard); in wpa_supplicant_scard_init() 591 int wpa; in wpa_scan_res_match() local 638 wpa = wpa_ie_len > 0 || rsn_ie_len > 0; in wpa_scan_res_match() 641 int check_ssid = wpa ? 1 : (ssid->ssid_len != 0); in wpa_scan_res_match() 655 if (wpa && ssid->ssid_len == 0 && in wpa_scan_res_match() 659 if (!wpa && (ssid->key_mgmt & WPA_KEY_MGMT_WPS)) { in wpa_scan_res_match() 690 if (!wpa && in wpa_scan_res_match() [all …]
|
D | wpas_glue.c | 142 if (pmksa_cache_get_current(wpa_s->wpa) && in wpa_supplicant_eapol_send() 215 wpa_sm_aborted_cached(wpa_s->wpa); in wpa_supplicant_aborted_cached() 335 if (wpa_sm_set_ap_wpa_ie(wpa_s->wpa, ie, ie ? 2 + ie[1] : 0)) in wpa_get_beacon_ie() 339 if (wpa_sm_set_ap_rsn_ie(wpa_s->wpa, ie, ie ? 2 + ie[1] : 0)) in wpa_get_beacon_ie() 821 wpa_s->wpa = wpa_sm_init(ctx); in wpa_supplicant_init_wpa() 822 if (wpa_s->wpa == NULL) { in wpa_supplicant_init_wpa() 851 wpa_sm_set_config(wpa_s->wpa, ssid ? &conf : NULL); in wpa_supplicant_rsn_supp_set_config()
|
D | sme.c | 116 if (pmksa_cache_set_current(wpa_s->wpa, NULL, bss->bssid, in sme_authenticate() 161 wpa_sm_set_ft_params(wpa_s->wpa, ie, ie ? 2 + ie[1] : 0); in sme_authenticate() 164 wpa_ft_prepare_auth_request(wpa_s->wpa, ie); in sme_authenticate() 184 wpa_sm_has_ptk(wpa_s->wpa)) { in sme_authenticate() 412 wpa_sm_set_assoc_wpa_ie(wpa_s->wpa, elems.rsn_ie - 2, in sme_associate() 416 wpa_sm_set_assoc_wpa_ie(wpa_s->wpa, elems.wpa_ie - 2, in sme_associate() 419 wpa_sm_set_assoc_wpa_ie(wpa_s->wpa, NULL, 0); in sme_associate()
|
D | ap.c | 152 bss->wpa = ssid->proto; in wpa_supplicant_conf_ap() 184 if (bss->wpa & 1) in wpa_supplicant_conf_ap() 186 if (bss->wpa & 2) { in wpa_supplicant_conf_ap() 196 if (bss->wpa && bss->ieee802_1x) in wpa_supplicant_conf_ap() 198 else if (bss->wpa) in wpa_supplicant_conf_ap() 236 (!(pairwise & WPA_CIPHER_CCMP) || !(bss->wpa & 2))) in wpa_supplicant_conf_ap() 884 if (conf->wpa == 0) in ap_ctrl_iface_wpa_get_status() 894 conf->wpa)); in ap_ctrl_iface_wpa_get_status()
|
/external/wpa_supplicant_6/wpa_supplicant/ |
D | preauth_test.c | 194 rsn_preauth_deinit(wpa_s->wpa); in test_eapol_clean() 195 pmksa_candidate_free(wpa_s->wpa); in test_eapol_clean() 196 wpa_sm_deinit(wpa_s->wpa); in test_eapol_clean() 218 if (!rsn_preauth_in_progress(wpa_s->wpa)) in eapol_test_poll() 259 wpa_s->wpa = wpa_sm_init(ctx); in wpa_init_conf() 260 assert(wpa_s->wpa != NULL); in wpa_init_conf() 261 wpa_sm_set_param(wpa_s->wpa, WPA_PARAM_PROTO, WPA_PROTO_RSN); in wpa_init_conf() 264 wpa_sm_set_ifname(wpa_s->wpa, wpa_s->ifname, NULL); in wpa_init_conf() 274 wpa_sm_set_own_addr(wpa_s->wpa, wpa_s->own_addr); in wpa_init_conf() 350 if (rsn_preauth_init(wpa_s.wpa, bssid, &wpa_s.conf->ssid->eap)) in main() [all …]
|
D | wpa_supplicant.c | 194 wpa_sm_notify_disassoc(wpa_s->wpa); in wpa_supplicant_timeout() 310 wpa_sm_set_ap_wpa_ie(wpa_s->wpa, NULL, 0); in wpa_supplicant_set_non_wpa_policy() 311 wpa_sm_set_ap_rsn_ie(wpa_s->wpa, NULL, 0); in wpa_supplicant_set_non_wpa_policy() 312 wpa_sm_set_assoc_wpa_ie(wpa_s->wpa, NULL, 0); in wpa_supplicant_set_non_wpa_policy() 329 wpa_sm_set_param(wpa_s->wpa, WPA_PARAM_RSN_ENABLED, 0); in wpa_supplicant_set_non_wpa_policy() 330 wpa_sm_set_param(wpa_s->wpa, WPA_PARAM_KEY_MGMT, wpa_s->key_mgmt); in wpa_supplicant_set_non_wpa_policy() 331 wpa_sm_set_param(wpa_s->wpa, WPA_PARAM_PAIRWISE, in wpa_supplicant_set_non_wpa_policy() 333 wpa_sm_set_param(wpa_s->wpa, WPA_PARAM_GROUP, wpa_s->group_cipher); in wpa_supplicant_set_non_wpa_policy() 335 wpa_sm_set_param(wpa_s->wpa, WPA_PARAM_MGMT_GROUP, in wpa_supplicant_set_non_wpa_policy() 339 pmksa_cache_clear_current(wpa_s->wpa); in wpa_supplicant_set_non_wpa_policy() [all …]
|
D | events.c | 117 if (wpa_sm_parse_own_wpa_ie(wpa_s->wpa, &ie) < 0 || in wpa_find_assoc_pmkid() 122 pmksa_set = pmksa_cache_set_current(wpa_s->wpa, in wpa_find_assoc_pmkid() 149 pmksa_candidate_add(wpa_s->wpa, data->pmkid_candidate.bssid, in wpa_supplicant_event_pmkid_candidate() 238 wpa_sm_set_scard_ctx(wpa_s->wpa, wpa_s->scard); in wpa_supplicant_scard_init() 712 rsn_preauth_scan_results(wpa_s->wpa, wpa_s->scan_res); in wpa_supplicant_event_scan_results() 782 if (wpa_sm_set_assoc_wpa_ie(wpa_s->wpa, p, len)) in wpa_supplicant_event_associnfo() 792 wpa_sm_set_assoc_wpa_ie(wpa_s->wpa, NULL, 0); in wpa_supplicant_event_associnfo() 812 wpa_sm_set_ap_wpa_ie(wpa_s->wpa, p, len); in wpa_supplicant_event_associnfo() 818 wpa_sm_set_ap_rsn_ie(wpa_s->wpa, p, len); in wpa_supplicant_event_associnfo() 826 wpa_sm_set_ap_wpa_ie(wpa_s->wpa, NULL, 0); in wpa_supplicant_event_associnfo() [all …]
|
D | wpas_glue.c | 144 if (pmksa_cache_get_current(wpa_s->wpa) && in wpa_supplicant_eapol_send() 218 wpa_sm_aborted_cached(wpa_s->wpa); in wpa_supplicant_aborted_cached() 326 if (wpa_sm_set_ap_wpa_ie(wpa_s->wpa, ie, ie ? 2 + ie[1] : 0)) in wpa_get_beacon_ie() 330 if (wpa_sm_set_ap_rsn_ie(wpa_s->wpa, ie, ie ? 2 + ie[1] : 0)) in wpa_get_beacon_ie() 612 wpa_s->wpa = wpa_sm_init(ctx); in wpa_supplicant_init_wpa() 613 if (wpa_s->wpa == NULL) { in wpa_supplicant_init_wpa() 641 wpa_sm_set_config(wpa_s->wpa, ssid ? &conf : NULL); in wpa_supplicant_rsn_supp_set_config()
|
/external/wpa_supplicant_6/wpa_supplicant/examples/ |
D | wpas-test.py | 68 wpa = "no" 70 wpa = "yes" 83 …print " %s :: ssid='%s' wpa=%s wpa2=%s quality=%d%% rate=%d freq=%d" % (bssid, ssid, wpa, …
|
/external/wpa_supplicant_8/wpa_supplicant/examples/ |
D | wpas-test.py | 68 wpa = "no" 70 wpa = "yes" 83 …print " %s :: ssid='%s' wpa=%s wpa2=%s quality=%d%% rate=%d freq=%d" % (bssid, ssid, wpa, …
|
D | wpas-dbus-new.py | 57 wpa = "no" 59 wpa = "yes" 76 …print " %s :: ssid='%s' wpa=%s wpa2=%s signal=%d rate=%d freq=%d" % (bssid, ssid, wpa, wpa…
|
D | wpas-dbus-new-signals.py | 64 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/ |
D | wpa_auth.c | 547 if (wpa_auth == NULL || !wpa_auth->conf.wpa || sm == NULL) in wpa_auth_sta_associated() 769 if (wpa_auth == NULL || !wpa_auth->conf.wpa || sm == NULL) in wpa_receive() 791 if (sm->wpa == WPA_VERSION_WPA2) { in wpa_receive() 981 ft = sm->wpa == WPA_VERSION_WPA2 && in wpa_receive() 1280 key->type = sm->wpa == WPA_VERSION_WPA2 ? in __wpa_send_eapol() 1283 if (encr && sm->wpa == WPA_VERSION_WPA2) in __wpa_send_eapol() 1285 if (sm->wpa != WPA_VERSION_WPA2) in __wpa_send_eapol() 1565 if (sm->wpa == WPA_VERSION_WPA) in SM_STATE() 1734 if (sm->wpa == WPA_VERSION_WPA2 && in SM_STATE() 1818 if (sm->wpa == WPA_VERSION_WPA2 && wpa_key_mgmt_ft(sm->wpa_key_mgmt)) { in SM_STATE() [all …]
|
D | ap_list.h | 32 int wpa; member
|
D | wpa_auth_ie.c | 330 if (wpa_auth->conf.wpa & WPA_PROTO_RSN) { in wpa_auth_gen_wpa_ie() 346 if (wpa_auth->conf.wpa & WPA_PROTO_WPA) { in wpa_auth_gen_wpa_ie() 423 if (!(wpa_auth->conf.wpa & version)) { in wpa_validate_wpa_ie() 615 sm->wpa = WPA_VERSION_WPA2; in wpa_validate_wpa_ie() 617 sm->wpa = WPA_VERSION_WPA; in wpa_validate_wpa_ie()
|
/external/wpa_supplicant_6/wpa_supplicant/wpa_gui/ |
D | networkconfig.ui.h | 336 int wpa = 0; in paramsFromConfig() local 340 wpa = 2; in paramsFromConfig() 342 wpa = 1; in paramsFromConfig() 351 auth = wpa & 2 ? AUTH_WPA2_EAP : AUTH_WPA_EAP; in paramsFromConfig() 353 auth = wpa & 2 ? AUTH_WPA2_PSK : AUTH_WPA_PSK; in paramsFromConfig()
|
/external/wpa_supplicant_8/src/drivers/ |
D | driver_bsd.c | 445 wpa_printf(MSG_DEBUG, "%s: enable WPA= 0x%x", __func__, params->wpa); in bsd_configure_wpa() 446 if (set80211param(priv, IEEE80211_IOC_WPA, params->wpa)) { in bsd_configure_wpa() 447 printf("Unable to set WPA to %u\n", params->wpa); in bsd_configure_wpa() 463 if (!params->wpa && !params->ieee802_1x) { in bsd_set_ieee8021x() 468 if (params->wpa && bsd_configure_wpa(priv, params) != 0) { in bsd_set_ieee8021x() 474 (params->wpa ? IEEE80211_AUTH_WPA : IEEE80211_AUTH_8021X))) { in bsd_set_ieee8021x() 934 wpa_driver_bsd_set_wpa_internal(void *priv, int wpa, int privacy) in wpa_driver_bsd_set_wpa_internal() argument 939 __FUNCTION__, wpa, privacy); in wpa_driver_bsd_set_wpa_internal() 941 if (!wpa && wpa_driver_bsd_set_wpa_ie(priv, NULL, 0) < 0) in wpa_driver_bsd_set_wpa_internal() 945 if (set80211param(priv, IEEE80211_IOC_WPA, wpa) < 0) in wpa_driver_bsd_set_wpa_internal()
|
/external/wpa_supplicant_8/wpa_supplicant/wpa_gui-qt4/ |
D | networkconfig.cpp | 524 int wpa = 0; in paramsFromConfig() local 528 wpa = 2; in paramsFromConfig() 530 wpa = 1; in paramsFromConfig() 539 auth = wpa & 2 ? AUTH_WPA2_EAP : AUTH_WPA_EAP; in paramsFromConfig() 541 auth = wpa & 2 ? AUTH_WPA2_PSK : AUTH_WPA_PSK; in paramsFromConfig()
|
/external/wpa_supplicant_6/wpa_supplicant/wpa_gui-qt4/ |
D | networkconfig.cpp | 511 int wpa = 0; in paramsFromConfig() local 515 wpa = 2; in paramsFromConfig() 517 wpa = 1; in paramsFromConfig() 526 auth = wpa & 2 ? AUTH_WPA2_EAP : AUTH_WPA_EAP; in paramsFromConfig() 528 auth = wpa & 2 ? AUTH_WPA2_PSK : AUTH_WPA_PSK; in paramsFromConfig()
|