usb: gadget: prevent change of Host MAC address of 'usb0' interface
authortaeju.park <taeju.park@lge.com>
Fri, 14 Sep 2012 05:09:03 +0000 (14:09 +0900)
committerJohn Stultz <john.stultz@linaro.org>
Tue, 16 Feb 2016 21:52:03 +0000 (13:52 -0800)
commit265801537d110eb68d44a2f66015479908f635c0
tree85d29a94a9dfa9676b08b931769d30baeb47fd46
parent398a708ed5f3ef771d96dfb9b95b5d5170d17eb7
usb: gadget: prevent change of Host MAC address of 'usb0' interface

On windows 7 platform, previously allocated ip address is maintained.
However, Host MAC address of 'usb0' interface is changed when the
tethering driver re-enumerated. Thus, the tethering network driver
can't be allocated ip address from dhcp. It causes connection delay
between host and phone for usb tethering.

This patch prevents from changing Host MAC address of 'usb0' interface.
In other words, this patch maintains the Host MAC address allocated when
first tethering driver although the driver is re-enumerated. However,
after reboot, the Host MAC address can be changed.

Change-Id: I43add9925e9d6d90c56cffbd3ed999104448f818
Signed-off-by: Badhri Jagan Sridharan <Badhri@google.com>
drivers/usb/gadget/function/u_ether.c