2007-06-13 Tambet Ingo <tambet@ximian.com>

* src/NetworkManagerAP.c (foreach_property_cb): Set WEP capabilities too!
	(0 & 0 == 0, doh)



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2594 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
This commit is contained in:
Tambet Ingo 2007-06-13 14:21:54 +00:00 committed by Tambet Ingo
parent be798e43ab
commit a04de676ca
2 changed files with 4 additions and 1 deletions

View file

@ -1,5 +1,8 @@
2007-06-13 Tambet Ingo <tambet@ximian.com>
* src/NetworkManagerAP.c (foreach_property_cb): Set WEP capabilities too!
(0 & 0 == 0, doh)
* src/nm-device.c (nm_device_state_changed): Emit the signal before handling it
because the handling code will cause the next state change and signal listeners
get the signals in wrong order.

View file

@ -470,7 +470,7 @@ foreach_property_cb (gpointer key, gpointer value, gpointer user_data)
guint cur_caps;
cur_caps = nm_ap_get_capabilities (ap);
if (cur_caps & NM_802_11_CAP_NONE || cur_caps & NM_802_11_CAP_PROTO_NONE)
if (cur_caps == NM_802_11_CAP_NONE || cur_caps & NM_802_11_CAP_PROTO_NONE)
nm_ap_add_capabilities_for_wep (ap);
}
}