]> git.baikalelectronics.ru Git - kernel.git/commit
qmi_wwan: Set random MAC on devices with buggy fw
authorKristian Evensen <kristian.evensen@gmail.com>
Fri, 2 Jan 2015 15:21:45 +0000 (16:21 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 2 Jan 2015 21:41:47 +0000 (16:41 -0500)
commitf4dad1ff7c5669075859a103615c4f39c010630a
treebb3ce755a745cc7261830e86a2796befd6a6e9f2
parentd5258449a95dd23eeb693af8975f92b014358073
qmi_wwan: Set random MAC on devices with buggy fw

Some buggy firmwares export an incorrect MAC address (00:a0:c6:00:00:00). This
makes for example checking devices for random MAC addresses tricky, and you
might end up with multiple network interfaces with the same address.

This patch tries to fix, or at least improve, the situation by setting the MAC
address of devices with this firmware bug to a random address. I tested the
patch with two devices that has this firmware bug (Huawei E398 and E392), and
network traffic worked fine after changing the address.

Signed-off-by: Kristian Evensen <kristian.evensen@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/qmi_wwan.c