We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7516511 commit 4b5b55fCopy full SHA for 4b5b55f
1 file changed
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
@@ -1002,7 +1002,8 @@ struct net_device *gether_setup_name_default(const char *netname)
1002
1003
eth_random_addr(dev->dev_mac);
1004
pr_warn("using random %s ethernet address\n", "self");
1005
- eth_random_addr(dev->host_mac);
+ eth_mac_eeprom(dev->host_mac);
1006
+ dev->host_mac[0] = (dev->host_mac[0] == 0x02) ? 0x04 : 0x02;
1007
pr_warn("using random %s ethernet address\n", "host");
1008
1009
net->netdev_ops = ð_netdev_ops;
0 commit comments