mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-29 16:10:11 +01:00
settings: ignore incompatible connections when looking for existing ones
beb18050made this code run for all devices instead of just ethernet devices, which means any kind of connection gets compared to any device. But only compatible connections should be considered. (cherry picked from commit77d01c9094)
This commit is contained in:
parent
23d285f308
commit
cf044faf13
1 changed files with 3 additions and 0 deletions
|
|
@ -1592,6 +1592,9 @@ have_connection_for_device (NMSettings *self, NMDevice *device)
|
|||
NMConnection *connection = NM_CONNECTION (data);
|
||||
const char *ctype, *iface;
|
||||
|
||||
if (!nm_device_check_connection_compatible (device, connection))
|
||||
continue;
|
||||
|
||||
s_con = nm_connection_get_setting_connection (connection);
|
||||
|
||||
iface = nm_setting_connection_get_interface_name (s_con);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue