Date: Sun, 13 Nov 2016 08:42:45 +0100 From: Hans Petter Selasky <hps@selasky.org> To: diffusae <punasipuli@t-online.de>, freebsd-arm@freebsd.org Subject: Re: How to change MAC address on RPI-B? Message-ID: <471aebe5-b890-4277-3269-977f8a8fefd4@selasky.org> In-Reply-To: <8cc9d3c6-1c70-c9ac-a3a2-29f73e5ea9c3@t-online.de> References: <005701d23a7d$71400630$53c01290$@Kitz@xs4all.nl> <20161110065105.77a19e3b@X220.alogt.com> <000c01d23b3a$c06e1ef0$414a5cd0$@Kitz@xs4all.nl> <20161111094930.46f55a60@X220.alogt.com> <000f01d23c14$da3a6c00$8eaf4400$@Kitz@xs4all.nl> <445c56a4-2c35-cb4c-f729-950d4e758d8d@selasky.org> <8cc9d3c6-1c70-c9ac-a3a2-29f73e5ea9c3@t-online.de>
next in thread | previous in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format. --------------6AE8938A3A520DCFB4EEFBF7 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit On 11/12/16 23:45, diffusae wrote: > So, unfortunately it doesn't solve the problem. Or maybe I did something > wrong? I patched the wrong IOCTL, sorry. I have a RPI2 myself, and will fix this issue later today. Stay tuned. Meanwhile, can you test the new attached patch and revert the previous one? --HPS --------------6AE8938A3A520DCFB4EEFBF7 Content-Type: text/x-patch; name="if_smsc_mac.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="if_smsc_mac.diff" Index: sys/dev/usb/net/if_smsc.c =================================================================== --- sys/dev/usb/net/if_smsc.c (revision 308426) +++ sys/dev/usb/net/if_smsc.c (working copy) @@ -152,7 +152,7 @@ device_printf((sc)->sc_ue.ue_dev, "debug: " fmt, ##args); \ } while(0) #else -#define smsc_dbg_printf(sc, fmt, args...) +#define smsc_dbg_printf(sc, fmt, args...) do { } while (0) #endif #define smsc_warn_printf(sc, fmt, args...) \ @@ -822,7 +822,6 @@ return (0); } - /** * smsc_setmacaddress - Sets the mac address in the device * @sc: driver soft context @@ -905,6 +904,9 @@ SMSC_LOCK_ASSERT(sc, MA_OWNED); + if (smsc_setmacaddress(sc, IF_LLADDR(ifp))) + smsc_dbg_printf(sc, "setting MAC address failed\n"); + if ((ifp->if_drv_flags & IFF_DRV_RUNNING) != 0) return; --------------6AE8938A3A520DCFB4EEFBF7--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?471aebe5-b890-4277-3269-977f8a8fefd4>