summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Williams <dcbw@redhat.com>2007-11-21 05:57:54 +0000
committerDan Williams <dcbw@redhat.com>2007-11-21 05:57:54 +0000
commit36650e4a2470c8c2f2556946fc65140513770763 (patch)
tree0bdc6096780b3669a0eb2f831956c9b27c6f2eb2
parentf2b002c3de1b7c69b8f8439ff2dc960ff5e9aced (diff)
Print out ap-scan value for easier debugging
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3103 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
-rw-r--r--src/supplicant-manager/nm-supplicant-interface.c24
1 files changed, 15 insertions, 9 deletions
diff --git a/src/supplicant-manager/nm-supplicant-interface.c b/src/supplicant-manager/nm-supplicant-interface.c
index a88d65efb..07828d820 100644
--- a/src/supplicant-manager/nm-supplicant-interface.c
+++ b/src/supplicant-manager/nm-supplicant-interface.c
@@ -1158,21 +1158,27 @@ set_ap_scan_cb (DBusGProxy *proxy, DBusGProxyCall *call_id, gpointer user_data)
NMSupplicantInfo *info = (NMSupplicantInfo *) user_data;
GError *err = NULL;
guint32 tmp;
+ DBusGProxyCall *call;
if (!dbus_g_proxy_end_call (proxy, call_id, &err, G_TYPE_UINT, &tmp, G_TYPE_INVALID)) {
nm_warning ("Couldn't send AP scan mode to the supplicant interface: %s.", err->message);
emit_error_helper (info->interface, err);
g_error_free (err);
- } else {
- DBusGProxyCall *call;
-
- info = nm_supplicant_info_new (info->interface, proxy, info->store);
- call = dbus_g_proxy_begin_call (proxy, "addNetwork", add_network_cb,
- info,
- nm_supplicant_info_destroy,
- G_TYPE_INVALID);
- nm_supplicant_info_set_call (info, call);
+ return;
}
+
+{
+NMSupplicantInterfacePrivate *priv = NM_SUPPLICANT_INTERFACE_GET_PRIVATE (info->interface);
+int ap_scan = nm_supplicant_config_get_ap_scan (priv->cfg);
+nm_info ("Config: set interface ap_scan to %d", ap_scan);
+}
+
+ info = nm_supplicant_info_new (info->interface, proxy, info->store);
+ call = dbus_g_proxy_begin_call (proxy, "addNetwork", add_network_cb,
+ info,
+ nm_supplicant_info_destroy,
+ G_TYPE_INVALID);
+ nm_supplicant_info_set_call (info, call);
}
gboolean