aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-bit.c
diff options
context:
space:
mode:
authorKristian Evensen <[email protected]>2016-07-14 10:23:03 +0200
committerDavid S. Miller <[email protected]>2016-07-16 20:03:04 -0700
commita5a18bdf7453d505783e40e47ebb84bfdd35f93b (patch)
tree8665fdf76228b8825bfdbf3ec01b1a6530755a37 /lib/mpi/mpi-bit.c
parent43de87460988d9810450908af24fb1b1315a8456 (diff)
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 <[email protected]> Signed-off-by: Kristian Evensen <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-bit.c')
0 files changed, 0 insertions, 0 deletions