mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-07 19:10:31 +01:00
core: fix nm_device_supports_vlans()
The platform knows which device types support VLANs, so just ask it, rather than only doing VLANs on ethernet.
This commit is contained in:
parent
e0f0f60ff5
commit
68bb65fbab
1 changed files with 1 additions and 3 deletions
|
|
@ -41,7 +41,6 @@
|
|||
#include "nm-glib-compat.h"
|
||||
#include "nm-device.h"
|
||||
#include "nm-device-private.h"
|
||||
#include "nm-device-ethernet.h"
|
||||
#include "NetworkManagerUtils.h"
|
||||
#include "nm-platform.h"
|
||||
#include "nm-rdisc.h"
|
||||
|
|
@ -6644,8 +6643,7 @@ cp_connection_updated (NMConnectionProvider *cp, NMConnection *connection, gpoin
|
|||
gboolean
|
||||
nm_device_supports_vlans (NMDevice *device)
|
||||
{
|
||||
/* At the moment, NM's VLAN code assumes all VLANs are over ethernet. */
|
||||
return NM_IS_DEVICE_ETHERNET (device);
|
||||
return nm_platform_link_supports_vlans (nm_device_get_ifindex (device));
|
||||
}
|
||||
|
||||
gboolean
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue