Commit 7c33e434 authored by Benjamin Berg's avatar Benjamin Berg Committed by Benjamin Berg

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).
parent db2cc12c
Pipeline #66177 passed with stages
in 4 minutes and 3 seconds
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment