mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-11 15:40:17 +01:00
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:
parent
4f0d00c8cc
commit
b3c09d38d5
1 changed files with 2 additions and 1 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue