diff --git a/ChangeLog b/ChangeLog index bf1d2ce9c1..d9e9e7aaa9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2008-01-24 Dan Williams + + * libnm-glib/nm-device-802-11-wireless.c + - (nm_device_802_11_wireless_set_active_ap): path of "/" means no AP + 2008-01-23 Dan Williams * libnm-glib/libnm_glib.c diff --git a/libnm-glib/nm-device-802-11-wireless.c b/libnm-glib/nm-device-802-11-wireless.c index ecc800be83..04e6c61378 100644 --- a/libnm-glib/nm-device-802-11-wireless.c +++ b/libnm-glib/nm-device-802-11-wireless.c @@ -214,7 +214,8 @@ nm_device_802_11_wireless_set_active_ap (NMDevice80211Wireless *self, 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);