All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: [PATCH 04/10] dpp: put no station device print behind else if
@ 2022-01-12 15:39 Denis Kenzior
  0 siblings, 0 replies; 2+ messages in thread
From: Denis Kenzior @ 2022-01-12 15:39 UTC (permalink / raw)
  To: iwd

[-- Attachment #1: Type: text/plain, Size: 437 bytes --]

Hi James,

On 1/11/22 18:55, James Prestwood wrote:
> The previous (incorrect) else was removed since it ended up
> printing in most cases since the if clause returned. This should
> have been an else if conditional from the start and only print if the
> station device was not found.
> ---
>   src/dpp.c | 5 ++---
>   1 file changed, 2 insertions(+), 3 deletions(-)
> 

Patches 4 and 5 applied, thanks.

Regards,
-Denis

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [PATCH 04/10] dpp: put no station device print behind else if
@ 2022-01-12  0:55 James Prestwood
  0 siblings, 0 replies; 2+ messages in thread
From: James Prestwood @ 2022-01-12  0:55 UTC (permalink / raw)
  To: iwd

[-- Attachment #1: Type: text/plain, Size: 951 bytes --]

The previous (incorrect) else was removed since it ended up
printing in most cases since the if clause returned. This should
have been an else if conditional from the start and only print if the
station device was not found.
---
 src/dpp.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/src/dpp.c b/src/dpp.c
index c10ec978..5e07a61a 100644
--- a/src/dpp.c
+++ b/src/dpp.c
@@ -1717,9 +1717,8 @@ static struct l_dbus_message *dpp_dbus_start_enrollee(struct l_dbus *dbus,
 	if (station && station_get_connected_network(station)) {
 		l_warn("cannot be enrollee while connected, please disconnect");
 		return dbus_error_busy(message);
-	}
-
-	l_debug("No station device, continuing anyways...");
+	} else if (!station)
+		l_debug("No station device, continuing anyways...");
 
 	dpp->uri = dpp_generate_uri(dpp->pub_asn1, dpp->pub_asn1_len, 2,
 					netdev_get_address(dpp->netdev), &freq,
-- 
2.31.1

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-01-12 15:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-12 15:39 [PATCH 04/10] dpp: put no station device print behind else if Denis Kenzior
  -- strict thread matches above, loose matches on Subject: below --
2022-01-12  0:55 James Prestwood

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.