Date: Mon, 14 Apr 2008 21:44:22 GMT From: Sam Leffler <sam@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 140047 for review Message-ID: <200804142144.m3ELiMWh071681@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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),
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200804142144.m3ELiMWh071681>