Home | History | Annotate | Download | only in wpa_supplicant

Lines Matching full:ssid

30 	struct wpa_ssid *ssid;
33 ssid = wpa_supplicant_get_ssid(wpa_s);
34 if (ssid == NULL)
38 wpa_s->current_ssid = ssid;
54 struct wpa_ssid *ssid;
57 for (ssid = wpa_s->conf->ssid; ssid; ssid = ssid->next) {
58 if (!(ssid->key_mgmt & WPA_KEY_MGMT_WPS))
62 *req_type = wpas_wps_get_req_type(ssid);
63 if (!ssid->eap.phase1)
66 if (os_strstr(ssid->eap.phase1, "pbc=1"))
97 struct wpa_ssid *ssid = wpa_s->conf->ssid;
103 while (ssid) {
104 if (!wpas_network_disabled(wpa_s, ssid))
108 ssid = ssid->next;
122 struct wpa_ssid *ssid)
124 while (ssid) {
125 if (!wpas_network_disabled(wpa_s, ssid))
127 ssid = ssid->next;
130 /* ap_scan=2 mode - try to associate with each SSID. */
131 if (ssid == NULL) {
138 if (ssid->next) {
139 /* Continue from the next SSID on the next attempt. */
140 wpa_s->prev_scan_ssid = ssid;
142 /* Start from the beginning of the SSID list. */
145 wpa_supplicant_associate(wpa_s, NULL, ssid);
304 struct wpa_ssid *ssid;
311 for (count = 0, ssid = conf->ssid; ssid; ssid = ssid->next) {
312 if (ssid->ssid && ssid->ssid_len)
321 for (ssid = conf->ssid; ssid; ssid = ssid->next) {
322 if (!ssid->ssid || !ssid->ssid_len)
324 os_memcpy(ssids[*num_ssids].ssid, ssid->ssid, ssid->ssid_len);
325 ssids[*num_ssids].ssid_len = ssid->ssid_len;
511 struct wpa_ssid *ssid;
513 for (ssid = wpa_s->conf->ssid; ssid; ssid = ssid->next) {
514 if (wpas_network_disabled(wpa_s, ssid))
516 if (!ssid->p2p_group)
577 struct wpa_ssid *ssid;
587 ssid = wpa_config_get_network(wpa_s->conf, wpa_s->scan_id[i]);
588 if (!ssid || !ssid->scan_ssid)
592 if (params->ssids[j].ssid_len == ssid->ssid_len &&
593 params->ssids[j].ssid &&
594 os_memcmp(params->ssids[j].ssid, ssid->ssid,
595 ssid->ssid_len) == 0)
607 wpa_printf(MSG_DEBUG, "Scan SSID (manual request): %s",
608 wpa_ssid_txt(ssid->ssid, ssid->ssid_len));
609 params->ssids[params->num_ssids].ssid = ssid->ssid;
610 params->ssids[params->num_ssids].ssid_len = ssid->ssid_len;
635 params->ssids[i].ssid = wpa_s->ssids_from_scan_req[i].ssid;
638 wpa_hexdump_ascii(MSG_DEBUG, "specific SSID",
639 params->ssids[i].ssid,
652 struct wpa_ssid *ssid;
706 ssid = NULL;
710 for (ssid = wpa_s->conf->ssid; ssid; ssid = ssid->next) {
711 if (ssid == wpa_s->connect_without_scan)
718 (!ssid ||
719 (ssid->mode != WPAS_MODE_AP && ssid->mode != WPAS_MODE_P2P_GO))) {
738 if (ssid) {
741 wpa_supplicant_associate(wpa_s, NULL, ssid);
770 wpa_printf(MSG_DEBUG, "P2P: Use specific SSID for scan during P2P group formation (p2p_in_provisioning=%d show_group_started=%d)",
773 params.ssids[0].ssid = wpa_s->go_params->ssid;
781 wpa_printf(MSG_DEBUG, "P2P: Use specific SSID for scan during invitation");
782 params.ssids[0].ssid = wpa_s->current_ssid->ssid;
787 wpa_printf(MSG_DEBUG, "P2P: No specific SSID known for scan during invitation");
794 ssid = wpa_s->conf->ssid;
796 while (ssid) {
797 if (ssid == wpa_s->prev_scan_ssid) {
798 ssid = ssid->next;
801 ssid = ssid->next;
812 wpa_supplicant_assoc_try(wpa_s, ssid);
817 * wildcard SSID.
819 ssid = NULL;
822 * Perform single-channel single-SSID scan for
825 /* Setup SSID */
826 ssid = wpa_s->current_ssid;
827 wpa_hexdump_ascii(MSG_DEBUG, "Scan SSID",
828 ssid->ssid, ssid->ssid_len);
829 params.ssids[0].ssid = ssid->ssid;
830 params.ssids[0].ssid_len = ssid->ssid_len;
851 struct wpa_ssid *start = ssid, *tssid;
853 if (ssid == NULL && max_ssids > 1)
854 ssid = wpa_s->conf->ssid;
855 while (ssid) {
856 if (!wpas_network_disabled(wpa_s, ssid) &&
857 ssid->scan_ssid) {
858 wpa_hexdump_ascii(MSG_DEBUG, "Scan SSID",
859 ssid->ssid, ssid->ssid_len);
860 params.ssids[params.num_ssids].ssid =
861 ssid->ssid;
863 ssid->ssid_len;
868 ssid = ssid->next;
869 if (ssid == start)
871 if (ssid == NULL && max_ssids > 1 &&
872 start != wpa_s->conf->ssid)
873 ssid = wpa_s->conf->ssid;
880 for (tssid = wpa_s->conf->ssid;
897 if (ssid && max_ssids == 1) {
899 * If the driver is limited to 1 SSID at a time interleave
900 * wildcard SSID scans with specific SSID scans to avoid
904 params.ssids[0].ssid = NULL;
908 "wildcard SSID (Interleave with specific)");
910 wpa_s->prev_scan_ssid = ssid;
913 "Starting AP scan for specific SSID: %s",
914 wpa_ssid_txt(ssid->ssid, ssid->ssid_len));
916 } else if (ssid) {
919 wpa_s->prev_scan_ssid = ssid;
920 wpa_dbg(wpa_s, MSG_DEBUG, "Include wildcard SSID in "
933 "SSID");
1021 params.ssids[0].ssid = bss->ssid;
1025 " and SSID %s",
1027 wpa_ssid_txt(bss->ssid, bss->ssid_len));
1197 struct wpa_ssid *ssid = NULL;
1221 for (ssid = wpa_s->conf->ssid; ssid; ssid = ssid->next) {
1222 if (!wpas_network_disabled(wpa_s, ssid) && !ssid->scan_ssid) {
1223 /* Use wildcard SSID to find this network */
1225 } else if (!wpas_network_disabled(wpa_s, ssid) &&
1226 ssid->ssid_len)
1230 if (!wpas_network_disabled(wpa_s, ssid) &&
1231 ssid->key_mgmt == WPA_KEY_MGMT_WPS) {
1280 ssid = wpa_s->conf->ssid;
1282 while (ssid) {
1283 if (ssid == wpa_s->prev_sched_ssid) {
1284 ssid = ssid->next;
1287 ssid = ssid->next;
1291 if (!ssid || !wpa_s->prev_sched_ssid) {
1292 wpa_dbg(wpa_s, MSG_DEBUG, "Beginning of SSID list");
1295 ssid = wpa_s->conf->ssid;
1296 wpa_s->prev_sched_ssid = ssid;
1300 wpa_dbg(wpa_s, MSG_DEBUG, "Add wildcard SSID to sched_scan");
1304 while (ssid) {
1305 if (wpas_network_disabled(wpa_s, ssid))
1309 params.filter_ssids && ssid->ssid && ssid->ssid_len) {
1310 wpa_dbg(wpa_s, MSG_DEBUG, "add to filter ssid: %s",
1311 wpa_ssid_txt(ssid->ssid, ssid->ssid_len));
1312 os_memcpy(params.filter_ssids[params.num_filter_ssids].ssid,
1313 ssid->ssid, ssid->ssid_len);
1315 ssid->ssid_len;
1317 } else if (params.filter_ssids && ssid->ssid && ssid->ssid_len)
1319 wpa_dbg(wpa_s, MSG_DEBUG, "Not enough room for SSID "
1326 if (ssid->scan_ssid && ssid->ssid && ssid->ssid_len) {
1328 break; /* only room for broadcast SSID */
1330 "add to active scan ssid: %s",
1331 wpa_ssid_txt(ssid->ssid, ssid->ssid_len));
1332 params.ssids[params.num_ssids].ssid =
1333 ssid->ssid;
1335 ssid->ssid_len;
1338 wpa_s->prev_sched_ssid = ssid;
1340 ssid = ssid->next;
1341 } while (ssid &&
1342 (wpas_network_disabled(wpa_s, ssid) ||
1343 !ssid->scan_ssid));
1349 wpa_s->prev_sched_ssid = ssid;
1350 ssid = ssid->next;
1381 * too many SSID's, so in this case use only the last scan plan and make
1385 (wpa_s->sched_scan_plans_num && !ssid && wpa_s->first_sched_scan)) {
1415 if (ssid || !wpa_s->first_sched_scan) {
1446 if (ssid || !wpa_s->first_sched_scan) {
1464 if (!ssid)
2215 if (src->ssids[i].ssid) {
2219 os_memcpy(n, src->ssids[i].ssid,
2221 params->ssids[i].ssid = n;
2317 os_free((u8 *) params->ssids[i].ssid);
2339 struct wpa_ssid *ssid;
2377 ssid = wpa_s->conf->ssid;
2378 while (ssid) {
2379 if (!wpas_network_disabled(wpa_s, ssid)) {
2381 if (ssid->scan_ssid)
2384 ssid = ssid->next;
2414 ssid = wpa_s->conf->pssid[prio];
2415 while (ssid) {
2416 if (!wpas_network_disabled(wpa_s, ssid)) {
2417 if (ssid->scan_ssid && params.num_ssids < num_ssid) {
2418 params.ssids[params.num_ssids].ssid =
2419 ssid->ssid;
2421 ssid->ssid_len;
2424 os_memcpy(params.filter_ssids[i].ssid, ssid->ssid,
2425 ssid->ssid_len);
2426 params.filter_ssids[i].ssid_len = ssid->ssid_len;
2432 if (ssid->pnext)
2433 ssid = ssid->pnext;
2437 ssid = wpa_s->conf->pssid[++prio];