File control-center-ignore-unmanaged-wifi-devices.patch of Package gnome-control-center.9274

From cb760e77af0b566f6fcc96fe162a875403665877 Mon Sep 17 00:00:00 2001
From: Jonathan Kang <jonathan121537@gmail.com>
Date: Mon, 21 May 2018 15:23:04 +0800
Subject: [PATCH] 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 | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/panels/network/cc-wifi-panel.c b/panels/network/cc-wifi-panel.c
index d785bad0d..8db43c349 100644
--- a/panels/network/cc-wifi-panel.c
+++ b/panels/network/cc-wifi-panel.c
@@ -91,7 +91,8 @@ 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 */
-- 
2.17.0

openSUSE Build Service is sponsored by