diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2010-06-12 14:57:30 +0200 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2010-06-12 14:57:30 +0200 |
commit | 9908fa996e14f9ee8ae7b14faf921911fb759f83 (patch) | |
tree | cae9b6428cf04a0d500440f1c8fcab784bc3a827 /plugins | |
parent | d1a845b0fa62067f10bb328433c23d52426f4a7d (diff) | |
download | connman-9908fa996e14f9ee8ae7b14faf921911fb759f83.tar.gz connman-9908fa996e14f9ee8ae7b14faf921911fb759f83.tar.bz2 connman-9908fa996e14f9ee8ae7b14faf921911fb759f83.zip |
Fix invalid D-Bus path with finished scans without hidden SSIDs
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/supplicant.c | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/plugins/supplicant.c b/plugins/supplicant.c index f7e9a1b4..276fd913 100644 --- a/plugins/supplicant.c +++ b/plugins/supplicant.c @@ -1940,12 +1940,15 @@ static void get_properties(struct supplicant_task *task) char *path; path = g_slist_nth_data(task->scan_results, 0); - if (path == NULL && task->hidden_found == TRUE) { - /* - * We're done with regular scanning, let's enable the missing - * network blocks if there are hidden SSIDs around. - */ - hidden_block_enable(task); + if (path == NULL) { + if (task->hidden_found == TRUE) { + /* + * We're done with regular scanning, let's enable + * the missing network blocks if there are hidden + * SSIDs around. + */ + hidden_block_enable(task); + } goto noscan; } |