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)
committerBadhri Jagan Sridharan <Badhri@google.com>
Thu, 25 Sep 2014 01:59:50 +0000 (18:59 -0700)
commit9c861db045e11a41ab092f82ec4bf69212dd4694
tree5c8ac0ae4236e56d6915e9277eb4e56126576b9c
parent555f3ed9473f5e71966842b557772dd5e0e5a364
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/u_ether.c