diff options
author | Martin Xu <martin.xu@intel.com> | 2009-10-23 18:38:37 +0800 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2009-10-27 01:52:55 +0900 |
commit | 08191f23a0f3cde00125d78a31975df0e69212d2 (patch) | |
tree | bd6f977f796f6e3e32ef5ced1b71973fd06b98f6 /plugins | |
parent | 6964ef918b44966ba2fd732011a9873efd521612 (diff) | |
download | connman-08191f23a0f3cde00125d78a31975df0e69212d2.tar.gz connman-08191f23a0f3cde00125d78a31975df0e69212d2.tar.bz2 connman-08191f23a0f3cde00125d78a31975df0e69212d2.zip |
Try to use SSID to connect AP when available
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/supplicant.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/supplicant.c b/plugins/supplicant.c index eae81ee3..b4501f83 100644 --- a/plugins/supplicant.c +++ b/plugins/supplicant.c @@ -781,13 +781,13 @@ static int set_network(struct supplicant_task *task, connman_dbus_dict_append_variant(&dict, "scan_ssid", DBUS_TYPE_UINT32, &scan_ssid); - if (address) + if (network) + connman_dbus_dict_append_array(&dict, "ssid", + DBUS_TYPE_BYTE, &network, len); + else if (address) connman_dbus_dict_append_variant(&dict, "bssid", DBUS_TYPE_STRING, &address); - connman_dbus_dict_append_array(&dict, "ssid", - DBUS_TYPE_BYTE, &network, len); - if (g_ascii_strcasecmp(security, "wpa") == 0 || g_ascii_strcasecmp(security, "rsn") == 0) { const char *key_mgmt = "WPA-PSK"; |