PERFORCE change 140047 for review
Sam Leffler
sam at FreeBSD.org
Mon Apr 14 21:44:23 UTC 2008
http://perforce.freebsd.org/chv.cgi?CH=140047
Change 140047 by sam at 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),
More information about the p4-projects
mailing list