Home | History | Annotate | Download | only in wpa_supplicant

Lines Matching full:ssid

58 			      struct wpa_ssid *ssid)
62 if (ssid == NULL || ssid->disabled_until.sec == 0)
66 if (ssid->disabled_until.sec > now.sec)
67 return ssid->disabled_until.sec - now.sec;
69 wpas_clear_temp_disabled(wpa_s, ssid, 0);
88 struct wpa_ssid *ssid;
97 for (ssid = wpa_s->conf->ssid; ssid; ssid = ssid->next) {
98 if (ssid->disabled)
101 disabled_for = wpas_temp_disabled(wpa_s, ssid);
134 struct wpa_ssid *ssid = wpa_s->current_ssid;
136 if (ssid->ssid_len > 0)
137 bss = wpa_bss_get(wpa_s, bssid, ssid->ssid, ssid->ssid_len);
163 struct wpa_ssid *ssid, *old_ssid;
176 "Failed to read SSID from driver");
182 os_memcmp(drv_ssid, wpa_s->current_ssid->ssid,
187 "Driver-initiated BSS selection changed the SSID to %s",
194 ssid = wpa_supplicant_get_ssid(wpa_s);
195 if (ssid == NULL) {
201 if (wpas_network_disabled(wpa_s, ssid)) {
207 disallowed_ssid(wpa_s, ssid->ssid, ssid->ssid_len)) {
212 res = wpas_temp_disabled(wpa_s, ssid);
221 if (wpa_key_mgmt_wpa_any(ssid->key_mgmt)) {
224 if (wpa_supplicant_set_suites(wpa_s, NULL, ssid,
228 wpa_supplicant_set_non_wpa_policy(wpa_s, ssid);
231 if (wpa_s->current_ssid && wpa_s->current_ssid != ssid)
234 wpa_s->current_ssid = ssid;
382 * @ssid: Configuration data for the network
389 struct wpa_ssid *ssid)
395 if ((ssid != NULL && ssid->eap.pcsc == NULL) ||
399 if (ssid == NULL || ssid->eap.eap_methods == NULL) {
403 struct eap_method_type *eap = ssid->eap.eap_methods;
451 static int has_wep_key(struct wpa_ssid *ssid)
456 if (ssid->wep_key_len[i])
465 struct wpa_ssid *ssid)
469 if (ssid->mixed_cell)
473 if (ssid->key_mgmt & WPA_KEY_MGMT_WPS)
477 if (has_wep_key(ssid))
481 if ((ssid->key_mgmt & WPA_KEY_MGMT_IEEE8021X_NO_WPA) &&
482 ssid->eapol_flags & (EAPOL_FLAG_REQUIRE_KEY_UNICAST |
487 if (wpa_key_mgmt_wpa(ssid->key_mgmt))
490 if (ssid->key_mgmt & WPA_KEY_MGMT_OSEN)
500 struct wpa_ssid *ssid,
509 ret = wpas_wps_ssid_bss_match(wpa_s, ssid, bss);
514 wep_ok = !wpa_key_mgmt_wpa(ssid->key_mgmt) &&
515 (((ssid->key_mgmt & WPA_KEY_MGMT_NONE) &&
516 ssid->wep_key_len[ssid->wep_tx_keyidx] > 0) ||
517 (ssid->key_mgmt & WPA_KEY_MGMT_IEEE8021X_NO_WPA));
520 while ((ssid->proto & WPA_PROTO_RSN) && rsn_ie) {
537 if (!(ie.proto & ssid->proto)) {
543 if (!(ie.pairwise_cipher & ssid->pairwise_cipher)) {
549 if (!(ie.group_cipher & ssid->group_cipher)) {
555 if (!(ie.key_mgmt & ssid->key_mgmt)) {
563 wpas_get_ssid_pmf(wpa_s, ssid) ==
571 wpas_get_ssid_pmf(wpa_s, ssid) ==
580 wpas_get_ssid_pmf(wpa_s, ssid) !=
593 while ((ssid->proto & WPA_PROTO_WPA) && wpa_ie) {
610 if (!(ie.proto & ssid->proto)) {
616 if (!(ie.pairwise_cipher & ssid->pairwise_cipher)) {
622 if (!(ie.group_cipher & ssid->group_cipher)) {
628 if (!(ie.key_mgmt & ssid->key_mgmt)) {
638 if ((ssid->key_mgmt & WPA_KEY_MGMT_IEEE8021X_NO_WPA) && !wpa_ie &&
644 if ((ssid->proto & (WPA_PROTO_WPA | WPA_PROTO_RSN)) &&
645 wpa_key_mgmt_wpa(ssid->key_mgmt) && proto_match == 0) {
650 if ((ssid->key_mgmt & WPA_KEY_MGMT_OSEN) &&
656 if (!wpa_key_mgmt_wpa(ssid->key_mgmt)) {
838 struct wpa_ssid *ssid;
853 wpa_dbg(wpa_s, MSG_DEBUG, "%d: " MACSTR " ssid='%s' "
855 i, MAC2STR(bss->bssid), wpa_ssid_txt(bss->ssid, bss->ssid_len),
885 wpa_dbg(wpa_s, MSG_DEBUG, " skip - SSID not known");
894 if (disallowed_ssid(wpa_s, bss->ssid, bss->ssid_len)) {
895 wpa_dbg(wpa_s, MSG_DEBUG, " skip - SSID disallowed");
901 for (ssid = group; ssid; ssid = only_first_ssid ? NULL : ssid->pnext) {
902 int check_ssid = wpa ? 1 : (ssid->ssid_len != 0);
905 if (wpas_network_disabled(wpa_s, ssid)) {
910 res = wpas_temp_disabled(wpa_s, ssid);
918 if ((ssid->key_mgmt & WPA_KEY_MGMT_WPS) && e && e->count > 0) {
924 if (wpa && ssid->ssid_len == 0 &&
925 wpas_wps_ssid_wildcard_ok(wpa_s, ssid, bss))
928 if (!wpa && (ssid->key_mgmt & WPA_KEY_MGMT_WPS)) {
929 /* Only allow wildcard SSID match if an AP
933 if (ssid->ssid_len == 0 &&
934 wpas_wps_ssid_wildcard_ok(wpa_s, ssid, bss))
939 if (ssid->bssid_set && ssid->ssid_len == 0 &&
940 os_memcmp(bss->bssid, ssid->bssid, ETH_ALEN) == 0)
944 (bss->ssid_len != ssid->ssid_len ||
945 os_memcmp(bss->ssid, ssid->ssid, bss->ssid_len) != 0)) {
946 wpa_dbg(wpa_s, MSG_DEBUG, " skip - SSID mismatch");
950 if (ssid->bssid_set &&
951 os_memcmp(bss->bssid, ssid->bssid, ETH_ALEN) != 0) {
957 if (ssid->num_bssid_blacklist &&
958 addr_in_list(bss->bssid, ssid->bssid_blacklist,
959 ssid->num_bssid_blacklist)) {
966 if (ssid->num_bssid_whitelist &&
967 !addr_in_list(bss->bssid, ssid->bssid_whitelist,
968 ssid->num_bssid_whitelist)) {
974 if (!wpa_supplicant_ssid_bss_match(wpa_s, ssid, bss))
978 !(ssid->key_mgmt & WPA_KEY_MGMT_NONE) &&
979 !(ssid->key_mgmt & WPA_KEY_MGMT_WPS) &&
980 !(ssid->key_mgmt & WPA_KEY_MGMT_IEEE8021X_NO_WPA)) {
986 if (wpa && !wpa_key_mgmt_wpa(ssid->key_mgmt) &&
987 has_wep_key(ssid)) {
992 if ((ssid->key_mgmt & WPA_KEY_MGMT_OSEN) && !osen) {
998 if (!wpa_supplicant_match_privacy(bss, ssid)) {
1009 if (ssid->pbss != bss_is_pbss(bss)) {
1010 wpa_dbg(wpa_s, MSG_DEBUG, " skip - PBSS mismatch (ssid %d bss %d)",
1011 ssid->pbss, bss_is_pbss(bss));
1015 if (!freq_allowed(ssid->freq_list, bss->freq)) {
1028 if (ssid->p2p_group &&
1035 if (!is_zero_ether_addr(ssid->go_p2p_dev_addr)) {
1052 || os_memcmp(dev_addr, ssid->go_p2p_dev_addr,
1098 return ssid;
1128 " ssid='%s'",
1130 wpa_ssid_txt(bss->ssid, bss->ssid_len));
1144 struct wpa_ssid *ssid;
1152 for (ssid = wpa_s->conf->ssid; ssid; ssid = ssid->next) {
1153 if (ssid == wpa_s->next_ssid)
1156 next_ssid = ssid;
1186 ssid = *selected_ssid;
1187 if (selected && ssid && ssid->mem_only_psk && !ssid->psk_set &&
1188 !ssid->passphrase && !ssid->ext_psk) {
1194 wpas_notify_network_request(wpa_s, ssid,
1202 wpas_send_ctrl_req(wpa_s, ssid, field_name, txt);
1233 struct wpa_ssid *ssid)
1235 if (wpas_wps_scan_pbc_overlap(wpa_s, selected, ssid)) {
1258 " wpa_state: %s ssid=%p current_ssid=%p",
1262 ssid, wpa_s->current_ssid);
1277 ssid != wpa_s->current_ssid)))) {
1278 if (wpa_supplicant_scard_init(wpa_s, ssid)) {
1284 wpa_supplicant_associate(wpa_s, selected, ssid);
1298 struct wpa_ssid *ssid;
1301 for (ssid = wpa_s->conf->pssid[prio]; ssid; ssid = ssid->pnext)
1303 if (wpas_network_disabled(wpa_s, ssid))
1305 if (ssid->mode == IEEE80211_MODE_IBSS ||
1306 ssid->mode == IEEE80211_MODE_AP ||
1307 ssid->mode == IEEE80211_MODE_MESH)
1308 return ssid;
1326 const u8 *ssid, *rsn;
1328 ssid = wpa_bss_get_ie(bss, WLAN_EID_SSID);
1329 if (ssid == NULL)
1336 rsn_preauth_scan_result(wpa_s->wpa, bss->bssid, ssid, rsn);
1344 struct wpa_ssid *ssid)
1357 return 1; /* unknown current SSID */
1358 if (wpa_s->current_ssid != ssid)
1364 if (wpa_s->current_ssid->ssid)
1366 wpa_s->current_ssid->ssid,
1596 struct wpa_ssid *ssid = NULL;
1612 selected = wpa_supplicant_pick_network(wpa_s, &ssid);
1616 skip = !wpa_supplicant_need_to_roam(wpa_s, selected, ssid);
1623 if (ssid != wpa_s->current_ssid &&
1630 if (wpa_supplicant_connect(wpa_s, selected, ssid) < 0) {
1650 ssid = wpa_supplicant_pick_new_network(wpa_s);
1651 if (ssid) {
1653 wpa_supplicant_associate(wpa_s, NULL, ssid);
1658 * No SSID found. If SCAN results are as a result of
2575 !disallowed_ssid(wpa_s, fast_reconnect->ssid,
2879 struct wpa_ssid *ssid;
2884 ssid = wpa_s->current_ssid;
2885 if (ssid == NULL)
2887 if (ssid->mode != WPAS_MODE_IBSS || !wpa_key_mgmt_wpa(ssid->key_mgmt))
2897 struct wpa_ssid *ssid = wpa_s->current_ssid;
2899 if (ssid == NULL)
2902 /* check if the ssid is correctly configured as IBSS/RSN */
2903 if (ssid->mode != WPAS_MODE_IBSS || !wpa_key_mgmt_wpa(ssid->key_mgmt))