From owner-svn-src-projects@FreeBSD.ORG Fri Jun 26 18:31:09 2009 Return-Path: Delivered-To: svn-src-projects@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 739AB10656B5; Fri, 26 Jun 2009 18:31:09 +0000 (UTC) (envelope-from rpaulo@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 6206E8FC12; Fri, 26 Jun 2009 18:31:09 +0000 (UTC) (envelope-from rpaulo@FreeBSD.org) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id n5QIV9Mt094369; Fri, 26 Jun 2009 18:31:09 GMT (envelope-from rpaulo@svn.freebsd.org) Received: (from rpaulo@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id n5QIV9ha094367; Fri, 26 Jun 2009 18:31:09 GMT (envelope-from rpaulo@svn.freebsd.org) Message-Id: <200906261831.n5QIV9ha094367@svn.freebsd.org> From: Rui Paulo Date: Fri, 26 Jun 2009 18:31:09 +0000 (UTC) To: src-committers@freebsd.org, svn-src-projects@freebsd.org X-SVN-Group: projects MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r195065 - projects/mesh11s/sbin/ifconfig X-BeenThere: svn-src-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the src " projects" tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Jun 2009 18:31:09 -0000 Author: rpaulo Date: Fri Jun 26 18:31:08 2009 New Revision: 195065 URL: http://svn.freebsd.org/changeset/base/195065 Log: Move hwmp root mode setter to a better place. Sponsored by: The FreeBSD Foundation Modified: projects/mesh11s/sbin/ifconfig/ifieee80211.c Modified: projects/mesh11s/sbin/ifconfig/ifieee80211.c ============================================================================== --- projects/mesh11s/sbin/ifconfig/ifieee80211.c Fri Jun 26 17:50:52 2009 (r195064) +++ projects/mesh11s/sbin/ifconfig/ifieee80211.c Fri Jun 26 18:31:08 2009 (r195065) @@ -1317,6 +1317,12 @@ DECL_CMD_FUNC(set80211hwmpcmd, val, d) set80211(s, IEEE80211_IOC_HWMP_CMD, d, 0, NULL); } +static +DECL_CMD_FUNC(set80211hwmprootmode, val, d) +{ + set80211(s, IEEE80211_IOC_HWMP_ROOTMODE, atoi(val), 0, NULL); +} + static void set80211pureg(const char *val, int d, int s, const struct afswtch *rafp) { @@ -1845,12 +1851,6 @@ DECL_CMD_FUNC(set80211meshpeering, val, set80211(s, IEEE80211_IOC_MESH_AP, atoi(val), 0, NULL); } -static -DECL_CMD_FUNC(set80211hwmprootmode, val, d) -{ - set80211(s, IEEE80211_IOC_HWMP_ROOTMODE, atoi(val), 0, NULL); -} - static int regdomain_sort(const void *a, const void *b) {