NetworkManager r3268 - in trunk: . libnm-glib



Author: dcbw
Date: Thu Jan 24 18:59:50 2008
New Revision: 3268
URL: http://svn.gnome.org/viewvc/NetworkManager?rev=3268&view=rev

Log:
2008-01-24  Dan Williams  <dcbw redhat com>

	* libnm-glib/nm-device-802-11-wireless.c
		- (nm_device_802_11_wireless_set_active_ap): path of "/" means no AP



Modified:
   trunk/ChangeLog
   trunk/libnm-glib/nm-device-802-11-wireless.c

Modified: trunk/libnm-glib/nm-device-802-11-wireless.c
==============================================================================
--- trunk/libnm-glib/nm-device-802-11-wireless.c	(original)
+++ trunk/libnm-glib/nm-device-802-11-wireless.c	Thu Jan 24 18:59:50 2008
@@ -214,7 +214,8 @@
 		priv->current_ap = NULL;
 	}
 
-	if (ap_path && (!strcmp (ap_path, "/"))) {
+	/* ap_path of "/" means no AP */
+	if (ap_path && strcmp (ap_path, "/")) {
 		priv->current_ap = get_access_point (self, ap_path, TRUE);
 		if (priv->current_ap)
 			g_object_ref (priv->current_ap);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]