Searched hist:a5a18bdf7453d505783e40e47ebb84bfdd35f93b (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/drivers/net/usb/ |
H A D | rndis_host.c | diff a5a18bdf7453d505783e40e47ebb84bfdd35f93b Thu Jul 14 03:23:03 CDT 2016 Kristian Evensen <kristian.evensen@gmail.com> rndis_host: Set valid random MAC on buggy devices
Some devices of the same type all export the same, random MAC address. This behavior has been seen on the ZTE MF910, MF823 and MF831, and there are probably more devices out there. Fix this by generating a valid random MAC address if we read a random MAC from device.
Also, changed the memcpy() to ether_addr_copy(), as pointed out by checkpatch.
Suggested-by: Bjørn Mork <bjorn@mork.no> Signed-off-by: Kristian Evensen <kristian.evensen@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
|