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
1 changed files with 3 additions and 3 deletions

View File

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