From owner-freebsd-wireless@FreeBSD.ORG Sun Apr 17 06:09:06 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 B4814106564A for ; Sun, 17 Apr 2011 06:09:06 +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 4CCEA8FC0A for ; Sun, 17 Apr 2011 06:09:05 +0000 (UTC) Received: by wyf23 with SMTP id 23so3874540wyf.13 for ; Sat, 16 Apr 2011 23:09:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:date:message-id:subject:from:to :content-type; bh=IRP+Yl1Gl3AgTLweXuQtQSn8lr+hKKFQzvMVxu71BW0=; b=kWkI3JZqjZRkOtOgEKEnB4x4NSZmQVbDMvubzrvTLCIWIELCFiNnqoLsas+N2S82vM soMDr7rwi8Kg90d/Rh84BAKbE7kqyz7stFm/S5uYtM5vcrW7wSUH39UxBEL/UjYnLDzC E4yvDltyh3Lc257hNiawJoMaEh+EZMdPuWHgc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=mEpLZnpZY/6GbnBVSSwI/fN6eEIwK0iAl3lpnUB1ywSgmH8lyM46j1Mxi3qKwplROS wuwv7FR/leaApqSHbzNffO+8O9W3YIBXa2xKrn5H6QdDAtc3UUp+nFRj3pLB1Va5vgmf CB6QCR9mIKWPsWva8Ey6aS07366/edY6B7rBI= MIME-Version: 1.0 Received: by 10.227.37.220 with SMTP id y28mr3692437wbd.82.1303020545164; Sat, 16 Apr 2011 23:09:05 -0700 (PDT) Received: by 10.227.174.13 with HTTP; Sat, 16 Apr 2011 23:09:05 -0700 (PDT) Date: Sun, 17 Apr 2011 14:09:05 +0800 Message-ID: From: Adrian Chadd To: freebsd-wireless@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: 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 06:09:06 -0000 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. 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