Skip to content

Commit

Permalink
ethernet: fix incorrect duplex assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
kmroz committed Jul 16, 2014
1 parent c33832c commit bec8fd8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ethernet.c
Expand Up @@ -551,7 +551,7 @@ __ni_system_ethernet_set(const char *ifname, const ni_ethernet_t *ether)
if (ether->duplex != NI_ETHERNET_DUPLEX_DEFAULT) {
mapped = __ni_wicked_to_ethtool(__ni_ethtool_duplex_map, ether->duplex);
if (mapped >= 0)
ecmd.port = mapped;
ecmd.duplex = mapped;
}

if (ether->port_type != NI_ETHERNET_PORT_DEFAULT) {
Expand Down

0 comments on commit bec8fd8

Please sign in to comment.