]> git.baikalelectronics.ru Git - kernel.git/commit
net: qmi_wwan: prevent duplicate mac address on link (firmware bug workaround)
authorBjørn Mork <bjorn@mork.no>
Thu, 18 Apr 2013 12:57:11 +0000 (12:57 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 19 Apr 2013 21:51:17 +0000 (17:51 -0400)
commitcfbedee34af4571930105887d7fdc6e88b67d28b
treec9a0a487312539688bcac21db127bcbbef842764
parent98e414626f9501beef28d2a47cba276fbe72b3db
net: qmi_wwan: prevent duplicate mac address on link (firmware bug workaround)

We normally trust and use the CDC functional descriptors provided by a
number of devices.  But some of these will erroneously list the address
reserved for the device end of the link.  Attempting to use this on
both the device and host side will naturally not work.

Work around this bug by ignoring the functional descriptor and assign a
random address instead in this case.

Signed-off-by: Bjørn Mork <bjorn@mork.no>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/qmi_wwan.c