diff options
author | Samuel Ortiz <sameo@linux.intel.com> | 2009-07-11 00:32:01 +0200 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2009-07-11 12:45:37 -0700 |
commit | 63f8d42753e4550d6bdb5ca9ead6e071f70edecf (patch) | |
tree | 91ba542342db5c0e00c7eaf19705379910173901 /plugins/supplicant.c | |
parent | 25b307d79d15753950e1686044bce7dba0baa721 (diff) | |
download | connman-63f8d42753e4550d6bdb5ca9ead6e071f70edecf.tar.gz connman-63f8d42753e4550d6bdb5ca9ead6e071f70edecf.tar.bz2 connman-63f8d42753e4550d6bdb5ca9ead6e071f70edecf.zip |
Use the scan_ssid supplicant attribute for all connections
Since we now have properly set hidden network, we may now end up trying to
connect to a hidden SSID from a network that comes with a set BSSID.
For handling this kind of situation we need to set scan_ssid by default to 1.
Diffstat (limited to 'plugins/supplicant.c')
-rw-r--r-- | plugins/supplicant.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/supplicant.c b/plugins/supplicant.c index 832509ae..64396676 100644 --- a/plugins/supplicant.c +++ b/plugins/supplicant.c @@ -715,6 +715,7 @@ static int set_network(struct supplicant_task *task, DBusMessage *message, *reply; DBusMessageIter array, dict; DBusError error; + dbus_uint32_t scan_ssid = 1; DBG("task %p", task); @@ -733,11 +734,10 @@ 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); - if (address == NULL) { - dbus_uint32_t scan_ssid = 1; - connman_dbus_dict_append_variant(&dict, "scan_ssid", - DBUS_TYPE_UINT32, &scan_ssid); - } else + connman_dbus_dict_append_variant(&dict, "scan_ssid", + DBUS_TYPE_UINT32, &scan_ssid); + + if (address) connman_dbus_dict_append_variant(&dict, "bssid", DBUS_TYPE_STRING, &address); |