From owner-freebsd-wireless@FreeBSD.ORG Sun Apr 17 07:09:44 2011 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2063A106566C for ; Sun, 17 Apr 2011 07:09:44 +0000 (UTC) (envelope-from bschmidt@techwires.net) Received: from mail-bw0-f54.google.com (mail-bw0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id AC4768FC08 for ; Sun, 17 Apr 2011 07:09:43 +0000 (UTC) Received: by bwz12 with SMTP id 12so4230859bwz.13 for ; Sun, 17 Apr 2011 00:09:42 -0700 (PDT) Received: by 10.204.230.194 with SMTP id jn2mr1950897bkb.133.1303024181644; Sun, 17 Apr 2011 00:09:41 -0700 (PDT) Received: from amy.lab.techwires.net (dslb-088-065-057-126.pools.arcor-ip.net [88.65.57.126]) by mx.google.com with ESMTPS id q24sm2455550bks.9.2011.04.17.00.09.39 (version=SSLv3 cipher=OTHER); Sun, 17 Apr 2011 00:09:40 -0700 (PDT) Sender: Bernhard Schmidt From: Bernhard Schmidt To: Adrian Chadd Date: Sun, 17 Apr 2011 09:09:44 +0200 User-Agent: KMail/1.13.6 (FreeBSD/8.2-STABLE; KDE/4.6.2; amd64; ; ) References: In-Reply-To: MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201104170909.44508.bschmidt@freebsd.org> Cc: freebsd-wireless@freebsd.org Subject: Re: RFC: supporting multiple hostap instances in /etc/rc.conf X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 17 Apr 2011 07:09:44 -0000 On Sunday 17 April 2011 08:09:05 Adrian Chadd wrote: > Hi all, > > I'd like to try and sneak in something to support multiple hostapd instances > before 9.0-REL is branched. > > The problem at the moment is that there is only one hostapd instance inside > the rc script(s). > > I'm not yet sure of the "right" way to do it. I was thinking of two ways: > > * add a HOSTAP option (like WPA/DHCP) to ifconfig, which spawns hostapd with > the relevant flags > * modify the rc setup to take a list of named hostapd instances, complete > with differing config files, interfaces and flags. Given that hostapd needs to be started with a configuration file as an argument and not an interface like wpa_supplicant you need to add a way to add multiple configuration files. The conf_file variable is currently hard-coded to /etc/hostapd.conf, if you add another one like hostapd_conf_files="" and iterate over it, that should do the trick. But I'm not sure how to handle the pidfile, or how to name it.. > What do people think? I'm happy to script it up and get it committed to > -HEAD, but I'd rather sort out the 'what' first before I spend time doing rc > script hackery. > > Thanks, > > > adrian > _______________________________________________ > freebsd-wireless@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-wireless > To unsubscribe, send any mail to "freebsd-wireless-unsubscribe@freebsd.org" > -- Bernhard