From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kristian Evensen Subject: Re: [PATCH] rndis_host: Set random MAC for ZTE MF910 Date: Thu, 14 Jul 2016 10:01:28 +0200 Message-ID: References: <1468427945-11600-1-git-send-email-kristian.evensen@gmail.com> <87k2gpnpo5.fsf@miraculix.mork.no> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: linux-usb@vger.kernel.org, Network Development , linux-kernel@vger.kernel.org To: =?UTF-8?Q?Bj=C3=B8rn_Mork?= Return-path: In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org List-Id: netdev.vger.kernel.org On Thu, Jul 14, 2016 at 9:54 AM, Kristian Evensen wrote: > Hi Bj=C3=B8rn, > > On Thu, Jul 14, 2016 at 12:23 AM, Bj=C3=B8rn Mork wro= te: >> >> Or how about the more generic?: >> >> if (bp[0] & 0x02) >> eth_hw_addr_random(net); >> else >> ether_addr_copy(net->dev_addr, bp); >> >> That would catch similar screwups from other vendors too. > > Great idea, thanks. After submitting the patch I found some other > devices with a similar bug, and there are probably even more out > there. I will update patch and resubmit. Oh, and I forgot to say, please ignore this patch. I will change the title and description to better describe the functionality. -Kristian