PERFORCE change 64067 for review
Sam Leffler
sam at FreeBSD.org
Mon Nov 1 14:42:30 PST 2004
http://perforce.freebsd.org/chv.cgi?CH=64067
Change 64067 by sam at 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;
More information about the p4-projects
mailing list