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:
Thomas Haller 2021-08-30 18:51:09 +02:00
parent 475d759ae3
commit 5b0396efc0
No known key found for this signature in database
GPG key ID: 29C2366E4DFC5728

View file

@ -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;