asix: fix setting mac address for AX88772
authorJussi Kivilinna <jussi.kivilinna@mbnet.fi>
Tue, 9 Mar 2010 12:24:38 +0000 (12:24 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 10 Mar 2010 15:36:21 +0000 (07:36 -0800)
commit7f29a3baa825725d29db399663790d15c78cddcf
tree40ed88ca5a2e7a9788bf0b1d5918ecad65a99560
parent2b4c32972b9bcfee29d5e2c1b6f261dda5ef2a21
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