We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aa67223 commit 2d6cb79Copy full SHA for 2d6cb79
drivers/usb/gadget/function/u_ether.c
@@ -23,7 +23,7 @@
23
#include <linux/if_vlan.h>
24
25
#include "u_ether.h"
26
-
+#include "../../../net/ethernet/stmicro/stmmac/eth_mac_tinker.h"
27
28
/*
29
* This component encapsulates the Ethernet link glue needed to provide
@@ -1000,7 +1000,8 @@ struct net_device *gether_setup_name_default(const char *netname)
1000
1001
eth_random_addr(dev->dev_mac);
1002
pr_warn("using random %s ethernet address\n", "self");
1003
- eth_random_addr(dev->host_mac);
+ eth_mac_eeprom(dev->host_mac);
1004
+ dev->host_mac[0] = (dev->host_mac[0] == 0x02) ? 0x04 : 0x02;
1005
pr_warn("using random %s ethernet address\n", "host");
1006
1007
net->netdev_ops = ð_netdev_ops;
0 commit comments