diff options
author | Samuel Ortiz <sameo@linux.intel.com> | 2011-01-31 18:55:35 +0100 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2011-02-02 18:45:37 +0100 |
commit | f66b448cbcca1658f5c5e436baa001ef1b0038f0 (patch) | |
tree | 20962a9dff5c96b90bdddcb96ef4f1e852f05a8a | |
parent | a1f57d60cc477e62f9c9bed39f3b7b6c5b24f123 (diff) | |
download | connman-f66b448cbcca1658f5c5e436baa001ef1b0038f0.tar.gz connman-f66b448cbcca1658f5c5e436baa001ef1b0038f0.tar.bz2 connman-f66b448cbcca1658f5c5e436baa001ef1b0038f0.zip |
gsupplicant: Call select_network callback
-rw-r--r-- | gsupplicant/supplicant.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gsupplicant/supplicant.c b/gsupplicant/supplicant.c index b3e51cfa..0bd58b93 100644 --- a/gsupplicant/supplicant.c +++ b/gsupplicant/supplicant.c @@ -2391,9 +2391,17 @@ static void interface_select_network_result(const char *error, DBusMessageIter *iter, void *user_data) { struct interface_connect_data *data = user_data; + int err; SUPPLICANT_DBG(""); + err = 0; + if (error != NULL) + err = -EIO; + + if (data->callback != NULL) + data->callback(err, data->interface, data->user_data); + g_free(data->ssid); dbus_free(data); } |