From: Nikolay Aleksandrov <redacted>
Date: Wed, 5 Sep 2012 16:11:28 +0200
Currently when the NIC duplex state is DUPLEX_UNKNOWN it is exported as
full through sysfs, this patch adds support for DUPLEX_UNKNOWN. It is
handled the same way as in ethtool.
Signed-off-by: Nikolay Aleksandrov [off-list ref]
Applied with two minor corrections:
+ char *duplex;
I made this "const char *"
+ switch(cmd.duplex) {
I added the missing space between 'switch' and '(cmd.duplex)'.
Thanks.