summaryrefslogtreecommitdiffstats
path: root/binding-wifi/wifi-api.c
diff options
context:
space:
mode:
authorMatt Ranostay <matt.ranostay@konsulko.com>2017-12-18 18:48:10 -0800
committerWalt Miner <walt@linux.com>2017-12-19 07:34:02 +0000
commite12b97e7622a9cb1c7b76b777e38758ddcfcc7c2 (patch)
treef935bf8aff3f040cc09f0da98f872070e420fd10 /binding-wifi/wifi-api.c
parentb502af811a782bdda3a6c56567fdc2c7f7b44609 (diff)
Don't attempt to keep checking wifi state if there isn't wifi card detected by Connman on startup. Also check the error state of setHMIStatus() to deduce if another attempt is required. Bug-AGL: SPEC-1201 Change-Id: Ica9dc3db62ad1b41a86b365edae0bf4e3447db16 Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com> (cherry picked from commit 4c41e635d3006ee847079dd28d8333a58ac8e71f)
Diffstat (limited to 'binding-wifi/wifi-api.c')
-rw-r--r--binding-wifi/wifi-api.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/binding-wifi/wifi-api.c b/binding-wifi/wifi-api.c
index 45341e3..2117d6d 100644
--- a/binding-wifi/wifi-api.c
+++ b/binding-wifi/wifi-api.c
@@ -678,13 +678,13 @@ gboolean initial_homescreen(gpointer ptr)
if (ret < 0) {
g_object_unref(status);
- return TRUE;
+ return FALSE;
}
error = setHMIStatus(status->connected == 1 ? BAR_FULL : BAR_NO);
g_error_free(error);
- return ret != NULL;
+ return error != NULL;
}
static void *thread_func()