From 63f8d42753e4550d6bdb5ca9ead6e071f70edecf Mon Sep 17 00:00:00 2001 From: Samuel Ortiz Date: Sat, 11 Jul 2009 00:32:01 +0200 Subject: [PATCH] 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. --- plugins/supplicant.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/plugins/supplicant.c b/plugins/supplicant.c index 832509a..6439667 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); -- 2.7.4