diff options
author | Damien Bergamini <damien@cvs.openbsd.org> | 2005-02-19 13:08:56 +0000 |
---|---|---|
committer | Damien Bergamini <damien@cvs.openbsd.org> | 2005-02-19 13:08:56 +0000 |
commit | ed3a85934c6db655e45b1f52b8f2d4e7bf70dc87 (patch) | |
tree | ba8b615b9e1cf57198697ebdf258c962d96f2fd3 /sys/dev | |
parent | 3305994d4bf2d44211726e523d85c745e599a882 (diff) |
fix setting of the MAC address.
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/pci/if_ipw.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/dev/pci/if_ipw.c b/sys/dev/pci/if_ipw.c index a15981c12ae..4806bd82148 100644 --- a/sys/dev/pci/if_ipw.c +++ b/sys/dev/pci/if_ipw.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_ipw.c,v 1.40 2005/02/17 18:28:05 reyk Exp $ */ +/* $OpenBSD: if_ipw.c,v 1.41 2005/02/19 13:08:55 damien Exp $ */ /*- * Copyright (c) 2004, 2005 @@ -1808,8 +1808,7 @@ ipw_config(struct ipw_softc *sc) return ipw_cmd(sc, IPW_CMD_ENABLE, NULL, 0); } - IEEE80211_ADDR_COPY(((struct arpcom *)ifp)->ac_enaddr, ic->ic_myaddr); - IEEE80211_ADDR_COPY(LLADDR(ifp->if_sadl), ic->ic_myaddr); + IEEE80211_ADDR_COPY(ic->ic_myaddr, LLADDR(ifp->if_sadl)); DPRINTF(("Setting MAC address to %s\n", ether_sprintf(ic->ic_myaddr))); error = ipw_cmd(sc, IPW_CMD_SET_MAC_ADDRESS, ic->ic_myaddr, IEEE80211_ADDR_LEN); |