device: make the output less verbose

Having hidden SSIDs or SSIDs with non-UTF8 characters around make iwd
flood the logs with messages. Make iwd less verbose and show these
messages with enabled debug output only.
This commit is contained in:
Christian Hesse 2018-07-13 12:56:51 +02:00 committed by Denis Kenzior
parent 2f410dadf2
commit 22e5ba2133
1 changed files with 2 additions and 2 deletions

View File

@ -266,13 +266,13 @@ static bool process_bss(struct device *device, struct scan_bss *bss,
bss->frequency, bss->rank, bss->signal_strength);
if (util_ssid_is_hidden(bss->ssid_len, bss->ssid)) {
l_warn("Ignoring BSS with hidden SSID");
l_debug("Ignoring BSS with hidden SSID");
device->seen_hidden_networks = true;
return false;
}
if (!util_ssid_is_utf8(bss->ssid_len, bss->ssid)) {
l_warn("Ignoring BSS with non-UTF8 SSID");
l_debug("Ignoring BSS with non-UTF8 SSID");
return false;
}