pmaports/device/testing/linux-samsung-j7eltetmo/10-samsung-usb-ethaddr.patch
nbe1233 c926c7803e
samsung-j7eltetmo: new port (MR 2409)
[ci:skip-build] already built successfully in CI
2021-09-01 00:31:24 -07:00

18 lines
624 B
Diff

Based on ../../.shared-patches/linux/samsung-usb-ethaddr.patch
diff --git a/drivers/usb/gadget/u_ether.c b/drivers/usb/gadget/u_ether.c
index 80294f32..d7268e50 100755
--- a/drivers/usb/gadget/u_ether.c
+++ b/drivers/usb/gadget/u_ether.c
@@ -1193,7 +1193,7 @@ struct eth_dev *gether_setup_name(struct usb_gadget *g, u8 ethaddr[ETH_ALEN],
if (get_ether_addr(dev_addr, net->dev_addr))
dev_warn(&g->dev,
"using random %s ethernet address\n", "self");
-#ifdef CONFIG_USB_ANDROID_SAMSUNG_COMPOSITE
+#if 0
memcpy(dev->host_mac, ethaddr, ETH_ALEN);
printk(KERN_DEBUG "usb: set unique host mac\n");
#else
--
2.32.0