Home
last modified time | relevance | path

Searched refs:ssid (Results 1 – 25 of 244) sorted by relevance

12345678910

/external/wpa_supplicant_6/wpa_supplicant/
Dscan.c28 struct wpa_ssid *ssid; in wpa_supplicant_gen_assoc_event() local
31 ssid = wpa_supplicant_get_ssid(wpa_s); in wpa_supplicant_gen_assoc_event()
32 if (ssid == NULL) in wpa_supplicant_gen_assoc_event()
36 wpa_s->current_ssid = ssid; in wpa_supplicant_gen_assoc_event()
49 struct wpa_ssid *ssid; in wpas_wps_in_use() local
52 for (ssid = conf->ssid; ssid; ssid = ssid->next) { in wpas_wps_in_use()
53 if (!(ssid->key_mgmt & WPA_KEY_MGMT_WPS)) in wpas_wps_in_use()
57 *req_type = wpas_wps_get_req_type(ssid); in wpas_wps_in_use()
58 if (!ssid->eap.phase1) in wpas_wps_in_use()
61 if (os_strstr(ssid->eap.phase1, "pbc=1")) in wpas_wps_in_use()
[all …]
Dwps_supplicant.c89 struct wpa_ssid *ssid, in wpas_wps_security_workaround() argument
121 if (ie[1] != ssid->ssid_len || ssid->ssid == NULL || in wpas_wps_security_workaround()
122 os_memcmp(ie + 2, ssid->ssid, ssid->ssid_len) != 0) in wpas_wps_security_workaround()
147 if (ie == NULL && (ssid->proto & WPA_PROTO_WPA) && in wpas_wps_security_workaround()
148 (ssid->pairwise_cipher & WPA_CIPHER_TKIP)) { in wpas_wps_security_workaround()
160 if (ccmp && !(ssid->pairwise_cipher & WPA_CIPHER_CCMP) && in wpas_wps_security_workaround()
161 (ssid->pairwise_cipher & WPA_CIPHER_TKIP) && in wpas_wps_security_workaround()
166 ssid->pairwise_cipher |= WPA_CIPHER_CCMP; in wpas_wps_security_workaround()
168 ssid->pairwise_cipher = WPA_CIPHER_CCMP; in wpas_wps_security_workaround()
171 if (wpa2 && !(ssid->proto & WPA_PROTO_RSN) && in wpas_wps_security_workaround()
[all …]
Dconfig.c38 int (*parser)(const struct parse_data *data, struct wpa_ssid *ssid,
44 char * (*writer)(const struct parse_data *data, struct wpa_ssid *ssid);
97 struct wpa_ssid *ssid, in wpa_config_parse_str() argument
144 dst = (char **) (((u8 *) ssid) + (long) data->param1); in wpa_config_parse_str()
145 dst_len = (size_t *) (((u8 *) ssid) + (long) data->param2); in wpa_config_parse_str()
210 struct wpa_ssid *ssid) in wpa_config_write_str() argument
215 src = (char **) (((u8 *) ssid) + (long) data->param1); in wpa_config_write_str()
220 len = *((size_t *) (((u8 *) ssid) + (long) data->param2)); in wpa_config_write_str()
229 struct wpa_ssid *ssid) in wpa_config_write_str_unicode() argument
234 src = (char **) (((u8 *) ssid) + (long) data->param1); in wpa_config_write_str_unicode()
[all …]
Dconfig_file.c95 static int wpa_config_validate_network(struct wpa_ssid *ssid, int line) in wpa_config_validate_network() argument
99 if (ssid->passphrase) { in wpa_config_validate_network()
100 if (ssid->psk_set) { in wpa_config_validate_network()
105 wpa_config_update_psk(ssid); in wpa_config_validate_network()
108 if ((ssid->key_mgmt & (WPA_KEY_MGMT_PSK | WPA_KEY_MGMT_FT_PSK | in wpa_config_validate_network()
110 !ssid->psk_set) { in wpa_config_validate_network()
116 if ((ssid->group_cipher & WPA_CIPHER_CCMP) && in wpa_config_validate_network()
117 !(ssid->pairwise_cipher & WPA_CIPHER_CCMP) && in wpa_config_validate_network()
118 !(ssid->pairwise_cipher & WPA_CIPHER_NONE)) { in wpa_config_validate_network()
123 ssid->group_cipher &= ~WPA_CIPHER_CCMP; in wpa_config_validate_network()
[all …]
Dconfig_winreg.c268 struct wpa_ssid *ssid; in wpa_config_read_network() local
279 ssid = os_zalloc(sizeof(*ssid)); in wpa_config_read_network()
280 if (ssid == NULL) { in wpa_config_read_network()
284 ssid->id = id; in wpa_config_read_network()
286 wpa_config_set_network_defaults(ssid); in wpa_config_read_network()
316 if (wpa_config_set(ssid, (char *) name, (char *) data, 0) < 0) in wpa_config_read_network()
322 if (ssid->passphrase) { in wpa_config_read_network()
323 if (ssid->psk_set) { in wpa_config_read_network()
328 wpa_config_update_psk(ssid); in wpa_config_read_network()
331 if ((ssid->key_mgmt & (WPA_KEY_MGMT_PSK | WPA_KEY_MGMT_FT_PSK | in wpa_config_read_network()
[all …]
Devents.c39 struct wpa_ssid *ssid; in wpa_supplicant_select_config() local
46 ssid = wpa_supplicant_get_ssid(wpa_s); in wpa_supplicant_select_config()
47 if (ssid == NULL) { in wpa_supplicant_select_config()
53 if (ssid->disabled) { in wpa_supplicant_select_config()
60 if (ssid->key_mgmt & (WPA_KEY_MGMT_PSK | WPA_KEY_MGMT_IEEE8021X | in wpa_supplicant_select_config()
67 wpa_supplicant_set_suites(wpa_s, NULL, ssid, in wpa_supplicant_select_config()
70 wpa_supplicant_set_non_wpa_policy(wpa_s, ssid); in wpa_supplicant_select_config()
73 if (wpa_s->current_ssid && wpa_s->current_ssid != ssid) in wpa_supplicant_select_config()
75 wpa_s->current_ssid = ssid; in wpa_supplicant_select_config()
187 struct wpa_ssid *ssid) in wpa_supplicant_scard_init() argument
[all …]
Dwpa_supplicant.c117 struct wpa_ssid *ssid) in wpa_set_wep_keys() argument
122 if (ssid->wep_key_len[i] == 0) in wpa_set_wep_keys()
128 i, i == ssid->wep_tx_keyidx, (u8 *) "", 0, in wpa_set_wep_keys()
129 ssid->wep_key[i], ssid->wep_key_len[i]); in wpa_set_wep_keys()
137 struct wpa_ssid *ssid) in wpa_supplicant_set_wpa_none_key() argument
147 if (ssid->mode != IEEE80211_MODE_IBSS) { in wpa_supplicant_set_wpa_none_key()
149 "for WPA-None", ssid->mode); in wpa_supplicant_set_wpa_none_key()
153 if (!ssid->psk_set) { in wpa_supplicant_set_wpa_none_key()
160 os_memcpy(key, ssid->psk, 16); in wpa_supplicant_set_wpa_none_key()
166 os_memcpy(key, ssid->psk, 16 + 8); in wpa_supplicant_set_wpa_none_key()
[all …]
Dctrl_iface.c88 struct wpa_ssid *ssid = wpa_s->current_ssid; in wpa_supplicant_ctrl_iface_preauth() local
98 if (rsn_preauth_init(wpa_s->wpa, bssid, ssid ? &ssid->eap : NULL)) in wpa_supplicant_ctrl_iface_preauth()
237 struct wpa_ssid *ssid; in wpa_supplicant_ctrl_iface_ctrl_rsp() local
254 ssid = wpa_config_get_network(wpa_s->conf, id); in wpa_supplicant_ctrl_iface_ctrl_rsp()
255 if (ssid == NULL) { in wpa_supplicant_ctrl_iface_ctrl_rsp()
260 eap = &ssid->eap; in wpa_supplicant_ctrl_iface_ctrl_rsp()
267 if (ssid == wpa_s->current_ssid) in wpa_supplicant_ctrl_iface_ctrl_rsp()
274 if (ssid == wpa_s->current_ssid) in wpa_supplicant_ctrl_iface_ctrl_rsp()
281 if (ssid == wpa_s->current_ssid) in wpa_supplicant_ctrl_iface_ctrl_rsp()
287 if (ssid == wpa_s->current_ssid) in wpa_supplicant_ctrl_iface_ctrl_rsp()
[all …]
Dwpas_glue.c304 struct wpa_ssid *ssid = wpa_s->current_ssid; in wpa_get_beacon_ie() local
315 if (ssid == NULL || in wpa_get_beacon_ie()
316 ((ie && ie[1] == ssid->ssid_len && in wpa_get_beacon_ie()
317 os_memcmp(ie + 2, ssid->ssid, ssid->ssid_len) == 0) || in wpa_get_beacon_ie()
318 ssid->ssid_len == 0)) { in wpa_get_beacon_ie()
503 struct wpa_ssid *ssid = wpa_s->current_ssid; in wpa_supplicant_eap_param_needed() local
508 if (ssid == NULL) in wpa_supplicant_eap_param_needed()
511 buflen = 100 + os_strlen(txt) + ssid->ssid_len; in wpa_supplicant_eap_param_needed()
517 field, ssid->id, txt); in wpa_supplicant_eap_param_needed()
522 if (ssid->ssid && buflen > len + ssid->ssid_len) { in wpa_supplicant_eap_param_needed()
[all …]
Dconfig.h43 struct wpa_ssid *ssid; member
331 void wpa_config_free(struct wpa_config *ssid);
332 void wpa_config_free_ssid(struct wpa_ssid *ssid);
336 void wpa_config_set_network_defaults(struct wpa_ssid *ssid);
337 int wpa_config_set(struct wpa_ssid *ssid, const char *var, const char *value,
339 char * wpa_config_get(struct wpa_ssid *ssid, const char *var);
340 char * wpa_config_get_no_key(struct wpa_ssid *ssid, const char *var);
341 void wpa_config_update_psk(struct wpa_ssid *ssid);
343 struct wpa_ssid *ssid);
/external/wpa_supplicant_8/wpa_supplicant/
Dscan.c27 struct wpa_ssid *ssid; in wpa_supplicant_gen_assoc_event() local
30 ssid = wpa_supplicant_get_ssid(wpa_s); in wpa_supplicant_gen_assoc_event()
31 if (ssid == NULL) in wpa_supplicant_gen_assoc_event()
35 wpa_s->current_ssid = ssid; in wpa_supplicant_gen_assoc_event()
51 struct wpa_ssid *ssid; in wpas_wps_in_use() local
54 for (ssid = wpa_s->conf->ssid; ssid; ssid = ssid->next) { in wpas_wps_in_use()
55 if (!(ssid->key_mgmt & WPA_KEY_MGMT_WPS)) in wpas_wps_in_use()
59 *req_type = wpas_wps_get_req_type(ssid); in wpas_wps_in_use()
60 if (!ssid->eap.phase1) in wpas_wps_in_use()
63 if (os_strstr(ssid->eap.phase1, "pbc=1")) in wpas_wps_in_use()
[all …]
Dwps_supplicant.c107 struct wpa_ssid *ssid, in wpas_wps_security_workaround() argument
127 if (ssid->ssid == NULL) in wpas_wps_security_workaround()
129 bss = wpa_bss_get(wpa_s, cred->mac_addr, ssid->ssid, ssid->ssid_len); in wpas_wps_security_workaround()
150 if (ie == NULL && (ssid->proto & WPA_PROTO_WPA) && in wpas_wps_security_workaround()
151 (ssid->pairwise_cipher & WPA_CIPHER_TKIP)) { in wpas_wps_security_workaround()
163 if (ccmp && !(ssid->pairwise_cipher & WPA_CIPHER_CCMP) && in wpas_wps_security_workaround()
164 (ssid->pairwise_cipher & WPA_CIPHER_TKIP) && in wpas_wps_security_workaround()
169 ssid->pairwise_cipher |= WPA_CIPHER_CCMP; in wpas_wps_security_workaround()
171 ssid->pairwise_cipher = WPA_CIPHER_CCMP; in wpas_wps_security_workaround()
174 if (wpa2 && !(ssid->proto & WPA_PROTO_RSN) && in wpas_wps_security_workaround()
[all …]
Dconfig.c33 int (*parser)(const struct parse_data *data, struct wpa_ssid *ssid,
39 char * (*writer)(const struct parse_data *data, struct wpa_ssid *ssid);
92 struct wpa_ssid *ssid, in wpa_config_parse_str() argument
139 dst = (char **) (((u8 *) ssid) + (long) data->param1); in wpa_config_parse_str()
140 dst_len = (size_t *) (((u8 *) ssid) + (long) data->param2); in wpa_config_parse_str()
205 struct wpa_ssid *ssid) in wpa_config_write_str() argument
210 src = (char **) (((u8 *) ssid) + (long) data->param1); in wpa_config_write_str()
215 len = *((size_t *) (((u8 *) ssid) + (long) data->param2)); in wpa_config_write_str()
224 struct wpa_ssid *ssid) in wpa_config_write_str_unicode() argument
229 src = (char **) (((u8 *) ssid) + (long) data->param1); in wpa_config_write_str_unicode()
[all …]
Dconfig_file.c88 static int wpa_config_validate_network(struct wpa_ssid *ssid, int line) in wpa_config_validate_network() argument
92 if (ssid->passphrase) { in wpa_config_validate_network()
93 if (ssid->psk_set) { in wpa_config_validate_network()
98 wpa_config_update_psk(ssid); in wpa_config_validate_network()
101 if (wpa_key_mgmt_wpa_psk(ssid->key_mgmt) && !ssid->psk_set) { in wpa_config_validate_network()
107 if ((ssid->group_cipher & WPA_CIPHER_CCMP) && in wpa_config_validate_network()
108 !(ssid->pairwise_cipher & WPA_CIPHER_CCMP) && in wpa_config_validate_network()
109 !(ssid->pairwise_cipher & WPA_CIPHER_NONE)) { in wpa_config_validate_network()
114 ssid->group_cipher &= ~WPA_CIPHER_CCMP; in wpa_config_validate_network()
123 struct wpa_ssid *ssid; in wpa_config_read_network() local
[all …]
Dap.c45 struct wpa_ssid *ssid, in wpa_supplicant_conf_ap() argument
55 if (ssid->frequency == 0) { in wpa_supplicant_conf_ap()
59 } else if (ssid->frequency >= 2412 && ssid->frequency <= 2472) { in wpa_supplicant_conf_ap()
61 conf->channel = (ssid->frequency - 2407) / 5; in wpa_supplicant_conf_ap()
62 } else if ((ssid->frequency >= 5180 && ssid->frequency <= 5240) || in wpa_supplicant_conf_ap()
63 (ssid->frequency >= 5745 && ssid->frequency <= 5825)) { in wpa_supplicant_conf_ap()
65 conf->channel = (ssid->frequency - 5000) / 5; in wpa_supplicant_conf_ap()
68 ssid->frequency); in wpa_supplicant_conf_ap()
139 if (ssid->ssid_len == 0) { in wpa_supplicant_conf_ap()
143 os_memcpy(bss->ssid.ssid, ssid->ssid, ssid->ssid_len); in wpa_supplicant_conf_ap()
[all …]
Dwpa_supplicant.conf594 ssid="simple"
602 ssid="second ssid"
610 ssid="example"
621 ssid="example"
633 ssid="example"
650 ssid="example"
664 ssid="example"
677 ssid="example"
690 ssid="example"
708 ssid="example"
[all …]
Dwpa_supplicant.c107 int wpa_set_wep_keys(struct wpa_supplicant *wpa_s, struct wpa_ssid *ssid) in wpa_set_wep_keys() argument
112 if (ssid->wep_key_len[i] == 0) in wpa_set_wep_keys()
117 i, i == ssid->wep_tx_keyidx, NULL, 0, in wpa_set_wep_keys()
118 ssid->wep_key[i], ssid->wep_key_len[i]); in wpa_set_wep_keys()
126 struct wpa_ssid *ssid) in wpa_supplicant_set_wpa_none_key() argument
136 if (ssid->mode != WPAS_MODE_IBSS) { in wpa_supplicant_set_wpa_none_key()
138 "IBSS/ad-hoc) for WPA-None", ssid->mode); in wpa_supplicant_set_wpa_none_key()
142 if (!ssid->psk_set) { in wpa_supplicant_set_wpa_none_key()
150 os_memcpy(key, ssid->psk, 16); in wpa_supplicant_set_wpa_none_key()
156 os_memcpy(key, ssid->psk, 16 + 8); in wpa_supplicant_set_wpa_none_key()
[all …]
Dconfig_winreg.c284 struct wpa_ssid *ssid; in wpa_config_read_network() local
295 ssid = os_zalloc(sizeof(*ssid)); in wpa_config_read_network()
296 if (ssid == NULL) { in wpa_config_read_network()
300 ssid->id = id; in wpa_config_read_network()
302 wpa_config_set_network_defaults(ssid); in wpa_config_read_network()
332 if (wpa_config_set(ssid, (char *) name, (char *) data, 0) < 0) in wpa_config_read_network()
338 if (ssid->passphrase) { in wpa_config_read_network()
339 if (ssid->psk_set) { in wpa_config_read_network()
344 wpa_config_update_psk(ssid); in wpa_config_read_network()
347 if (wpa_key_mgmt_wpa_psk(ssid->key_mgmt) && !ssid->psk_set) { in wpa_config_read_network()
[all …]
Dp2p_supplicant.c132 params.ssids[0].ssid = (u8 *) P2P_WILDCARD_SSID;
212 const u8 *ssid, argument
218 for (s = wpa_s->conf->ssid; s; s = s->next) {
221 os_memcmp(ssid, s->ssid, ssid_len) != 0)
238 struct wpa_ssid *ssid; local
244 ssid = wpa_s->current_ssid;
245 if (ssid == NULL) {
250 ssid = wpa_s->conf->ssid;
251 while (ssid) {
252 if (ssid->p2p_group &&
[all …]
Devents.c46 struct wpa_ssid *ssid, *old_ssid; in wpa_supplicant_select_config() local
53 ssid = wpa_supplicant_get_ssid(wpa_s); in wpa_supplicant_select_config()
54 if (ssid == NULL) { in wpa_supplicant_select_config()
60 if (ssid->disabled) { in wpa_supplicant_select_config()
67 if (wpa_key_mgmt_wpa_any(ssid->key_mgmt)) { in wpa_supplicant_select_config()
70 wpa_supplicant_set_suites(wpa_s, NULL, ssid, in wpa_supplicant_select_config()
73 wpa_supplicant_set_non_wpa_policy(wpa_s, ssid); in wpa_supplicant_select_config()
76 if (wpa_s->current_ssid && wpa_s->current_ssid != ssid) in wpa_supplicant_select_config()
79 wpa_s->current_ssid = ssid; in wpa_supplicant_select_config()
225 struct wpa_ssid *ssid) in wpa_supplicant_scard_init() argument
[all …]
Dsme.c41 struct wpa_bss *bss, struct wpa_ssid *ssid) in sme_authenticate() argument
66 params.ssid = bss->ssid; in sme_authenticate()
68 params.p2p = ssid->p2p_group; in sme_authenticate()
71 os_memcmp(wpa_s->sme.ssid, params.ssid, params.ssid_len) != 0) in sme_authenticate()
75 os_memcpy(wpa_s->sme.ssid, params.ssid, params.ssid_len); in sme_authenticate()
80 if (ssid->key_mgmt & WPA_KEY_MGMT_IEEE8021X_NO_WPA) { in sme_authenticate()
81 if (ssid->leap) { in sme_authenticate()
82 if (ssid->non_leap == 0) in sme_authenticate()
91 if (ssid->auth_alg) { in sme_authenticate()
92 params.auth_alg = ssid->auth_alg; in sme_authenticate()
[all …]
Dnotify.c97 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()
129 struct wpa_ssid *ssid) in wpas_notify_network_enabled_changed() argument
131 wpas_dbus_signal_network_enabled_changed(wpa_s, ssid); in wpas_notify_network_enabled_changed()
136 struct wpa_ssid *ssid) in wpas_notify_network_selected() argument
138 wpas_dbus_signal_network_selected(wpa_s, ssid->id); in wpas_notify_network_selected()
143 struct wpa_ssid *ssid, in wpas_notify_network_request() argument
147 wpas_dbus_signal_network_request(wpa_s, ssid, rtype, default_txt); in wpas_notify_network_request()
215 struct wpa_ssid *ssid) in wpas_notify_network_added() argument
224 wpas_dbus_register_network(wpa_s, ssid); in wpas_notify_network_added()
[all …]
/external/wpa_supplicant_8/src/ap/
Dap_config.c177 struct hostapd_ssid *ssid) in hostapd_config_read_wpa_psk() argument
243 pbkdf2_sha1(pos, ssid->ssid, ssid->ssid_len, in hostapd_config_read_wpa_psk()
255 psk->next = ssid->wpa_psk; in hostapd_config_read_wpa_psk()
256 ssid->wpa_psk = psk; in hostapd_config_read_wpa_psk()
265 static int hostapd_derive_psk(struct hostapd_ssid *ssid) in hostapd_derive_psk() argument
267 ssid->wpa_psk = os_zalloc(sizeof(struct hostapd_wpa_psk)); in hostapd_derive_psk()
268 if (ssid->wpa_psk == NULL) { in hostapd_derive_psk()
273 (u8 *) ssid->ssid, ssid->ssid_len); in hostapd_derive_psk()
275 (u8 *) ssid->wpa_passphrase, in hostapd_derive_psk()
276 os_strlen(ssid->wpa_passphrase)); in hostapd_derive_psk()
[all …]
Dhostapd.c81 if (hapd->conf->ssid.ssid_set && in hostapd_reload_bss()
82 hostapd_set_ssid(hapd, (u8 *) hapd->conf->ssid.ssid, in hostapd_reload_bss()
83 hapd->conf->ssid.ssid_len)) { in hostapd_reload_bss()
174 struct hostapd_ssid *ssid = &hapd->conf->ssid; in hostapd_broadcast_wep_set() local
176 idx = ssid->wep.idx; in hostapd_broadcast_wep_set()
177 if (ssid->wep.default_len && in hostapd_broadcast_wep_set()
180 1, NULL, 0, ssid->wep.key[idx], in hostapd_broadcast_wep_set()
181 ssid->wep.len[idx])) { in hostapd_broadcast_wep_set()
186 if (ssid->dyn_vlan_keys) { in hostapd_broadcast_wep_set()
188 for (i = 0; i <= ssid->max_dyn_vlan_keys; i++) { in hostapd_broadcast_wep_set()
[all …]
/external/libselinux/src/
Davc.c19 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 …]

12345678910