[gnome-control-center/benzea/ignore-more-network-devices: 9/9] network: Prevent more device types from showing up in Bluetooth section
- From: Benjamin Berg <bberg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center/benzea/ignore-more-network-devices: 9/9] network: Prevent more device types from showing up in Bluetooth section
- Date: Thu, 7 Mar 2019 21:30:07 +0000 (UTC)
commit 7c33e43438ea46c1d01bea16ddd741f680a63df2
Author: Benjamin Berg <bberg redhat com>
Date: Thu Mar 7 22:22:31 2019 +0100
network: Prevent more device types from showing up in Bluetooth section
The fallback in the network panel is currently to show devices of an
unknown type in the bluetooth section. At least the newly added P2P
device shows up there, and so may some other device types.
Add the following device types to the ignore list:
* Open vSwitch related devices
* WireGuard devices
* Wi-Fi P2P devices
Depending on libnm 1.16 is not yet feasible, so the
NM_DEVICE_TYPE_WIREGUARD and NM_DEVICE_TYPE_WIFI_P2P are not yet used in
the switch (and may result in a compile time warning).
panels/network/cc-network-panel.c | 7 +++++++
1 file changed, 7 insertions(+)
---
diff --git a/panels/network/cc-network-panel.c b/panels/network/cc-network-panel.c
index 15f0f93f0..6ad5f4093 100644
--- a/panels/network/cc-network-panel.c
+++ b/panels/network/cc-network-panel.c
@@ -479,6 +479,13 @@ panel_add_device (CcNetworkPanel *panel, NMDevice *device)
case NM_DEVICE_TYPE_BRIDGE:
/* Don't add VPN devices */
case NM_DEVICE_TYPE_TUN:
+ case 29: /* NM_DEVICE_TYPE_WIREGUARD needs libnm 1.16 */
+ /* Don't add Open vSwitch related devices */
+ case NM_DEVICE_TYPE_OVS_INTERFACE:
+ case NM_DEVICE_TYPE_OVS_PORT:
+ case NM_DEVICE_TYPE_OVS_BRIDGE:
+ /* Wi-Fi P2P should only be used for specific purposes */
+ case 30: /* NM_DEVICE_TYPE_WIFI_P2P needs libnm 1.16. */
return;
default:
device_g_type = NET_TYPE_DEVICE_SIMPLE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]