asix: fix setting mac address for AX88772
authorJussi Kivilinna <jussi.kivilinna@mbnet.fi>
Tue, 9 Mar 2010 12:24:38 +0000 (12:24 +0000)
committerMatt Sealey <matt@genesi-usa.com>
Sat, 22 Jan 2011 05:16:37 +0000 (23:16 -0600)
commitb51f816291a268ad906ea8fe4eb8a4503eb4641b
tree3d87b0bea28cd6b53a5a7d9ac27536f900ced967
parent7ca8e0948a6234bc3247f8b1156581c5da3894bd
asix: fix setting mac address for AX88772

Setting new MAC address only worked when device was set to promiscuous mode.
Fix MAC address by writing new address to device using undocumented command
AX_CMD_READ_NODE_ID+1. Patch is tested with AX88772 device.

Signed-off-by: Jussi Kivilinna <jussi.kivilinna@mbnet.fi>
Acked-by: David Hollis <dhollis@davehollis.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/asix.c