[gnome-control-center] wifi: only manage Wi-Fi devices managed by NM
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] wifi: only manage Wi-Fi devices managed by NM
- Date: Fri, 8 Jun 2018 13:14:34 +0000 (UTC)
commit ca15b9822d34d24f6ca584534885f3831f99f8d6
Author: Jonathan Kang <jonathan121537 gmail com>
Date: Mon May 21 15:23:04 2018 +0800
wifi: only manage Wi-Fi devices managed by NM
If a Wi-Fi device is unmanaged by NetworkManager, ignore it.
panels/network/cc-wifi-panel.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/panels/network/cc-wifi-panel.c b/panels/network/cc-wifi-panel.c
index be8f787e6..36421eb37 100644
--- a/panels/network/cc-wifi-panel.c
+++ b/panels/network/cc-wifi-panel.c
@@ -153,7 +153,7 @@ add_wifi_device (CcWifiPanel *self,
NetObject *net_device;
/* Only manage Wi-Fi devices */
- if (!NM_IS_DEVICE_WIFI (device))
+ if (!NM_IS_DEVICE_WIFI (device) || !nm_device_get_managed (device))
return;
/* Create the NetDevice */
@@ -435,7 +435,7 @@ device_removed_cb (NMClient *client,
const gchar *id;
guint i;
- if (!NM_IS_DEVICE_WIFI (device))
+ if (!NM_IS_DEVICE_WIFI (device) || !nm_device_get_managed (device))
return;
id = nm_device_get_udi (device);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]