All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] station: print reason why autoconnect failed
@ 2021-05-04 15:09 James Prestwood
  2021-05-04 15:31 ` Denis Kenzior
  0 siblings, 1 reply; 2+ messages in thread
From: James Prestwood @ 2021-05-04 15:09 UTC (permalink / raw)
  To: iwd

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

---
 src/station.c | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/src/station.c b/src/station.c
index 442f8ee2..d2234e15 100644
--- a/src/station.c
+++ b/src/station.c
@@ -180,10 +180,11 @@ static void station_autoconnect_next(struct station *station)
 	int r;
 
 	while ((entry = l_queue_pop_head(station->autoconnect_list))) {
+		const char *ssid = network_get_ssid(entry->network);
+
 		l_debug("Considering autoconnecting to BSS '%s' with SSID: %s,"
 			" freq: %u, rank: %u, strength: %i",
-			util_address_to_string(entry->bss->addr),
-			network_get_ssid(entry->network),
+			util_address_to_string(entry->bss->addr), ssid,
 			entry->bss->frequency, entry->rank,
 			entry->bss->signal_strength);
 
@@ -206,7 +207,8 @@ static void station_autoconnect_next(struct station *station)
 			}
 
 			return;
-		}
+		} else
+			l_debug("Failed to autoconnect to %s (%d)", ssid, r);
 	}
 }
 
-- 
2.26.2

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

* Re: [PATCH] station: print reason why autoconnect failed
  2021-05-04 15:09 [PATCH] station: print reason why autoconnect failed James Prestwood
@ 2021-05-04 15:31 ` Denis Kenzior
  0 siblings, 0 replies; 2+ messages in thread
From: Denis Kenzior @ 2021-05-04 15:31 UTC (permalink / raw)
  To: iwd

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

Hi James,

On 5/4/21 10:09 AM, James Prestwood wrote:
> ---
>   src/station.c | 8 +++++---
>   1 file changed, 5 insertions(+), 3 deletions(-)
> 

Applied, thanks.

Regards,
-Denis

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

end of thread, other threads:[~2021-05-04 15:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-04 15:09 [PATCH] station: print reason why autoconnect failed James Prestwood
2021-05-04 15:31 ` Denis Kenzior

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.