Lines Matching defs:selected
884 struct wpa_bss *selected;
898 selected = wpa_supplicant_pick_network(wpa_s, &sel_ssid);
899 if (selected && sel_ssid && sel_ssid->priority > ssid->priority)
1372 struct wpa_cred *cred, *selected = NULL;
1412 if (selected == NULL) {
1413 selected = cred;
1417 if (selected == NULL || is_excluded ||
1418 cred_prio_cmp(selected, cred) < 0) {
1419 selected = cred;
1428 return selected;
1931 struct wpa_cred *selected = NULL;
2031 if (selected == NULL) {
2032 selected = cred;
2036 if (selected == NULL || is_excluded ||
2037 cred_prio_cmp(selected, cred) < 0) {
2038 selected = cred;
2048 return selected;
2056 struct wpa_cred *cred, *selected = NULL;
2099 if (selected == NULL) {
2100 selected = cred;
2104 if (selected == NULL || is_excluded ||
2105 cred_prio_cmp(selected, cred) < 0)
2107 selected = cred;
2124 return selected;
2378 struct wpa_bss *selected,
2390 best_prio = roaming_prio(wpa_s, cred, selected);
2391 wpa_printf(MSG_DEBUG, "Interworking: roaming_prio=%u for selected BSS "
2392 MACSTR " (cred=%d)", best_prio, MAC2STR(selected->bssid),
2396 if (bss == selected)
2409 bh1 = cred_below_min_backhaul(wpa_s, cred, selected);
2410 load1 = cred_over_max_bss_load(wpa_s, cred, selected);
2411 conn1 = cred_conn_capab_missing(wpa_s, cred, selected);
2418 wpa_printf(MSG_DEBUG, "Interworking: Better roaming partner " MACSTR " selected", MAC2STR(bss->bssid));
2420 selected = bss;
2425 return selected;
2431 struct wpa_bss *bss, *selected = NULL, *selected_home = NULL;
2507 wpa_printf(MSG_DEBUG, "Interworking: Mark as selected");
2508 selected = bss;
2523 if (selected_home && selected_home != selected &&
2528 wpa_printf(MSG_DEBUG, "Interworking: Overrided selected with selected_home");
2529 selected = selected_home;
2533 if (!selected) {
2535 wpa_printf(MSG_DEBUG, "Interworking: Use home BSS with BW limit mismatch since no other network could be selected");
2536 selected = selected2_home;
2539 wpa_printf(MSG_DEBUG, "Interworking: Use visited BSS with BW limit mismatch since no other network could be selected");
2540 selected = selected2;
2574 if (selected) {
2576 MAC2STR(selected->bssid));
2577 selected = pick_best_roaming_partner(wpa_s, selected,
2581 MAC2STR(selected->bssid));
2583 MAC2STR(selected->bssid));
2584 interworking_connect(wpa_s, selected, 0);