Lines Matching refs:selected
878 struct wpa_bss *selected; in already_connected() local
892 selected = wpa_supplicant_pick_network(wpa_s, &sel_ssid); in already_connected()
893 if (selected && sel_ssid && sel_ssid->priority > ssid->priority) in already_connected()
1350 struct wpa_cred *cred, *selected = NULL; in interworking_credentials_available_roaming_consortium() local
1386 if (selected == NULL) { in interworking_credentials_available_roaming_consortium()
1387 selected = cred; in interworking_credentials_available_roaming_consortium()
1391 if (selected == NULL || is_excluded || in interworking_credentials_available_roaming_consortium()
1392 cred_prio_cmp(selected, cred) < 0) { in interworking_credentials_available_roaming_consortium()
1393 selected = cred; in interworking_credentials_available_roaming_consortium()
1402 return selected; in interworking_credentials_available_roaming_consortium()
1889 struct wpa_cred *selected = NULL; in interworking_credentials_available_3gpp() local
1989 if (selected == NULL) { in interworking_credentials_available_3gpp()
1990 selected = cred; in interworking_credentials_available_3gpp()
1994 if (selected == NULL || is_excluded || in interworking_credentials_available_3gpp()
1995 cred_prio_cmp(selected, cred) < 0) { in interworking_credentials_available_3gpp()
1996 selected = cred; in interworking_credentials_available_3gpp()
2006 return selected; in interworking_credentials_available_3gpp()
2014 struct wpa_cred *cred, *selected = NULL; in interworking_credentials_available_realm() local
2057 if (selected == NULL) { in interworking_credentials_available_realm()
2058 selected = cred; in interworking_credentials_available_realm()
2062 if (selected == NULL || is_excluded || in interworking_credentials_available_realm()
2063 cred_prio_cmp(selected, cred) < 0) in interworking_credentials_available_realm()
2065 selected = cred; in interworking_credentials_available_realm()
2082 return selected; in interworking_credentials_available_realm()
2336 struct wpa_bss *selected, in pick_best_roaming_partner() argument
2348 best_prio = roaming_prio(wpa_s, cred, selected); in pick_best_roaming_partner()
2350 MACSTR " (cred=%d)", best_prio, MAC2STR(selected->bssid), in pick_best_roaming_partner()
2354 if (bss == selected) in pick_best_roaming_partner()
2367 bh1 = cred_below_min_backhaul(wpa_s, cred, selected); in pick_best_roaming_partner()
2368 load1 = cred_over_max_bss_load(wpa_s, cred, selected); in pick_best_roaming_partner()
2369 conn1 = cred_conn_capab_missing(wpa_s, cred, selected); in pick_best_roaming_partner()
2378 selected = bss; in pick_best_roaming_partner()
2383 return selected; in pick_best_roaming_partner()
2389 struct wpa_bss *bss, *selected = NULL, *selected_home = NULL; in interworking_select_network() local
2466 selected = bss; in interworking_select_network()
2481 if (selected_home && selected_home != selected && in interworking_select_network()
2487 selected = selected_home; in interworking_select_network()
2491 if (!selected) { in interworking_select_network()
2494 selected = selected2_home; in interworking_select_network()
2498 selected = selected2; in interworking_select_network()
2532 if (selected) { in interworking_select_network()
2534 MAC2STR(selected->bssid)); in interworking_select_network()
2535 selected = pick_best_roaming_partner(wpa_s, selected, in interworking_select_network()
2539 MAC2STR(selected->bssid)); in interworking_select_network()
2541 MAC2STR(selected->bssid)); in interworking_select_network()
2542 interworking_connect(wpa_s, selected, 0); in interworking_select_network()