Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/ic Allow setting the MAC address via wiconfig -m (Lo...
details: https://anonhg.NetBSD.org/src/rev/20806798be58
branches: trunk
changeset: 583522:20806798be58
user: christos <christos%NetBSD.org@localhost>
date: Wed Aug 10 13:20:42 2005 +0000
description:
Allow setting the MAC address via wiconfig -m (Lord Isildur)
diffstat:
sys/dev/ic/wi.c | 11 +++++++++--
1 files changed, 9 insertions(+), 2 deletions(-)
diffs (32 lines):
diff -r 00e194c07d63 -r 20806798be58 sys/dev/ic/wi.c
--- a/sys/dev/ic/wi.c Wed Aug 10 13:15:42 2005 +0000
+++ b/sys/dev/ic/wi.c Wed Aug 10 13:20:42 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: wi.c,v 1.208 2005/07/23 16:09:39 drochner Exp $ */
+/* $NetBSD: wi.c,v 1.209 2005/08/10 13:20:42 christos Exp $ */
/*-
* Copyright (c) 2004 The NetBSD Foundation, Inc.
@@ -106,7 +106,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: wi.c,v 1.208 2005/07/23 16:09:39 drochner Exp $");
+__KERNEL_RCSID(0, "$NetBSD: wi.c,v 1.209 2005/08/10 13:20:42 christos Exp $");
#define WI_HERMES_AUTOINC_WAR /* Work around data write autoinc bug. */
#define WI_HERMES_STATS_WAR /* Work around stats counter bug. */
@@ -2305,6 +2305,13 @@
return error;
len = (wreq.wi_len - 1) * 2;
switch (wreq.wi_type) {
+ case WI_RID_MAC_NODE:
+ (void)memcpy(ic->ic_myaddr, wreq.wi_val, ETHER_ADDR_LEN);
+ IEEE80211_ADDR_COPY(LLADDR(ifp->if_sadl),ic->ic_myaddr);
+ wi_write_rid(sc, WI_RID_MAC_NODE, ic->ic_myaddr,
+ IEEE80211_ADDR_LEN);
+ break;
+
case WI_RID_DBM_ADJUST:
return ENODEV;
Home |
Main Index |
Thread Index |
Old Index