From owner-p4-projects@FreeBSD.ORG  Mon Apr 14 21:44:23 2008
Return-Path: <owner-p4-projects@FreeBSD.ORG>
Delivered-To: p4-projects@freebsd.org
Received: by hub.freebsd.org (Postfix, from userid 32767)
	id 70A851065674; Mon, 14 Apr 2008 21:44:23 +0000 (UTC)
Delivered-To: perforce@freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 32EE0106566C
	for <perforce@freebsd.org>; Mon, 14 Apr 2008 21:44:23 +0000 (UTC)
	(envelope-from sam@freebsd.org)
Received: from repoman.freebsd.org (repoman.freebsd.org
	[IPv6:2001:4f8:fff6::29])
	by mx1.freebsd.org (Postfix) with ESMTP id 230048FC21
	for <perforce@freebsd.org>; Mon, 14 Apr 2008 21:44:23 +0000 (UTC)
	(envelope-from sam@freebsd.org)
Received: from repoman.freebsd.org (localhost [127.0.0.1])
	by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id m3ELiNIp071683
	for <perforce@freebsd.org>; Mon, 14 Apr 2008 21:44:23 GMT
	(envelope-from sam@freebsd.org)
Received: (from perforce@localhost)
	by repoman.freebsd.org (8.14.1/8.14.1/Submit) id m3ELiMWh071681
	for perforce@freebsd.org; Mon, 14 Apr 2008 21:44:22 GMT
	(envelope-from sam@freebsd.org)
Date: Mon, 14 Apr 2008 21:44:22 GMT
Message-Id: <200804142144.m3ELiMWh071681@repoman.freebsd.org>
X-Authentication-Warning: repoman.freebsd.org: perforce set sender to
	sam@freebsd.org using -f
From: Sam Leffler <sam@FreeBSD.org>
To: Perforce Change Reviews <perforce@freebsd.org>
Cc: 
Subject: PERFORCE change 140047 for review
X-BeenThere: p4-projects@freebsd.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: p4 projects tree changes <p4-projects.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/p4-projects>,
	<mailto:p4-projects-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/p4-projects>
List-Post: <mailto:p4-projects@freebsd.org>
List-Help: <mailto:p4-projects-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/p4-projects>,
	<mailto:p4-projects-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Mon, 14 Apr 2008 21:44:23 -0000

http://perforce.freebsd.org/chv.cgi?CH=140047

Change 140047 by sam@sam_ebb on 2008/04/14 21:43:27

	forgot about wlanaddr

Affected files ...

.. //depot/projects/vap/sbin/ifconfig/ifieee80211.c#18 edit

Differences ...

==== //depot/projects/vap/sbin/ifconfig/ifieee80211.c#18 (text+ko) ====

@@ -4296,6 +4296,19 @@
 }
 
 static
+DECL_CMD_FUNC(set80211clone_wlanaddr, arg, d)
+{
+	const struct ether_addr *ea;
+
+	ea = ether_aton(arg);
+	if (ea == NULL)
+		errx(1, "%s: cannot parse addres", arg);
+	memcpy(params.icp_macaddr, ea->octet, IEEE80211_ADDR_LEN);
+	params.icp_flags |= IEEE80211_CLONE_MACADDR;
+	clone_setcallback(wlan_create);
+}
+
+static
 DECL_CMD_FUNC(set80211clone_wlanmode, arg, d)
 {
 #define	iseq(a,b)	(strncasecmp(a,b,sizeof(b)-1) == 0)
@@ -4483,6 +4496,7 @@
 	DEF_CMD_ARG("chanswitch",	set80211chanswitch),
 
 	/* vap cloning support */
+	DEF_CLONE_CMD_ARG("wlanaddr",	set80211clone_wlanaddr),
 	DEF_CLONE_CMD_ARG("wlanbssid",	set80211clone_wlanbssid),
 	DEF_CLONE_CMD_ARG("wlandev",	set80211clone_wlandev),
 	DEF_CLONE_CMD_ARG("wlanmode",	set80211clone_wlanmode),