/external/wpa_supplicant_8/wpa_supplicant/ |
D | scan.c | 29 struct wpa_ssid *ssid; in wpa_supplicant_gen_assoc_event() local 32 ssid = wpa_supplicant_get_ssid(wpa_s); in wpa_supplicant_gen_assoc_event() 33 if (ssid == NULL) in wpa_supplicant_gen_assoc_event() 37 wpa_s->current_ssid = ssid; in wpa_supplicant_gen_assoc_event() 53 struct wpa_ssid *ssid; in wpas_wps_in_use() local 56 for (ssid = wpa_s->conf->ssid; ssid; ssid = ssid->next) { in wpas_wps_in_use() 57 if (!(ssid->key_mgmt & WPA_KEY_MGMT_WPS)) in wpas_wps_in_use() 61 *req_type = wpas_wps_get_req_type(ssid); in wpas_wps_in_use() 62 if (!ssid->eap.phase1) in wpas_wps_in_use() 65 if (os_strstr(ssid->eap.phase1, "pbc=1")) in wpas_wps_in_use() [all …]
|
D | wps_supplicant.c | 88 struct wpa_ssid *ssid = NULL; in wpas_wps_eapol_cb() local 108 bss = wpa_supplicant_pick_network(wpa_s, &ssid); in wpas_wps_eapol_cb() 142 struct wpa_ssid *ssid, in wpas_wps_security_workaround() argument 162 if (ssid->ssid == NULL) in wpas_wps_security_workaround() 164 bss = wpa_bss_get(wpa_s, cred->mac_addr, ssid->ssid, ssid->ssid_len); in wpas_wps_security_workaround() 185 if (ie == NULL && (ssid->proto & WPA_PROTO_WPA) && in wpas_wps_security_workaround() 186 (ssid->pairwise_cipher & WPA_CIPHER_TKIP)) { in wpas_wps_security_workaround() 198 if (ccmp && !(ssid->pairwise_cipher & WPA_CIPHER_CCMP) && in wpas_wps_security_workaround() 199 (ssid->pairwise_cipher & WPA_CIPHER_TKIP) && in wpas_wps_security_workaround() 204 ssid->pairwise_cipher |= WPA_CIPHER_CCMP; in wpas_wps_security_workaround() [all …]
|
D | config.c | 34 int (*parser)(const struct parse_data *data, struct wpa_ssid *ssid, 40 char * (*writer)(const struct parse_data *data, struct wpa_ssid *ssid); 57 struct wpa_ssid *ssid, in wpa_config_parse_str() argument 104 dst = (char **) (((u8 *) ssid) + (long) data->param1); in wpa_config_parse_str() 105 dst_len = (size_t *) (((u8 *) ssid) + (long) data->param2); in wpa_config_parse_str() 158 struct wpa_ssid *ssid) in wpa_config_write_str() argument 163 src = (char **) (((u8 *) ssid) + (long) data->param1); in wpa_config_write_str() 168 len = *((size_t *) (((u8 *) ssid) + (long) data->param2)); in wpa_config_write_str() 178 struct wpa_ssid *ssid, in wpa_config_parse_int() argument 184 dst = (int *) (((u8 *) ssid) + (long) data->param1); in wpa_config_parse_int() [all …]
|
D | wpa_supplicant.c | 111 int wpa_set_wep_keys(struct wpa_supplicant *wpa_s, struct wpa_ssid *ssid) in wpa_set_wep_keys() argument 116 if (ssid->wep_key_len[i] == 0) in wpa_set_wep_keys() 121 i, i == ssid->wep_tx_keyidx, NULL, 0, in wpa_set_wep_keys() 122 ssid->wep_key[i], ssid->wep_key_len[i]); in wpa_set_wep_keys() 130 struct wpa_ssid *ssid) in wpa_supplicant_set_wpa_none_key() argument 140 if (ssid->mode != WPAS_MODE_IBSS) { in wpa_supplicant_set_wpa_none_key() 142 "IBSS/ad-hoc) for WPA-None", ssid->mode); in wpa_supplicant_set_wpa_none_key() 146 if (!ssid->psk_set) { in wpa_supplicant_set_wpa_none_key() 154 os_memcpy(key, ssid->psk, 16); in wpa_supplicant_set_wpa_none_key() 159 os_memcpy(key, ssid->psk, 16); in wpa_supplicant_set_wpa_none_key() [all …]
|
D | ap.c | 45 struct wpa_ssid *ssid, in wpa_supplicant_conf_ap() argument 54 if (ssid->frequency == 0) { in wpa_supplicant_conf_ap() 58 } else if (ssid->frequency >= 2412 && ssid->frequency <= 2472) { in wpa_supplicant_conf_ap() 60 conf->channel = (ssid->frequency - 2407) / 5; in wpa_supplicant_conf_ap() 61 } else if ((ssid->frequency >= 5180 && ssid->frequency <= 5240) || in wpa_supplicant_conf_ap() 62 (ssid->frequency >= 5745 && ssid->frequency <= 5825)) { in wpa_supplicant_conf_ap() 64 conf->channel = (ssid->frequency - 5000) / 5; in wpa_supplicant_conf_ap() 65 } else if (ssid->frequency >= 56160 + 2160 * 1 && in wpa_supplicant_conf_ap() 66 ssid->frequency <= 56160 + 2160 * 4) { in wpa_supplicant_conf_ap() 68 conf->channel = (ssid->frequency - 56160) / 2160; in wpa_supplicant_conf_ap() [all …]
|
D | wpa_supplicant.conf | 906 ssid="simple" 914 ssid="second ssid" 922 ssid="example" 933 ssid="example" 945 ssid="example" 962 ssid="example" 976 ssid="example" 989 ssid="example" 1002 ssid="example" 1020 ssid="example" [all …]
|
D | config_file.c | 123 static int wpa_config_validate_network(struct wpa_ssid *ssid, int line) in wpa_config_validate_network() argument 127 if (ssid->passphrase) { in wpa_config_validate_network() 128 if (ssid->psk_set) { in wpa_config_validate_network() 133 wpa_config_update_psk(ssid); in wpa_config_validate_network() 136 if ((ssid->group_cipher & WPA_CIPHER_CCMP) && in wpa_config_validate_network() 137 !(ssid->pairwise_cipher & WPA_CIPHER_CCMP) && in wpa_config_validate_network() 138 !(ssid->pairwise_cipher & WPA_CIPHER_NONE)) { in wpa_config_validate_network() 143 ssid->group_cipher &= ~WPA_CIPHER_CCMP; in wpa_config_validate_network() 152 struct wpa_ssid *ssid; in wpa_config_read_network() local 158 ssid = os_zalloc(sizeof(*ssid)); in wpa_config_read_network() [all …]
|
D | config_winreg.c | 289 struct wpa_ssid *ssid; in wpa_config_read_network() local 300 ssid = os_zalloc(sizeof(*ssid)); in wpa_config_read_network() 301 if (ssid == NULL) { in wpa_config_read_network() 305 ssid->id = id; in wpa_config_read_network() 307 wpa_config_set_network_defaults(ssid); in wpa_config_read_network() 337 if (wpa_config_set(ssid, (char *) name, (char *) data, 0) < 0) in wpa_config_read_network() 343 if (ssid->passphrase) { in wpa_config_read_network() 344 if (ssid->psk_set) { in wpa_config_read_network() 349 wpa_config_update_psk(ssid); in wpa_config_read_network() 352 if ((ssid->group_cipher & WPA_CIPHER_CCMP) && in wpa_config_read_network() [all …]
|
D | p2p_supplicant.c | 176 params.ssids[0].ssid = (u8 *) P2P_WILDCARD_SSID; in wpas_p2p_scan() 256 const u8 *ssid, in wpas_get_p2p_group() argument 262 for (s = wpa_s->conf->ssid; s; s = s->next) { in wpas_get_p2p_group() 265 os_memcmp(ssid, s->ssid, ssid_len) != 0) in wpas_get_p2p_group() 283 struct wpa_ssid *ssid; in wpas_p2p_group_delete() local 287 ssid = wpa_s->current_ssid; in wpas_p2p_group_delete() 288 if (ssid == NULL) { in wpas_p2p_group_delete() 294 ssid = wpa_s->conf->ssid; in wpas_p2p_group_delete() 295 while (ssid) { in wpas_p2p_group_delete() 296 if (ssid->p2p_group && ssid->disabled != 2) in wpas_p2p_group_delete() [all …]
|
D | interworking.c | 721 static int set_root_nai(struct wpa_ssid *ssid, const char *imsi, char prefix) in set_root_nai() argument 726 return wpa_config_set_quoted(ssid, "identity", nai); in set_root_nai() 733 struct wpa_ssid *ssid) in interworking_set_hs20_params() argument 735 if (wpa_config_set(ssid, "key_mgmt", in interworking_set_hs20_params() 739 if (wpa_config_set(ssid, "proto", "RSN", 0) < 0) in interworking_set_hs20_params() 741 if (wpa_config_set(ssid, "pairwise", "CCMP", 0) < 0) in interworking_set_hs20_params() 752 struct wpa_ssid *ssid; in interworking_connect_3gpp() local 767 ssid = wpa_config_add_network(wpa_s->conf); in interworking_connect_3gpp() 768 if (ssid == NULL) in interworking_connect_3gpp() 770 ssid->parent_cred = cred; in interworking_connect_3gpp() [all …]
|
D | events.c | 51 struct wpa_ssid *ssid) in wpas_temp_disabled() argument 55 if (ssid == NULL || ssid->disabled_until.sec == 0) in wpas_temp_disabled() 59 if (ssid->disabled_until.sec > now.sec) in wpas_temp_disabled() 60 return ssid->disabled_until.sec - now.sec; in wpas_temp_disabled() 62 wpas_clear_temp_disabled(wpa_s, ssid, 0); in wpas_temp_disabled() 70 struct wpa_ssid *ssid, *old_ssid; in wpa_supplicant_select_config() local 78 ssid = wpa_supplicant_get_ssid(wpa_s); in wpa_supplicant_select_config() 79 if (ssid == NULL) { in wpa_supplicant_select_config() 85 if (wpas_network_disabled(wpa_s, ssid)) { in wpa_supplicant_select_config() 91 disallowed_ssid(wpa_s, ssid->ssid, ssid->ssid_len)) { in wpa_supplicant_select_config() [all …]
|
D | notify.c | 97 wpa_s->current_ssid && wpa_s->current_ssid->ssid ? in wpas_notify_state_changed() 98 wpa_ssid_txt(wpa_s->current_ssid->ssid, in wpas_notify_state_changed() 135 struct wpa_ssid *ssid) in wpas_notify_network_enabled_changed() argument 137 wpas_dbus_signal_network_enabled_changed(wpa_s, ssid); in wpas_notify_network_enabled_changed() 142 struct wpa_ssid *ssid) in wpas_notify_network_selected() argument 144 wpas_dbus_signal_network_selected(wpa_s, ssid->id); in wpas_notify_network_selected() 149 struct wpa_ssid *ssid, in wpas_notify_network_request() argument 153 wpas_dbus_signal_network_request(wpa_s, ssid, rtype, default_txt); in wpas_notify_network_request() 221 struct wpa_ssid *ssid) in wpas_notify_network_added() argument 230 wpas_dbus_register_network(wpa_s, ssid); in wpas_notify_network_added() [all …]
|
D | wpas_glue.c | 318 struct wpa_ssid *ssid = wpa_s->current_ssid; in wpa_get_beacon_ie() local 324 if (ssid == NULL || in wpa_get_beacon_ie() 325 ((bss->ssid_len == ssid->ssid_len && in wpa_get_beacon_ie() 326 os_memcmp(bss->ssid, ssid->ssid, ssid->ssid_len) == 0) || in wpa_get_beacon_ie() 327 ssid->ssid_len == 0)) { in wpa_get_beacon_ie() 501 params.ssid = bss->ssid; in wpa_supplicant_mark_authenticated() 663 struct wpa_ssid *ssid = wpa_s->current_ssid; in wpa_supplicant_eap_param_needed() local 669 if (ssid == NULL) in wpa_supplicant_eap_param_needed() 672 wpas_notify_network_request(wpa_s, ssid, field, default_txt); in wpa_supplicant_eap_param_needed() 684 buflen = 100 + os_strlen(txt) + ssid->ssid_len; in wpa_supplicant_eap_param_needed() [all …]
|
D | sme.c | 85 struct wpa_ssid *ssid, in sme_auth_build_sae_commit() argument 91 if (ssid->passphrase == NULL) { in sme_auth_build_sae_commit() 102 (u8 *) ssid->passphrase, in sme_auth_build_sae_commit() 103 os_strlen(ssid->passphrase), in sme_auth_build_sae_commit() 141 struct wpa_bss *bss, struct wpa_ssid *ssid, in sme_send_authentication() argument 170 params.ssid = bss->ssid; in sme_send_authentication() 172 params.p2p = ssid->p2p_group; in sme_send_authentication() 175 os_memcmp(wpa_s->sme.ssid, params.ssid, params.ssid_len) != 0) in sme_send_authentication() 179 os_memcpy(wpa_s->sme.ssid, params.ssid, params.ssid_len); in sme_send_authentication() 184 if (ssid->key_mgmt & WPA_KEY_MGMT_IEEE8021X_NO_WPA) { in sme_send_authentication() [all …]
|
D | config_none.c | 39 struct wpa_ssid *ssid; in wpa_config_write() local 47 for (ssid = config->ssid; ssid; ssid = ssid->next) { in wpa_config_write()
|
D | config.h | 201 u8 ssid[MAX_SSID_LEN]; member 239 struct wpa_ssid *ssid; member 862 void wpa_config_free(struct wpa_config *ssid); 863 void wpa_config_free_ssid(struct wpa_ssid *ssid); 870 void wpa_config_set_network_defaults(struct wpa_ssid *ssid); 871 int wpa_config_set(struct wpa_ssid *ssid, const char *var, const char *value, 873 int wpa_config_set_quoted(struct wpa_ssid *ssid, const char *var, 875 char ** wpa_config_get_all(struct wpa_ssid *ssid, int get_keys); 876 char * wpa_config_get(struct wpa_ssid *ssid, const char *var); 877 char * wpa_config_get_no_key(struct wpa_ssid *ssid, const char *var); [all …]
|
D | wpa_supplicant_i.h | 285 u8 ssid[32]; member 507 u8 ssid[32]; member 698 struct wpa_supplicant *wpa_s, struct wpa_ssid *ssid, 701 struct wpa_supplicant *wpa_s, struct wpa_ssid *ssid, 704 int wpa_set_wep_keys(struct wpa_supplicant *wpa_s, struct wpa_ssid *ssid); 712 struct wpa_bss *bss, struct wpa_ssid *ssid, 716 struct wpa_ssid *ssid); 718 struct wpa_ssid *ssid); 733 struct wpa_ssid *ssid); 735 struct wpa_ssid *ssid); [all …]
|
D | bss.c | 196 wpa_ssid_txt(bss->ssid, bss->ssid_len), reason); in wpa_bss_remove() 212 const u8 *ssid, size_t ssid_len) in wpa_bss_get() argument 220 os_memcmp(bss->ssid, ssid, ssid_len) == 0) in wpa_bss_get() 264 struct wpa_ssid *ssid; in wpa_bss_known() local 266 for (ssid = wpa_s->conf->ssid; ssid; ssid = ssid->next) { in wpa_bss_known() 267 if (ssid->ssid == NULL || ssid->ssid_len == 0) in wpa_bss_known() 269 if (ssid->ssid_len == bss->ssid_len && in wpa_bss_known() 270 os_memcmp(ssid->ssid, bss->ssid, ssid->ssid_len) == 0) in wpa_bss_known() 327 const u8 *ssid, size_t ssid_len, in wpa_bss_add() argument 339 os_memcpy(bss->ssid, ssid, ssid_len); in wpa_bss_add() [all …]
|
D | ctrl_iface.c | 55 struct wpa_ssid *ssid; in pno_start() local 69 ssid = wpa_s->conf->ssid; in pno_start() 70 while (ssid) { in pno_start() 71 if (!wpas_network_disabled(wpa_s, ssid)) in pno_start() 73 ssid = ssid->next; in pno_start() 91 ssid = wpa_s->conf->ssid; in pno_start() 92 while (ssid) { in pno_start() 93 if (!wpas_network_disabled(wpa_s, ssid)) { in pno_start() 94 params.ssids[i].ssid = ssid->ssid; in pno_start() 95 params.ssids[i].ssid_len = ssid->ssid_len; in pno_start() [all …]
|
/external/wpa_supplicant_8/src/ap/ |
D | ap_config.c | 184 struct hostapd_ssid *ssid) in hostapd_config_read_wpa_psk() argument 250 pbkdf2_sha1(pos, ssid->ssid, ssid->ssid_len, in hostapd_config_read_wpa_psk() 262 psk->next = ssid->wpa_psk; in hostapd_config_read_wpa_psk() 263 ssid->wpa_psk = psk; in hostapd_config_read_wpa_psk() 272 static int hostapd_derive_psk(struct hostapd_ssid *ssid) in hostapd_derive_psk() argument 274 ssid->wpa_psk = os_zalloc(sizeof(struct hostapd_wpa_psk)); in hostapd_derive_psk() 275 if (ssid->wpa_psk == NULL) { in hostapd_derive_psk() 280 (u8 *) ssid->ssid, ssid->ssid_len); in hostapd_derive_psk() 282 (u8 *) ssid->wpa_passphrase, in hostapd_derive_psk() 283 os_strlen(ssid->wpa_passphrase)); in hostapd_derive_psk() [all …]
|
D | wps_hostapd.c | 99 struct hostapd_ssid *ssid = &hapd->conf->ssid; in hostapd_wps_new_psk_cb() local 118 p->next = ssid->wpa_psk; in hostapd_wps_new_psk_cb() 119 ssid->wpa_psk = p; in hostapd_wps_new_psk_cb() 121 if (ssid->wpa_psk_file) { in hostapd_wps_new_psk_cb() 125 f = fopen(ssid->wpa_psk_file, "a"); in hostapd_wps_new_psk_cb() 128 "'%s'", ssid->wpa_psk_file); in hostapd_wps_new_psk_cb() 298 os_memcpy(bss->ssid.ssid, cred->ssid, cred->ssid_len); in hapd_wps_reconfig_in_memory() 299 bss->ssid.ssid_len = cred->ssid_len; in hapd_wps_reconfig_in_memory() 300 bss->ssid.ssid_set = 1; in hapd_wps_reconfig_in_memory() 330 os_free(bss->ssid.wpa_passphrase); in hapd_wps_reconfig_in_memory() [all …]
|
D | beacon.c | 233 *pos++ = hapd->conf->ssid.ssid_len; in hostapd_gen_probe_resp() 234 os_memcpy(pos, hapd->conf->ssid.ssid, hapd->conf->ssid.ssid_len); in hostapd_gen_probe_resp() 235 pos += hapd->conf->ssid.ssid_len; in hostapd_gen_probe_resp() 320 const u8 *ssid, size_t ssid_len, in ssid_match() argument 329 if (ssid_len == hapd->conf->ssid.ssid_len && in ssid_match() 330 os_memcmp(ssid, hapd->conf->ssid.ssid, ssid_len) == 0) in ssid_match() 343 if (pos[1] == hapd->conf->ssid.ssid_len && in ssid_match() 344 os_memcmp(pos + 2, hapd->conf->ssid.ssid, pos[1]) == 0) in ssid_match() 386 if ((!elems.ssid || !elems.supp_rates)) { in handle_probe_req() 432 os_memcmp(elems.ssid, P2P_WILDCARD_SSID, in handle_probe_req() [all …]
|
/external/libselinux/src/ |
D | avc.c | 19 security_id_t ssid; member 40 int (*callback) (uint32_t event, security_id_t ssid, 45 security_id_t ssid; member 62 static inline int avc_hash(security_id_t ssid, in avc_hash() argument 65 return ((uintptr_t) ssid ^ ((uintptr_t) tsid << 2) ^ tclass) in avc_hash() 290 ae->ssid = ae->tsid = ae->create_sid = NULL; in avc_clear_avc_entry() 297 static inline struct avc_node *avc_claim_node(security_id_t ssid, in avc_claim_node() argument 317 hvalue = avc_hash(ssid, tsid, tclass); in avc_claim_node() 320 new->ae.ssid = ssid; in avc_claim_node() 330 static inline struct avc_node *avc_search_node(security_id_t ssid, in avc_search_node() argument [all …]
|
/external/checkpolicy/ |
D | checkpolicy.c | 380 sepol_security_id_t ssid, tsid, *sids; in main() local 659 ssid = atoi(ans); in main() 695 ret = sepol_compute_av(ssid, tsid, tclass, 0, &avd); in main() 731 ssid = atoi(ans); in main() 732 ret = sepol_sid_to_context(ssid, in main() 754 ret = sepol_context_to_sid(ans, scontext_len, &ssid); in main() 757 printf("\nsid %d\n", ssid); in main() 776 ssid = atoi(ans); in main() 806 sepol_transition_sid(ssid, tsid, tclass, in main() 807 &ssid); in main() [all …]
|
/external/dhcpcd/ |
D | if-linux-wireless.c | 62 int getifssid(const char *ifname, char *ssid); 65 getifssid(const char *ifname, char *ssid) in getifssid() argument 75 iwr.u.essid.pointer = ssid; in getifssid() 80 ssid[retval] = '\0'; in getifssid() 87 ifname = ssid; in getifssid()
|