connman.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
* [PATCH] service: Report errors to user in native mode
@ 2021-10-01 12:20 VAUTRIN Emmanuel (Canal Plus Prestataire)
  2021-10-04  6:34 ` Daniel Wagner
  0 siblings, 1 reply; 6+ messages in thread
From: VAUTRIN Emmanuel (Canal Plus Prestataire) @ 2021-10-01 12:20 UTC (permalink / raw)
  To: connman

When the native mode is activated, the user still needs to be informed
of errors in failure state, via the agent.
---
 src/service.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/service.c b/src/service.c
index 8097f5373250..70ff26e6a4a1 100644
--- a/src/service.c
+++ b/src/service.c
@@ -6139,7 +6139,8 @@ static int service_indicate_state(struct connman_service *service)
 		break;
 
 	case CONNMAN_SERVICE_STATE_FAILURE:
-		if (service->connect_reason == CONNMAN_SERVICE_CONNECT_REASON_USER) {
+		if (service->connect_reason == CONNMAN_SERVICE_CONNECT_REASON_USER ||
+		service->connect_reason == CONNMAN_SERVICE_CONNECT_REASON_NATIVE) {
 			connman_agent_report_error(service, service->path,
 						error2string(service->error),
 						report_error_cb,
-- 
2.25.1


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

end of thread, other threads:[~2021-10-06 12:41 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-01 12:20 [PATCH] service: Report errors to user in native mode VAUTRIN Emmanuel (Canal Plus Prestataire)
2021-10-04  6:34 ` Daniel Wagner
2021-10-04  8:08   ` VAUTRIN Emmanuel (Canal Plus Prestataire)
2021-10-04  8:41     ` Daniel Wagner
2021-10-04  9:47       ` VAUTRIN Emmanuel (Canal Plus Prestataire)
2021-10-06 12:41         ` Daniel Wagner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).