3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-12-22 21:22:37 +01:00

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

View File

@ -266,13 +266,13 @@ static bool process_bss(struct device *device, struct scan_bss *bss,
bss->frequency, bss->rank, bss->signal_strength); bss->frequency, bss->rank, bss->signal_strength);
if (util_ssid_is_hidden(bss->ssid_len, bss->ssid)) { 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; device->seen_hidden_networks = true;
return false; return false;
} }
if (!util_ssid_is_utf8(bss->ssid_len, bss->ssid)) { 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; return false;
} }