mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-09 05:58:01 +02: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;
|
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_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) {
|
if (speed != 0) {
|
||||||
guint32 mode;
|
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_advertising[0] = (v_map_advertising[0] & ~BASET_ALL_MODES) | mode;
|
||||||
v_map_lp_advertising[0] = v_map_advertising[0];
|
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
edata->autoneg = AUTONEG_DISABLE;
|
edata->autoneg = AUTONEG_DISABLE;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue