From owner-freebsd-current@FreeBSD.ORG Thu Mar 5 15:07:08 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D1EBD1065693 for ; Thu, 5 Mar 2009 15:07:08 +0000 (UTC) (envelope-from mike@jellydonut.org) Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.242]) by mx1.freebsd.org (Postfix) with ESMTP id 97A938FC1C for ; Thu, 5 Mar 2009 15:07:08 +0000 (UTC) (envelope-from mike@jellydonut.org) Received: by an-out-0708.google.com with SMTP id b38so2185074ana.13 for ; Thu, 05 Mar 2009 07:07:08 -0800 (PST) MIME-Version: 1.0 Received: by 10.229.79.7 with SMTP id n7mr831414qck.87.1236265623671; Thu, 05 Mar 2009 07:07:03 -0800 (PST) In-Reply-To: <49AFE3F9.4050108@barafranca.com> References: <49AFE3F9.4050108@barafranca.com> Date: Thu, 5 Mar 2009 10:07:03 -0500 Message-ID: <1de79840903050707m9550beeo46c190d8ff791be7@mail.gmail.com> From: Michael Proto To: Hugo Silva Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-current@freebsd.org Subject: Re: rc.conf - what's the right way to enable hostap mode? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Mar 2009 15:07:09 -0000 On Thu, Mar 5, 2009 at 9:38 AM, Hugo Silva wrote: > # ifconfig wlan1 create wlandev ath0 ; ifconfig wlan1 wlanmode hostap > ifconfig: wlanmode: bad value > > # ifconfig wlan1 create wlandev ath0 wlanmode hostap > (works) > > My question is how to properly achieve this in rc.conf: wlans_ath0="wlan0 > wlan1" creates the devices, but it seems impossible to set them to hostap > operation later. (see the first example). > > Am I missing something? /etc/rc.conf: ... wlans_ath0="wlan0 wlan1" create_args_wlan0="wlanmode ap" create_args_wlan1="wlanmode ap" ... -Proto