Lines Matching refs:ssid
29 struct wpa_ssid *ssid; in wpa_supplicant_gen_assoc_event() local
32 ssid = wpa_supplicant_get_ssid(wpa_s); in wpa_supplicant_gen_assoc_event()
33 if (ssid == NULL) in wpa_supplicant_gen_assoc_event()
37 wpa_s->current_ssid = ssid; in wpa_supplicant_gen_assoc_event()
53 struct wpa_ssid *ssid; in wpas_wps_in_use() local
56 for (ssid = wpa_s->conf->ssid; ssid; ssid = ssid->next) { in wpas_wps_in_use()
57 if (!(ssid->key_mgmt & WPA_KEY_MGMT_WPS)) in wpas_wps_in_use()
61 *req_type = wpas_wps_get_req_type(ssid); in wpas_wps_in_use()
62 if (!ssid->eap.phase1) in wpas_wps_in_use()
65 if (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
98 while (ssid) { in wpa_supplicant_enabled_networks()
99 if (!wpas_network_disabled(wpa_s, ssid)) in wpa_supplicant_enabled_networks()
103 ssid = ssid->next; in wpa_supplicant_enabled_networks()
117 struct wpa_ssid *ssid) in wpa_supplicant_assoc_try() argument
119 while (ssid) { in wpa_supplicant_assoc_try()
120 if (!wpas_network_disabled(wpa_s, ssid)) in wpa_supplicant_assoc_try()
122 ssid = ssid->next; in wpa_supplicant_assoc_try()
126 if (ssid == NULL) { in wpa_supplicant_assoc_try()
133 if (ssid->next) { in wpa_supplicant_assoc_try()
135 wpa_s->prev_scan_ssid = ssid; in wpa_supplicant_assoc_try()
140 wpa_supplicant_associate(wpa_s, NULL, ssid); in wpa_supplicant_assoc_try()
305 struct wpa_ssid *ssid; in wpa_supplicant_build_filter_ssids() local
312 for (count = 0, ssid = conf->ssid; ssid; ssid = ssid->next) { in wpa_supplicant_build_filter_ssids()
313 if (ssid->ssid && ssid->ssid_len) in wpa_supplicant_build_filter_ssids()
322 for (ssid = conf->ssid; ssid; ssid = ssid->next) { in wpa_supplicant_build_filter_ssids()
323 if (!ssid->ssid || !ssid->ssid_len) in wpa_supplicant_build_filter_ssids()
325 os_memcpy(ssids[*num_ssids].ssid, ssid->ssid, ssid->ssid_len); in wpa_supplicant_build_filter_ssids()
326 ssids[*num_ssids].ssid_len = ssid->ssid_len; in wpa_supplicant_build_filter_ssids()
468 struct wpa_ssid *ssid; in non_p2p_network_enabled() local
470 for (ssid = wpa_s->conf->ssid; ssid; ssid = ssid->next) { in non_p2p_network_enabled()
471 if (wpas_network_disabled(wpa_s, ssid)) in non_p2p_network_enabled()
473 if (!ssid->p2p_group) in non_p2p_network_enabled()
529 struct wpa_ssid *ssid; in wpa_supplicant_scan() local
622 for (ssid = wpa_s->conf->ssid; ssid; ssid = ssid->next) { in wpa_supplicant_scan()
623 if (ssid == wpa_s->connect_without_scan) in wpa_supplicant_scan()
627 if (ssid) { in wpa_supplicant_scan()
630 wpa_supplicant_associate(wpa_s, NULL, ssid); in wpa_supplicant_scan()
640 params.ssids[0].ssid = wpa_s->go_params->ssid; in wpa_supplicant_scan()
648 ssid = wpa_s->conf->ssid; in wpa_supplicant_scan()
650 while (ssid) { in wpa_supplicant_scan()
651 if (ssid == wpa_s->prev_scan_ssid) { in wpa_supplicant_scan()
652 ssid = ssid->next; in wpa_supplicant_scan()
655 ssid = ssid->next; in wpa_supplicant_scan()
662 wpa_supplicant_assoc_try(wpa_s, ssid); in wpa_supplicant_scan()
670 ssid = NULL; in wpa_supplicant_scan()
673 struct wpa_ssid *start = ssid, *tssid; in wpa_supplicant_scan()
675 if (ssid == NULL && max_ssids > 1) in wpa_supplicant_scan()
676 ssid = wpa_s->conf->ssid; in wpa_supplicant_scan()
677 while (ssid) { in wpa_supplicant_scan()
678 if (!wpas_network_disabled(wpa_s, ssid) && in wpa_supplicant_scan()
679 ssid->scan_ssid) { in wpa_supplicant_scan()
681 ssid->ssid, ssid->ssid_len); in wpa_supplicant_scan()
682 params.ssids[params.num_ssids].ssid = in wpa_supplicant_scan()
683 ssid->ssid; in wpa_supplicant_scan()
685 ssid->ssid_len; in wpa_supplicant_scan()
690 ssid = ssid->next; in wpa_supplicant_scan()
691 if (ssid == start) in wpa_supplicant_scan()
693 if (ssid == NULL && max_ssids > 1 && in wpa_supplicant_scan()
694 start != wpa_s->conf->ssid) in wpa_supplicant_scan()
695 ssid = wpa_s->conf->ssid; in wpa_supplicant_scan()
698 for (tssid = wpa_s->conf->ssid; tssid; tssid = tssid->next) { in wpa_supplicant_scan()
713 if (ssid && max_ssids == 1) { in wpa_supplicant_scan()
720 params.ssids[0].ssid = NULL; in wpa_supplicant_scan()
726 wpa_s->prev_scan_ssid = ssid; in wpa_supplicant_scan()
730 wpa_ssid_txt(ssid->ssid, ssid->ssid_len)); in wpa_supplicant_scan()
732 } else if (ssid) { in wpa_supplicant_scan()
735 wpa_s->prev_scan_ssid = ssid; in wpa_supplicant_scan()
875 struct wpa_ssid *ssid = wpa_s->conf->ssid; in wpa_supplicant_req_scan() local
877 while (ssid) { in wpa_supplicant_req_scan()
878 if (!wpas_network_disabled(wpa_s, ssid) && in wpa_supplicant_req_scan()
879 ssid->scan_ssid) in wpa_supplicant_req_scan()
881 ssid = ssid->next; in wpa_supplicant_req_scan()
883 if (ssid) { in wpa_supplicant_req_scan()
934 struct wpa_ssid *ssid = NULL; in wpa_supplicant_req_sched_scan() local
957 for (ssid = wpa_s->conf->ssid; ssid; ssid = ssid->next) { in wpa_supplicant_req_sched_scan()
958 if (!wpas_network_disabled(wpa_s, ssid) && !ssid->scan_ssid) { in wpa_supplicant_req_sched_scan()
961 } else if (!wpas_network_disabled(wpa_s, ssid) && in wpa_supplicant_req_sched_scan()
962 ssid->ssid_len) in wpa_supplicant_req_sched_scan()
966 if (!wpas_network_disabled(wpa_s, ssid) && in wpa_supplicant_req_sched_scan()
967 ssid->key_mgmt == WPA_KEY_MGMT_WPS) { in wpa_supplicant_req_sched_scan()
1018 ssid = wpa_s->conf->ssid; in wpa_supplicant_req_sched_scan()
1020 while (ssid) { in wpa_supplicant_req_sched_scan()
1021 if (ssid == wpa_s->prev_sched_ssid) { in wpa_supplicant_req_sched_scan()
1022 ssid = ssid->next; in wpa_supplicant_req_sched_scan()
1025 ssid = ssid->next; in wpa_supplicant_req_sched_scan()
1029 if (!ssid || !wpa_s->prev_sched_ssid) { in wpa_supplicant_req_sched_scan()
1036 ssid = wpa_s->conf->ssid; in wpa_supplicant_req_sched_scan()
1037 wpa_s->prev_sched_ssid = ssid; in wpa_supplicant_req_sched_scan()
1045 while (ssid) { in wpa_supplicant_req_sched_scan()
1046 if (wpas_network_disabled(wpa_s, ssid)) in wpa_supplicant_req_sched_scan()
1050 params.filter_ssids && ssid->ssid && ssid->ssid_len) { in wpa_supplicant_req_sched_scan()
1052 wpa_ssid_txt(ssid->ssid, ssid->ssid_len)); in wpa_supplicant_req_sched_scan()
1053 os_memcpy(params.filter_ssids[params.num_filter_ssids].ssid, in wpa_supplicant_req_sched_scan()
1054 ssid->ssid, ssid->ssid_len); in wpa_supplicant_req_sched_scan()
1056 ssid->ssid_len; in wpa_supplicant_req_sched_scan()
1058 } else if (params.filter_ssids && ssid->ssid && ssid->ssid_len) in wpa_supplicant_req_sched_scan()
1067 if (ssid->scan_ssid && ssid->ssid && ssid->ssid_len) { in wpa_supplicant_req_sched_scan()
1072 wpa_ssid_txt(ssid->ssid, ssid->ssid_len)); in wpa_supplicant_req_sched_scan()
1073 params.ssids[params.num_ssids].ssid = in wpa_supplicant_req_sched_scan()
1074 ssid->ssid; in wpa_supplicant_req_sched_scan()
1076 ssid->ssid_len; in wpa_supplicant_req_sched_scan()
1079 wpa_s->prev_sched_ssid = ssid; in wpa_supplicant_req_sched_scan()
1081 ssid = ssid->next; in wpa_supplicant_req_sched_scan()
1082 } while (ssid && in wpa_supplicant_req_sched_scan()
1083 (wpas_network_disabled(wpa_s, ssid) || in wpa_supplicant_req_sched_scan()
1084 !ssid->scan_ssid)); in wpa_supplicant_req_sched_scan()
1090 wpa_s->prev_sched_ssid = ssid; in wpa_supplicant_req_sched_scan()
1091 ssid = ssid->next; in wpa_supplicant_req_sched_scan()
1108 if (ssid || !wpa_s->first_sched_scan) { in wpa_supplicant_req_sched_scan()
1130 if (ssid || !wpa_s->first_sched_scan) { in wpa_supplicant_req_sched_scan()
1145 if (!ssid) in wpa_supplicant_req_sched_scan()