forked from pool/gnome-control-center
Dominique Leuenberger
6a56ccf178
- Add control-center-ignore-unmanaged-wifi-devices.patch: wifi: only manage Wi-Fi devices managed by NM (bsc#1079320). OBS-URL: https://build.opensuse.org/request/show/612103 OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/gnome-control-center?expand=0&rev=388
28 lines
847 B
Diff
28 lines
847 B
Diff
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
|
|
|