mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-01 06:00:12 +01:00
platform: don't set lp_advertising in set_link_settings_new()
I don't understand why this was done. I don't think it's necessary nor
correct.
(cherry picked from commit 595099f27a)
This commit is contained in:
parent
475d759ae3
commit
5b0396efc0
1 changed files with 1 additions and 3 deletions
|
|
@ -1428,9 +1428,8 @@ set_link_settings_new(SocketHandle * shandle,
|
|||
|
||||
edata->autoneg = AUTONEG_ENABLE;
|
||||
|
||||
/* copy @map_supported to @map_advertising and @map_lp_advertising */
|
||||
memcpy(v_map_advertising, v_map_supported, sizeof(guint32) * nwords);
|
||||
memcpy(v_map_lp_advertising, v_map_supported, sizeof(guint32) * nwords);
|
||||
(void) v_map_lp_advertising;
|
||||
|
||||
if (speed != 0) {
|
||||
guint32 mode;
|
||||
|
|
@ -1457,7 +1456,6 @@ set_link_settings_new(SocketHandle * shandle,
|
|||
}
|
||||
|
||||
v_map_advertising[0] = (v_map_advertising[0] & ~BASET_ALL_MODES) | mode;
|
||||
v_map_lp_advertising[0] = v_map_advertising[0];
|
||||
}
|
||||
} else {
|
||||
edata->autoneg = AUTONEG_DISABLE;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue