diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2009-05-13 16:46:56 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2009-05-13 16:46:56 +0000 |
commit | 0389b1a7f2f606a965943a1d6a521730a9e658ff (patch) | |
tree | 239e80669fd0abf261347fce52976f642d02be48 /sys/dev | |
parent | 2cab373e4c6f8d8a077c12e4ea927e42d247cc84 (diff) |
Support setting a different MAC address from the one in EEPROM
on newer chips now the hardware can apparently cope with it.
Tested by Walter Haidinger.
ok deraadt@
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/usb/if_axe.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/dev/usb/if_axe.c b/sys/dev/usb/if_axe.c index 62af3637512..ae0bddf5e1a 100644 --- a/sys/dev/usb/if_axe.c +++ b/sys/dev/usb/if_axe.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_axe.c,v 1.91 2008/11/28 02:44:18 brad Exp $ */ +/* $OpenBSD: if_axe.c,v 1.92 2009/05/13 16:46:55 jsg Exp $ */ /* * Copyright (c) 2005, 2006, 2007 Jonathan Gray <jsg@openbsd.org> @@ -1243,6 +1243,11 @@ axe_init(void *xsc) */ axe_reset(sc); + /* set MAC address */ + if (sc->axe_flags & AX178 || sc->axe_flags & AX772) + axe_cmd(sc, AXE_178_CMD_WRITE_NODEID, 0, 0, + &sc->arpcom.ac_enaddr); + /* Enable RX logic. */ /* Init RX ring. */ |