struct connman_network *pending_network;
char *path;
char *netpath;
+ gboolean hidden_found;
GHashTable *hidden_blocks;
gboolean created;
enum supplicant_state state;
}
}
+ if (result.ssid == NULL)
+ task->hidden_found = TRUE;
+
if (result.frequency > 0 && result.frequency < 14)
result.frequency = 2407 + (5 * result.frequency);
else if (result.frequency == 14)
char *path;
path = g_slist_nth_data(task->scan_results, 0);
- if (path == NULL) {
+ if (path == NULL && task->hidden_found == TRUE) {
/*
* We're done with regular scanning, let's enable the missing
- * network blocks.
+ * network blocks if there are hidden SSIDs around.
*/
hidden_block_enable(task);
goto noscan;
task->scan_results = g_slist_append(task->scan_results, path);
}
+ task->hidden_found = FALSE;
+
g_strfreev(results);
dbus_message_unref(reply);