Home
last modified time | relevance | path

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

12345678910>>...15

/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/wpa_supplicant/
Dwps_supplicant.c118 struct wpa_ssid *ssid = NULL; in wpas_wps_eapol_cb() local
139 bss = wpa_supplicant_pick_network(wpa_s, &ssid); in wpas_wps_eapol_cb()
183 struct wpa_ssid *ssid, in wpas_wps_security_workaround() argument
203 if (ssid->ssid == NULL) in wpas_wps_security_workaround()
205 bss = wpa_bss_get(wpa_s, cred->mac_addr, ssid->ssid, ssid->ssid_len); in wpas_wps_security_workaround()
208 ssid->ssid, ssid->ssid_len); in wpas_wps_security_workaround()
229 if (ie == NULL && (ssid->proto & WPA_PROTO_WPA) && in wpas_wps_security_workaround()
230 (ssid->pairwise_cipher & WPA_CIPHER_TKIP)) { in wpas_wps_security_workaround()
242 if (ccmp && !(ssid->pairwise_cipher & WPA_CIPHER_CCMP) && in wpas_wps_security_workaround()
243 (ssid->pairwise_cipher & WPA_CIPHER_TKIP) && in wpas_wps_security_workaround()
[all …]
Dconfig.c41 int (*parser)(const struct parse_data *data, struct wpa_ssid *ssid,
47 char * (*writer)(const struct parse_data *data, struct wpa_ssid *ssid);
64 struct wpa_ssid *ssid, in wpa_config_parse_str() argument
111 dst = (char **) (((u8 *) ssid) + (long) data->param1); in wpa_config_parse_str()
112 dst_len = (size_t *) (((u8 *) ssid) + (long) data->param2); in wpa_config_parse_str()
180 struct wpa_ssid *ssid) in wpa_config_write_str() argument
185 src = (char **) (((u8 *) ssid) + (long) data->param1); in wpa_config_write_str()
190 len = *((size_t *) (((u8 *) ssid) + (long) data->param2)); in wpa_config_write_str()
200 struct wpa_ssid *ssid, in wpa_config_parse_int() argument
206 dst = (int *) (((u8 *) ssid) + (long) data->param1); in wpa_config_parse_int()
[all …]
Dscan.c33 struct wpa_ssid *ssid; in wpa_supplicant_gen_assoc_event() local
36 ssid = wpa_supplicant_get_ssid(wpa_s); in wpa_supplicant_gen_assoc_event()
37 if (ssid == NULL) in wpa_supplicant_gen_assoc_event()
41 wpa_s->current_ssid = ssid; in wpa_supplicant_gen_assoc_event()
56 struct wpa_ssid *ssid; in wpas_wps_in_use() local
59 for (ssid = wpa_s->conf->ssid; ssid; ssid = ssid->next) { in wpas_wps_in_use()
60 if (!(ssid->key_mgmt & WPA_KEY_MGMT_WPS)) in wpas_wps_in_use()
64 *req_type = wpas_wps_get_req_type(ssid); in wpas_wps_in_use()
65 if (ssid->eap.phase1 && os_strstr(ssid->eap.phase1, "pbc=1")) in wpas_wps_in_use()
96 struct wpa_ssid *ssid = wpa_s->conf->ssid; in wpa_supplicant_enabled_networks() local
[all …]
Dwpa_supplicant.conf1529 ssid="simple"
1537 ssid="second ssid"
1545 ssid="example"
1556 ssid="example"
1568 ssid="example"
1585 ssid="example"
1599 ssid="example"
1612 ssid="example"
1625 ssid="example"
1643 ssid="example"
[all …]
Dmesh.c72 struct wpa_ssid *ssid) in mesh_config_create() argument
81 os_memcpy(conf->meshid, ssid->ssid, ssid->ssid_len); in mesh_config_create()
82 conf->meshid_len = ssid->ssid_len; in mesh_config_create()
84 if (ssid->key_mgmt & WPA_KEY_MGMT_SAE) in mesh_config_create()
90 conf->ieee80211w = ssid->ieee80211w; in mesh_config_create()
99 conf->ocv = ssid->ocv; in mesh_config_create()
102 cipher = wpa_pick_pairwise_cipher(ssid->pairwise_cipher, 0); in mesh_config_create()
110 cipher = wpa_pick_group_cipher(ssid->group_cipher); in mesh_config_create()
128 conf->dot11MeshMaxRetries = ssid->dot11MeshMaxRetries; in mesh_config_create()
129 conf->dot11MeshRetryTimeout = ssid->dot11MeshRetryTimeout; in mesh_config_create()
[all …]
Dap.c49 struct wpa_ssid *ssid, in wpas_conf_ap_vht() argument
62 if (ssid->max_oper_chwidth) in wpas_conf_ap_vht()
63 conf->vht_oper_chwidth = ssid->max_oper_chwidth; in wpas_conf_ap_vht()
65 ieee80211_freq_to_chan(ssid->vht_center_freq2, in wpas_conf_ap_vht()
68 if (!ssid->p2p_group) { in wpas_conf_ap_vht()
69 if (!ssid->vht_center_freq1 || in wpas_conf_ap_vht()
72 ieee80211_freq_to_chan(ssid->vht_center_freq1, in wpas_conf_ap_vht()
137 struct wpa_ssid *ssid, in wpa_supplicant_conf_ap_ht() argument
140 conf->hw_mode = ieee80211_freq_to_chan(ssid->frequency, in wpa_supplicant_conf_ap_ht()
145 ssid->frequency); in wpa_supplicant_conf_ap_ht()
[all …]
Dconfig_winreg.c291 struct wpa_ssid *ssid; in wpa_config_read_network() local
302 ssid = os_zalloc(sizeof(*ssid)); in wpa_config_read_network()
303 if (ssid == NULL) { in wpa_config_read_network()
307 dl_list_init(&ssid->psk_list); in wpa_config_read_network()
308 ssid->id = id; in wpa_config_read_network()
310 wpa_config_set_network_defaults(ssid); in wpa_config_read_network()
340 if (wpa_config_set(ssid, (char *) name, (char *) data, 0) < 0) in wpa_config_read_network()
346 if (ssid->passphrase) { in wpa_config_read_network()
347 if (ssid->psk_set) { in wpa_config_read_network()
352 wpa_config_update_psk(ssid); in wpa_config_read_network()
[all …]
Dwpa_supplicant.c134 int wpa_set_wep_keys(struct wpa_supplicant *wpa_s, struct wpa_ssid *ssid) in wpa_set_wep_keys() argument
139 if (ssid->wep_key_len[i] == 0) in wpa_set_wep_keys()
144 i, i == ssid->wep_tx_keyidx, NULL, 0, in wpa_set_wep_keys()
145 ssid->wep_key[i], ssid->wep_key_len[i]); in wpa_set_wep_keys()
153 struct wpa_ssid *ssid) in wpa_supplicant_set_wpa_none_key() argument
164 if (ssid->mode != WPAS_MODE_IBSS) { in wpa_supplicant_set_wpa_none_key()
166 "IBSS/ad-hoc) for WPA-None", ssid->mode); in wpa_supplicant_set_wpa_none_key()
170 if (!ssid->psk_set) { in wpa_supplicant_set_wpa_none_key()
178 os_memcpy(key, ssid->psk, 16); in wpa_supplicant_set_wpa_none_key()
183 os_memcpy(key, ssid->psk, 16); in wpa_supplicant_set_wpa_none_key()
[all …]
Dconfig_file.c127 static int wpa_config_validate_network(struct wpa_ssid *ssid, int line) in wpa_config_validate_network() argument
131 if (ssid->passphrase) { in wpa_config_validate_network()
132 if (ssid->psk_set) { in wpa_config_validate_network()
137 wpa_config_update_psk(ssid); in wpa_config_validate_network()
140 if (ssid->disabled == 2) in wpa_config_validate_network()
141 ssid->p2p_persistent_group = 1; in wpa_config_validate_network()
143 if ((ssid->group_cipher & WPA_CIPHER_CCMP) && in wpa_config_validate_network()
144 !(ssid->pairwise_cipher & (WPA_CIPHER_CCMP | WPA_CIPHER_CCMP_256 | in wpa_config_validate_network()
151 ssid->group_cipher &= ~WPA_CIPHER_CCMP; in wpa_config_validate_network()
154 if (ssid->mode == WPAS_MODE_MESH && in wpa_config_validate_network()
[all …]
Dwpas_glue.c380 struct wpa_ssid *ssid = wpa_s->current_ssid; in wpa_get_beacon_ie() local
386 if (ssid == NULL || in wpa_get_beacon_ie()
387 ((bss->ssid_len == ssid->ssid_len && in wpa_get_beacon_ie()
388 os_memcmp(bss->ssid, ssid->ssid, ssid->ssid_len) == 0) || in wpa_get_beacon_ie()
389 ssid->ssid_len == 0)) { in wpa_get_beacon_ie()
536 struct wpa_ssid *ssid; in wpas_get_network_ctx() local
538 for (ssid = wpa_s->conf->ssid; ssid; ssid = ssid->next) { in wpas_get_network_ctx()
539 if (network_ctx == ssid) in wpas_get_network_ctx()
540 return ssid; in wpas_get_network_ctx()
553 struct wpa_ssid *ssid; in wpa_supplicant_add_pmkid() local
[all …]
Dnotify.c117 wpa_s->current_ssid && wpa_s->current_ssid->ssid ? in wpas_notify_state_changed()
118 wpa_ssid_txt(wpa_s->current_ssid->ssid, in wpas_notify_state_changed()
224 struct wpa_ssid *ssid) in wpas_notify_network_enabled_changed() argument
229 wpas_dbus_signal_network_enabled_changed(wpa_s, ssid); in wpas_notify_network_enabled_changed()
234 struct wpa_ssid *ssid) in wpas_notify_network_selected() argument
239 wpas_dbus_signal_network_selected(wpa_s, ssid->id); in wpas_notify_network_selected()
244 struct wpa_ssid *ssid, in wpas_notify_network_request() argument
251 wpas_dbus_signal_network_request(wpa_s, ssid, rtype, default_txt); in wpas_notify_network_request()
342 struct wpa_ssid *ssid) in wpas_notify_network_added() argument
353 if (!ssid->p2p_group && wpa_s->global->p2p_group_formation != wpa_s) in wpas_notify_network_added()
[all …]
/third_party/wpa_supplicant/wpa_supplicant-2.9/wpa_supplicant/
Dwps_supplicant.c118 struct wpa_ssid *ssid = NULL; in wpas_wps_eapol_cb() local
139 bss = wpa_supplicant_pick_network(wpa_s, &ssid); in wpas_wps_eapol_cb()
183 struct wpa_ssid *ssid, in wpas_wps_security_workaround() argument
203 if (ssid->ssid == NULL) in wpas_wps_security_workaround()
205 bss = wpa_bss_get(wpa_s, cred->mac_addr, ssid->ssid, ssid->ssid_len); in wpas_wps_security_workaround()
208 ssid->ssid, ssid->ssid_len); in wpas_wps_security_workaround()
229 if (ie == NULL && (ssid->proto & WPA_PROTO_WPA) && in wpas_wps_security_workaround()
230 (ssid->pairwise_cipher & WPA_CIPHER_TKIP)) { in wpas_wps_security_workaround()
242 if (ccmp && !(ssid->pairwise_cipher & WPA_CIPHER_CCMP) && in wpas_wps_security_workaround()
243 (ssid->pairwise_cipher & WPA_CIPHER_TKIP) && in wpas_wps_security_workaround()
[all …]
Dconfig.c41 int (*parser)(const struct parse_data *data, struct wpa_ssid *ssid,
47 char * (*writer)(const struct parse_data *data, struct wpa_ssid *ssid);
64 struct wpa_ssid *ssid, in wpa_config_parse_str() argument
111 dst = (char **) (((u8 *) ssid) + (long) data->param1); in wpa_config_parse_str()
112 dst_len = (size_t *) (((u8 *) ssid) + (long) data->param2); in wpa_config_parse_str()
180 struct wpa_ssid *ssid) in wpa_config_write_str() argument
185 src = (char **) (((u8 *) ssid) + (long) data->param1); in wpa_config_write_str()
190 len = *((size_t *) (((u8 *) ssid) + (long) data->param2)); in wpa_config_write_str()
200 struct wpa_ssid *ssid, in wpa_config_parse_int() argument
206 dst = (int *) (((u8 *) ssid) + (long) data->param1); in wpa_config_parse_int()
[all …]
Dscan.c33 struct wpa_ssid *ssid; in wpa_supplicant_gen_assoc_event() local
36 ssid = wpa_supplicant_get_ssid(wpa_s); in wpa_supplicant_gen_assoc_event()
37 if (ssid == NULL) in wpa_supplicant_gen_assoc_event()
41 wpa_s->current_ssid = ssid; in wpa_supplicant_gen_assoc_event()
56 struct wpa_ssid *ssid; in wpas_wps_in_use() local
59 for (ssid = wpa_s->conf->ssid; ssid; ssid = ssid->next) { in wpas_wps_in_use()
60 if (!(ssid->key_mgmt & WPA_KEY_MGMT_WPS)) in wpas_wps_in_use()
64 *req_type = wpas_wps_get_req_type(ssid); in wpas_wps_in_use()
65 if (ssid->eap.phase1 && os_strstr(ssid->eap.phase1, "pbc=1")) in wpas_wps_in_use()
96 struct wpa_ssid *ssid = wpa_s->conf->ssid; in wpa_supplicant_enabled_networks() local
[all …]
Dwpa_supplicant.conf1529 ssid="simple"
1537 ssid="second ssid"
1545 ssid="example"
1556 ssid="example"
1568 ssid="example"
1585 ssid="example"
1599 ssid="example"
1612 ssid="example"
1625 ssid="example"
1643 ssid="example"
[all …]
Dmesh.c72 struct wpa_ssid *ssid) in mesh_config_create() argument
81 os_memcpy(conf->meshid, ssid->ssid, ssid->ssid_len); in mesh_config_create()
82 conf->meshid_len = ssid->ssid_len; in mesh_config_create()
84 if (ssid->key_mgmt & WPA_KEY_MGMT_SAE) in mesh_config_create()
90 conf->ieee80211w = ssid->ieee80211w; in mesh_config_create()
99 conf->ocv = ssid->ocv; in mesh_config_create()
102 cipher = wpa_pick_pairwise_cipher(ssid->pairwise_cipher, 0); in mesh_config_create()
110 cipher = wpa_pick_group_cipher(ssid->group_cipher); in mesh_config_create()
128 conf->dot11MeshMaxRetries = ssid->dot11MeshMaxRetries; in mesh_config_create()
129 conf->dot11MeshRetryTimeout = ssid->dot11MeshRetryTimeout; in mesh_config_create()
[all …]
Dap.c49 struct wpa_ssid *ssid, in wpas_conf_ap_vht() argument
62 if (ssid->max_oper_chwidth) in wpas_conf_ap_vht()
63 conf->vht_oper_chwidth = ssid->max_oper_chwidth; in wpas_conf_ap_vht()
65 ieee80211_freq_to_chan(ssid->vht_center_freq2, in wpas_conf_ap_vht()
68 if (!ssid->p2p_group) { in wpas_conf_ap_vht()
69 if (!ssid->vht_center_freq1 || in wpas_conf_ap_vht()
72 ieee80211_freq_to_chan(ssid->vht_center_freq1, in wpas_conf_ap_vht()
137 struct wpa_ssid *ssid, in wpa_supplicant_conf_ap_ht() argument
140 conf->hw_mode = ieee80211_freq_to_chan(ssid->frequency, in wpa_supplicant_conf_ap_ht()
145 ssid->frequency); in wpa_supplicant_conf_ap_ht()
[all …]
Dconfig_winreg.c291 struct wpa_ssid *ssid; in wpa_config_read_network() local
302 ssid = os_zalloc(sizeof(*ssid)); in wpa_config_read_network()
303 if (ssid == NULL) { in wpa_config_read_network()
307 dl_list_init(&ssid->psk_list); in wpa_config_read_network()
308 ssid->id = id; in wpa_config_read_network()
310 wpa_config_set_network_defaults(ssid); in wpa_config_read_network()
340 if (wpa_config_set(ssid, (char *) name, (char *) data, 0) < 0) in wpa_config_read_network()
346 if (ssid->passphrase) { in wpa_config_read_network()
347 if (ssid->psk_set) { in wpa_config_read_network()
352 wpa_config_update_psk(ssid); in wpa_config_read_network()
[all …]
Dwpa_supplicant.c134 int wpa_set_wep_keys(struct wpa_supplicant *wpa_s, struct wpa_ssid *ssid) in wpa_set_wep_keys() argument
139 if (ssid->wep_key_len[i] == 0) in wpa_set_wep_keys()
144 i, i == ssid->wep_tx_keyidx, NULL, 0, in wpa_set_wep_keys()
145 ssid->wep_key[i], ssid->wep_key_len[i]); in wpa_set_wep_keys()
153 struct wpa_ssid *ssid) in wpa_supplicant_set_wpa_none_key() argument
164 if (ssid->mode != WPAS_MODE_IBSS) { in wpa_supplicant_set_wpa_none_key()
166 "IBSS/ad-hoc) for WPA-None", ssid->mode); in wpa_supplicant_set_wpa_none_key()
170 if (!ssid->psk_set) { in wpa_supplicant_set_wpa_none_key()
178 os_memcpy(key, ssid->psk, 16); in wpa_supplicant_set_wpa_none_key()
183 os_memcpy(key, ssid->psk, 16); in wpa_supplicant_set_wpa_none_key()
[all …]
Dconfig_file.c127 static int wpa_config_validate_network(struct wpa_ssid *ssid, int line) in wpa_config_validate_network() argument
131 if (ssid->passphrase) { in wpa_config_validate_network()
132 if (ssid->psk_set) { in wpa_config_validate_network()
137 wpa_config_update_psk(ssid); in wpa_config_validate_network()
140 if (ssid->disabled == 2) in wpa_config_validate_network()
141 ssid->p2p_persistent_group = 1; in wpa_config_validate_network()
143 if ((ssid->group_cipher & WPA_CIPHER_CCMP) && in wpa_config_validate_network()
144 !(ssid->pairwise_cipher & (WPA_CIPHER_CCMP | WPA_CIPHER_CCMP_256 | in wpa_config_validate_network()
151 ssid->group_cipher &= ~WPA_CIPHER_CCMP; in wpa_config_validate_network()
154 if (ssid->mode == WPAS_MODE_MESH && in wpa_config_validate_network()
[all …]
Dwpas_glue.c380 struct wpa_ssid *ssid = wpa_s->current_ssid; in wpa_get_beacon_ie() local
386 if (ssid == NULL || in wpa_get_beacon_ie()
387 ((bss->ssid_len == ssid->ssid_len && in wpa_get_beacon_ie()
388 os_memcmp(bss->ssid, ssid->ssid, ssid->ssid_len) == 0) || in wpa_get_beacon_ie()
389 ssid->ssid_len == 0)) { in wpa_get_beacon_ie()
536 struct wpa_ssid *ssid; in wpas_get_network_ctx() local
538 for (ssid = wpa_s->conf->ssid; ssid; ssid = ssid->next) { in wpas_get_network_ctx()
539 if (network_ctx == ssid) in wpas_get_network_ctx()
540 return ssid; in wpas_get_network_ctx()
553 struct wpa_ssid *ssid; in wpa_supplicant_add_pmkid() local
[all …]
Dnotify.c117 wpa_s->current_ssid && wpa_s->current_ssid->ssid ? in wpas_notify_state_changed()
118 wpa_ssid_txt(wpa_s->current_ssid->ssid, in wpas_notify_state_changed()
224 struct wpa_ssid *ssid) in wpas_notify_network_enabled_changed() argument
229 wpas_dbus_signal_network_enabled_changed(wpa_s, ssid); in wpas_notify_network_enabled_changed()
234 struct wpa_ssid *ssid) in wpas_notify_network_selected() argument
239 wpas_dbus_signal_network_selected(wpa_s, ssid->id); in wpas_notify_network_selected()
244 struct wpa_ssid *ssid, in wpas_notify_network_request() argument
251 wpas_dbus_signal_network_request(wpa_s, ssid, rtype, default_txt); in wpas_notify_network_request()
342 struct wpa_ssid *ssid) in wpas_notify_network_added() argument
353 if (!ssid->p2p_group && wpa_s->global->p2p_group_formation != wpa_s) in wpas_notify_network_added()
[all …]
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/ap/
Dneighbor_db.c20 const struct wpa_ssid_value *ssid) in hostapd_neighbor_get() argument
27 (!ssid || in hostapd_neighbor_get()
28 (ssid->ssid_len == nr->ssid.ssid_len && in hostapd_neighbor_get()
29 os_memcmp(ssid->ssid, nr->ssid.ssid, in hostapd_neighbor_get()
30 ssid->ssid_len) == 0))) in hostapd_neighbor_get()
46 os_memset(&nr->ssid, 0, sizeof(nr->ssid)); in hostapd_neighbor_clear_entry()
67 const struct wpa_ssid_value *ssid, in hostapd_neighbor_set() argument
73 entry = hostapd_neighbor_get(hapd, bssid, ssid); in hostapd_neighbor_set()
82 os_memcpy(&entry->ssid, ssid, sizeof(entry->ssid)); in hostapd_neighbor_set()
105 hostapd_neighbor_remove(hapd, bssid, ssid); in hostapd_neighbor_set()
[all …]
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/ap/
Dneighbor_db.c20 const struct wpa_ssid_value *ssid) in hostapd_neighbor_get() argument
27 (!ssid || in hostapd_neighbor_get()
28 (ssid->ssid_len == nr->ssid.ssid_len && in hostapd_neighbor_get()
29 os_memcmp(ssid->ssid, nr->ssid.ssid, in hostapd_neighbor_get()
30 ssid->ssid_len) == 0))) in hostapd_neighbor_get()
46 os_memset(&nr->ssid, 0, sizeof(nr->ssid)); in hostapd_neighbor_clear_entry()
67 const struct wpa_ssid_value *ssid, in hostapd_neighbor_set() argument
73 entry = hostapd_neighbor_get(hapd, bssid, ssid); in hostapd_neighbor_set()
82 os_memcpy(&entry->ssid, ssid, sizeof(entry->ssid)); in hostapd_neighbor_set()
105 hostapd_neighbor_remove(hapd, bssid, ssid); in hostapd_neighbor_set()
[all …]
/third_party/selinux/libselinux/src/
Davc.c20 security_id_t ssid; member
41 int (*callback) (uint32_t event, security_id_t ssid,
46 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()
344 static inline struct avc_node *avc_claim_node(security_id_t ssid, in avc_claim_node() argument
364 hvalue = avc_hash(ssid, tsid, tclass); in avc_claim_node()
367 new->ae.ssid = ssid; in avc_claim_node()
377 static inline struct avc_node *avc_search_node(security_id_t ssid, in avc_search_node() argument
386 hvalue = avc_hash(ssid, tsid, tclass); in avc_search_node()
[all …]

12345678910>>...15