]> git.hungrycats.org Git - linux/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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 19 May 2013 17:54:43 +0000 (10:54 -0700)
commit1203d9c66e6b892bd8043eea51c5cd510d097266
tree32354f0b70a77ff5f1fb41e6a3014e642fb19db6
parentd8abf422282e2452c83392717481ad850b0d982c
net: qmi_wwan: prevent duplicate mac address on link (firmware bug workaround)

[ Upstream commit cc6ba5fdaabea7a7b28de3ba1e0fe54d92232fe5 ]

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/usb/qmi_wwan.c