Lines Matching full:ssid
27 struct wpa_ssid *ssid;
30 ssid = wpa_supplicant_get_ssid(wpa_s);
31 if (ssid == NULL)
35 wpa_s->current_ssid = ssid;
51 struct wpa_ssid *ssid;
54 for (ssid = wpa_s->conf->ssid; ssid; ssid = ssid->next) {
55 if (!(ssid->key_mgmt & WPA_KEY_MGMT_WPS))
59 *req_type = wpas_wps_get_req_type(ssid);
60 if (!ssid->eap.phase1)
63 if (os_strstr(ssid->eap.phase1, "pbc=1"))
84 struct wpa_ssid *ssid = conf->ssid;
86 while (ssid) {
87 if (!ssid->disabled)
89 ssid = ssid->next;
96 struct wpa_ssid *ssid)
98 while (ssid) {
99 if (!ssid->disabled)
101 ssid = ssid->next;
104 /* ap_scan=2 mode - try to associate with each SSID. */
105 if (ssid == NULL) {
112 if (ssid->next) {
113 /* Continue from the next SSID on the next attempt. */
114 wpa_s->prev_scan_ssid = ssid;
116 /* Start from the beginning of the SSID list. */
119 wpa_supplicant_associate(wpa_s, NULL, ssid);
277 struct wpa_ssid *ssid;
284 for (count = 0, ssid = conf->ssid; ssid; ssid = ssid->next) {
285 if (ssid->ssid && ssid->ssid_len)
294 for (ssid = conf->ssid; ssid; ssid = ssid->next) {
295 if (!ssid->ssid || !ssid->ssid_len)
297 os_memcpy(ssids[*num_ssids].ssid, ssid->ssid, ssid->ssid_len);
298 ssids[*num_ssids].ssid_len = ssid->ssid_len;
435 struct wpa_ssid *ssid;
505 for (ssid = wpa_s->conf->ssid; ssid; ssid = ssid->next) {
506 if (ssid == wpa_s->connect_without_scan)
510 if (ssid) {
513 wpa_supplicant_associate(wpa_s, NULL, ssid);
519 ssid = wpa_s->conf->ssid;
521 while (ssid) {
522 if (ssid == wpa_s->prev_scan_ssid) {
523 ssid = ssid->next;
526 ssid = ssid->next;
533 wpa_supplicant_assoc_try(wpa_s, ssid);
539 * wildcard SSID.
541 ssid = NULL;
544 struct wpa_ssid *start = ssid, *tssid;
546 if (ssid == NULL && max_ssids > 1)
547 ssid = wpa_s->conf->ssid;
548 while (ssid) {
549 if (!ssid->disabled && ssid->scan_ssid) {
550 wpa_hexdump_ascii(MSG_DEBUG, "Scan SSID",
551 ssid->ssid, ssid->ssid_len);
552 params.ssids[params.num_ssids].ssid =
553 ssid->ssid;
555 ssid->ssid_len;
560 ssid = ssid->next;
561 if (ssid == start)
563 if (ssid == NULL && max_ssids > 1 &&
564 start != wpa_s->conf->ssid)
565 ssid = wpa_s->conf->ssid;
568 for (tssid = wpa_s->conf->ssid; tssid; tssid = tssid->next) {
583 if (ssid && max_ssids == 1) {
585 * If the driver is limited to 1 SSID at a time interleave
586 * wildcard SSID scans with specific SSID scans to avoid
590 params.ssids[0].ssid = NULL;
594 "wildcard SSID (Interleave with specific)");
596 wpa_s->prev_scan_ssid = ssid;
599 "Starting AP scan for specific SSID: %s",
600 wpa_ssid_txt(ssid->ssid, ssid->ssid_len));
602 } else if (ssid) {
605 wpa_s->prev_scan_ssid = ssid;
606 wpa_dbg(wpa_s, MSG_DEBUG, "Include wildcard SSID in "
613 "SSID");
674 * causes the specific SSID scan to get continually pushed back and
679 struct wpa_ssid *ssid = wpa_s->conf->ssid;
681 while (ssid) {
682 if (!ssid->disabled && ssid->scan_ssid)
684 ssid = ssid->next;
686 if (ssid) {
688 "ensure that specific SSID scans occur");
734 struct wpa_ssid *ssid;
757 for (ssid = wpa_s->conf->ssid; ssid; ssid = ssid->next) {
758 if (!ssid->disabled && !ssid->scan_ssid) {
759 /* Use wildcard SSID to find this network */
761 } else if (!ssid->disabled && ssid->ssid_len)
797 ssid = wpa_s->conf->ssid;
799 while (ssid) {
800 if (ssid == wpa_s->prev_sched_ssid) {
801 ssid = ssid->next;
804 ssid = ssid->next;
808 if (!ssid || !wpa_s->prev_sched_ssid) {
809 wpa_dbg(wpa_s, MSG_DEBUG, "Beginning of SSID list");
814 ssid = wpa_s->conf->ssid;
815 wpa_s->prev_sched_ssid = ssid;
819 wpa_dbg(wpa_s, MSG_DEBUG, "Add wildcard SSID to sched_scan");
823 while (ssid) {
824 if (ssid->disabled)
828 params.filter_ssids && ssid->ssid && ssid->ssid_len) {
829 wpa_dbg(wpa_s, MSG_DEBUG, "add to filter ssid: %s",
830 wpa_ssid_txt(ssid->ssid, ssid->ssid_len));
831 os_memcpy(params.filter_ssids[params.num_filter_ssids].ssid,
832 ssid->ssid, ssid->ssid_len);
834 ssid->ssid_len;
836 } else if (params.filter_ssids && ssid->ssid && ssid->ssid_len)
838 wpa_dbg(wpa_s, MSG_DEBUG, "Not enough room for SSID "
845 if (ssid->scan_ssid && ssid->ssid && ssid->ssid_len) {
847 break; /* only room for broadcast SSID */
849 "add to active scan ssid: %s",
850 wpa_ssid_txt(ssid->ssid, ssid->ssid_len));
851 params.ssids[params.num_ssids].ssid =
852 ssid->ssid;
854 ssid->ssid_len;
857 wpa_s->prev_sched_ssid = ssid;
863 wpa_s->prev_sched_ssid = ssid;
864 ssid = ssid->next;
875 if (ssid || !wpa_s->first_sched_scan) {
897 if (ssid || !wpa_s->first_sched_scan) {