diff options
author | thompsa <thompsa@FreeBSD.org> | 2009-09-28 08:05:14 +0000 |
---|---|---|
committer | thompsa <thompsa@FreeBSD.org> | 2009-09-28 08:05:14 +0000 |
commit | 1115627740d23b46e935e7c00b1f105aca2485c1 (patch) | |
tree | b94c4605d403e085d7ebb5533a27d0d8d8ec037a /sys/dev/usb/net/if_axe.c | |
parent | 7c784df5df8c818e8b79ca2f15cc4bc02da4d7f2 (diff) | |
download | FreeBSD-src-1115627740d23b46e935e7c00b1f105aca2485c1.zip FreeBSD-src-1115627740d23b46e935e7c00b1f105aca2485c1.tar.gz |
Allow setting of MAC address for AXE based ethernet adapters.
Submitted by: yongari
Diffstat (limited to 'sys/dev/usb/net/if_axe.c')
-rw-r--r-- | sys/dev/usb/net/if_axe.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/sys/dev/usb/net/if_axe.c b/sys/dev/usb/net/if_axe.c index e94154a..eca7268 100644 --- a/sys/dev/usb/net/if_axe.c +++ b/sys/dev/usb/net/if_axe.c @@ -982,10 +982,11 @@ axe_init(struct usb_ether *ue) /* Cancel pending I/O */ axe_stop(ue); -#ifdef notdef - /* Set MAC address */ - axe_mac(sc, IF_LLADDR(ifp), 1); -#endif + /* Set MAC address. */ + if (sc->sc_flags & (AXE_FLAG_178 | AXE_FLAG_772)) + axe_cmd(sc, AXE_178_CMD_WRITE_NODEID, 0, 0, IF_LLADDR(ifp)); + else + axe_cmd(sc, AXE_172_CMD_WRITE_NODEID, 0, 0, IF_LLADDR(ifp)); /* Set transmitter IPG values */ if (sc->sc_flags & (AXE_FLAG_178 | AXE_FLAG_772)) { |