[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAKfDRXiP=LpNqPi5nSoMM2BK510edvCoatRWQhnQ8Z66N40_iw@mail.gmail.com>
Date: Thu, 14 Jul 2016 09:54:33 +0200
From: Kristian Evensen <kristian.evensen@...il.com>
To: Bjørn Mork <bjorn@...k.no>
Cc: linux-usb@...r.kernel.org,
Network Development <netdev@...r.kernel.org>,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] rndis_host: Set random MAC for ZTE MF910
Hi Bjørn,
On Thu, Jul 14, 2016 at 12:23 AM, Bjørn Mork <bjorn@...k.no> wrote:
>
> 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.
-Kristian
Powered by blists - more mailing lists