networkd: link - fix carrier check on new link
We were comparing against our own internal enum rather than the kernel exposed one. Found by Thomas Ritter.
This commit is contained in:
parent
0bbc2c1f3b
commit
bf0308cbd5
|
@ -1764,7 +1764,7 @@ static int link_configure(Link *link) {
|
|||
*/
|
||||
}
|
||||
|
||||
if (link_has_carrier(link->flags, link->operstate)) {
|
||||
if (link_has_carrier(link->flags, link->kernel_operstate)) {
|
||||
r = link_acquire_conf(link);
|
||||
if (r < 0)
|
||||
return r;
|
||||
|
|
Loading…
Reference in a new issue