Don't use glib 2.16 stuff

git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3891 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
This commit is contained in:
Dan Williams 2008-08-04 16:04:00 +00:00
parent 4f0d00c8cc
commit b3c09d38d5

View file

@ -3416,7 +3416,8 @@ nm_device_wifi_set_enabled (NMDeviceWifi *self, gboolean enabled)
return;
if (enabled) {
g_warn_if_fail (state == NM_DEVICE_STATE_UNAVAILABLE);
if (state != NM_DEVICE_STATE_UNAVAILABLE);
nm_warning ("not in expected unavailable state!");
if (!nm_device_hw_bring_up (NM_DEVICE (self), TRUE)) {
/* The device sucks, or HAL was lying to us about the killswitch state */