From owner-freebsd-wireless@FreeBSD.ORG Sun Apr 17 13:25:57 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 6D166106564A; Sun, 17 Apr 2011 13:25:57 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-wy0-f182.google.com (mail-wy0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id CCA498FC15; Sun, 17 Apr 2011 13:25:56 +0000 (UTC) Received: by wyf23 with SMTP id 23so4017944wyf.13 for ; Sun, 17 Apr 2011 06:25:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=mbMs0xz8rahQKTZSZA8T+gPk27rp7ptOF/F+a/UtZKE=; b=N6Mvgwfh66k8s3at6/PHv2WMb4Tk9x1xulhMDGbj4hHReFvbpqM3XsEgBJCx4Z3wrL z8elSOw/kQKk+0l7qtaasyTVxrX/z2awO9E+NF3m9S0/c+cWOgGgkPJLr9ABKdgIRAUg jSnUO51XAf/tjmlroxaPq45toH1sXpiIbPmYE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=mSNjaCFQE1suAFn/S9+8bwaVGb2BuAZs+LI3AVfvxxT9SA/O30JbZHUJOImIkYe1Bj VTIMCj5oh4k67co/bPqgpBosn/lyOitMPaTLEmecoPRUq6sPhquvDe8FIWfudCDQEHcD 4LTFWensEKPW/lStbkg49CnHDnpJdupQpBndo= MIME-Version: 1.0 Received: by 10.227.37.220 with SMTP id y28mr3965944wbd.82.1303046755539; Sun, 17 Apr 2011 06:25:55 -0700 (PDT) Received: by 10.227.174.13 with HTTP; Sun, 17 Apr 2011 06:25:55 -0700 (PDT) In-Reply-To: <201104170909.44508.bschmidt@freebsd.org> References: <201104170909.44508.bschmidt@freebsd.org> Date: Sun, 17 Apr 2011 21:25:55 +0800 Message-ID: From: Adrian Chadd To: Bernhard Schmidt Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 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 13:25:57 -0000 On 17 April 2011 15:09, Bernhard Schmidt wrote: > 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.. > > I was thinking of say: hostapd_instances="a b c" hostapd_a_conf="/etc/hostapd.wlan0.conf" hostapd_a_flags="-B -p /var/run/hostapd.wlan0.pid" hostapd_a_cmd="/usr/sbin/hostapd" hostapd_b_conf="/etc/hostapd.wlan1.conf" hostapd_b_flags="-B -p /var/run/hostapd.wlan1.pid" hostapd_b_cmd="/usr/sbin/hostapd" It's not terribly automagic, but it'll work well enough to run multiple hostapds. How's that sound? Adrian > 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 >