Set AP scanning and make network available
authorMarcel Holtmann <marcel@holtmann.org>
Thu, 26 Mar 2009 09:25:09 +0000 (02:25 -0700)
committerMarcel Holtmann <marcel@holtmann.org>
Thu, 26 Mar 2009 09:25:09 +0000 (02:25 -0700)
plugins/supplicant.c
plugins/wifi.c

index 47b752801b433296c18dcfa266fa801bb8ec818d..66398673c188be252e246dd05348cd49a13fc3ec 100644 (file)
@@ -661,6 +661,7 @@ static int set_network(struct supplicant_task *task,
        DBusMessage *message, *reply;
        DBusMessageIter array, dict;
        DBusError error;
+       const char *scan = "1";
 
        DBG("task %p", task);
 
@@ -679,6 +680,9 @@ static int set_network(struct supplicant_task *task,
                        DBUS_TYPE_STRING_AS_STRING DBUS_TYPE_VARIANT_AS_STRING
                        DBUS_DICT_ENTRY_END_CHAR_AS_STRING, &dict);
 
+       connman_dbus_dict_append_variant(&dict, "scan_ssid",
+                                               DBUS_TYPE_STRING, &scan);
+
        connman_dbus_dict_append_array(&dict, "ssid",
                                        DBUS_TYPE_BYTE, &network, len);
 
index ab5765e5a455b90d037f8195912edbb11203f662..21b9208265f0017288e03f06692fea92b7adb2f4 100644 (file)
@@ -148,6 +148,8 @@ static int wifi_join(struct connman_device *device,
 
        connman_device_add_network(device, network);
 
+       connman_network_set_available(network, TRUE);
+
        return 0;
 }