summaryrefslogtreecommitdiff
path: root/ANDROID_3.4.5/drivers/net/usb/asix.c
diff options
context:
space:
mode:
authorKevin2014-11-15 10:00:36 +0800
committerKevin2014-11-15 10:00:36 +0800
commit9d40ac5867b9aefe0722bc1f110b965ff294d30d (patch)
treede942df665fac4bac0d9cb7ae86910fe937b0c1a /ANDROID_3.4.5/drivers/net/usb/asix.c
parent392e8802486cb573b916e746010e141a75f507e6 (diff)
downloadFOSSEE-netbook-kernel-source-9d40ac5867b9aefe0722bc1f110b965ff294d30d.tar.gz
FOSSEE-netbook-kernel-source-9d40ac5867b9aefe0722bc1f110b965ff294d30d.tar.bz2
FOSSEE-netbook-kernel-source-9d40ac5867b9aefe0722bc1f110b965ff294d30d.zip
add via modify part source code for wm8880 4.4 kitkat
Diffstat (limited to 'ANDROID_3.4.5/drivers/net/usb/asix.c')
-rw-r--r--ANDROID_3.4.5/drivers/net/usb/asix.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/ANDROID_3.4.5/drivers/net/usb/asix.c b/ANDROID_3.4.5/drivers/net/usb/asix.c
index 609fcc33..0dd2aa84 100644
--- a/ANDROID_3.4.5/drivers/net/usb/asix.c
+++ b/ANDROID_3.4.5/drivers/net/usb/asix.c
@@ -1046,6 +1046,8 @@ static const struct net_device_ops ax88772_netdev_ops = {
.ndo_set_rx_mode = asix_set_multicast,
};
+
+void check_set_mac(unsigned char *buf);
static int ax88772_bind(struct usbnet *dev, struct usb_interface *intf)
{
int ret, embd_phy;
@@ -1063,6 +1065,10 @@ static int ax88772_bind(struct usbnet *dev, struct usb_interface *intf)
dbg("Failed to read MAC address: %d", ret);
return ret;
}
+
+ check_set_mac(buf);
+
+
memcpy(dev->net->dev_addr, buf, ETH_ALEN);
/* Initialize MII structure */