Date: Mon, 1 Nov 2004 22:42:29 GMT From: Sam Leffler <sam@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 64067 for review Message-ID: <200411012242.iA1MgTYt065816@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=64067 Change 64067 by sam@sam_ebb on 2004/11/01 22:42:17 add support to set the mac address Affected files ... .. //depot/projects/wifi/sys/dev/ath/if_ath.c#6 edit Differences ... ==== //depot/projects/wifi/sys/dev/ath/if_ath.c#6 (text+ko) ==== @@ -1497,6 +1497,17 @@ /* configure operational mode */ ath_hal_setopmode(ah); + /* + * Handle any link-level address change. Note that we only + * need to force ic_myaddr; any other addresses are handled + * as a byproduct of the ifnet code marking the interface + * down then up. + * + * XXX should get from lladdr instead of arpcom but that's more work + */ + IEEE80211_ADDR_COPY(ic->ic_myaddr, IFP2AC(ifp)->ac_enaddr); + ath_hal_setmac(ah, ic->ic_myaddr); + /* calculate and install multicast filter */ if ((ifp->if_flags & IFF_ALLMULTI) == 0) { mfilt[0] = mfilt[1] = 0;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200411012242.iA1MgTYt065816>
