3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-22 23:09:34 +01:00

network: Refactor debug statement

This way the outcome of the decision whether to ask for the
passphrase or not can be seen.
This commit is contained in:
Tim Kourt 2019-08-15 16:44:24 -07:00 committed by Denis Kenzior
parent 636bf5749f
commit 1921990acd

View File

@ -787,9 +787,6 @@ static struct l_dbus_message *network_connect_psk(struct network *network,
*/ */
bool need_passphrase = bss_is_sae(bss); bool need_passphrase = bss_is_sae(bss);
l_debug("ask_passphrase: %s",
network->ask_passphrase ? "true" : "false");
if (!network_settings_load(network)) { if (!network_settings_load(network)) {
network->settings = l_settings_new(); network->settings = l_settings_new();
network->ask_passphrase = true; network->ask_passphrase = true;
@ -797,6 +794,9 @@ static struct l_dbus_message *network_connect_psk(struct network *network,
network->ask_passphrase = network->ask_passphrase =
network_load_psk(network, need_passphrase) < 0; network_load_psk(network, need_passphrase) < 0;
l_debug("ask_passphrase: %s",
network->ask_passphrase ? "true" : "false");
if (network->ask_passphrase) { if (network->ask_passphrase) {
network->ask_passphrase = false; network->ask_passphrase = false;