mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-26 10:39:23 +01:00
station: print reason why autoconnect failed
This commit is contained in:
parent
751db56045
commit
a3906272cc
@ -180,10 +180,11 @@ static void station_autoconnect_next(struct station *station)
|
|||||||
int r;
|
int r;
|
||||||
|
|
||||||
while ((entry = l_queue_pop_head(station->autoconnect_list))) {
|
while ((entry = l_queue_pop_head(station->autoconnect_list))) {
|
||||||
|
const char *ssid = network_get_ssid(entry->network);
|
||||||
|
|
||||||
l_debug("Considering autoconnecting to BSS '%s' with SSID: %s,"
|
l_debug("Considering autoconnecting to BSS '%s' with SSID: %s,"
|
||||||
" freq: %u, rank: %u, strength: %i",
|
" freq: %u, rank: %u, strength: %i",
|
||||||
util_address_to_string(entry->bss->addr),
|
util_address_to_string(entry->bss->addr), ssid,
|
||||||
network_get_ssid(entry->network),
|
|
||||||
entry->bss->frequency, entry->rank,
|
entry->bss->frequency, entry->rank,
|
||||||
entry->bss->signal_strength);
|
entry->bss->signal_strength);
|
||||||
|
|
||||||
@ -206,7 +207,8 @@ static void station_autoconnect_next(struct station *station)
|
|||||||
}
|
}
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
} else
|
||||||
|
l_debug("Failed to autoconnect to %s (%d)", ssid, r);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user