From owner-freebsd-questions@FreeBSD.ORG Tue Mar 16 21:21:19 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 40BC2106564A for ; Tue, 16 Mar 2010 21:21:19 +0000 (UTC) (envelope-from amijaresp@gmail.com) Received: from mail-fx0-f215.google.com (mail-fx0-f215.google.com [209.85.220.215]) by mx1.freebsd.org (Postfix) with ESMTP id CDA608FC16 for ; Tue, 16 Mar 2010 21:21:18 +0000 (UTC) Received: by fxm7 with SMTP id 7so430601fxm.3 for ; Tue, 16 Mar 2010 14:21:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type:content-transfer-encoding; bh=XQIekFUw4qv4A3Ko858PnsBhA0wrhhUja0LXocsyOgQ=; b=j6Ugcyu8TVo2s+aSKuT6ZLgroEamH7Sauvw2HIy1bxUUWbjaAPoDVfdydANfN6/C65 QFCJomn0FwWneZZcxPJykyKfskV4vL/LXe3r0nRrqIr574SzUWjdEv6MEACEyOrLkR0/ ebK8KsQg6NzhwFfbF4l+vduT+ojPgCub9Nxk0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; b=qPkO6gmD8tg/l2L0zYOR61nEasgPNGImrJABDtiJIda8KWtLCs4ik69INWYVrKvLxs 0+az9Bk+PlvhUhQTLKKkdtfyhk/V4lqp0xWUL1ME8L+sZB3ioWvqMd1El28TcgqQPUTY JXmQP8yo/pieFrcEIXuBCk3Hfu3Hi4rV1YahI= MIME-Version: 1.0 Received: by 10.239.193.139 with SMTP id j11mr1085223hbi.127.1268772605407; Tue, 16 Mar 2010 13:50:05 -0700 (PDT) Date: Tue, 16 Mar 2010 16:20:05 -0430 Message-ID: <286906751003161350k31a6286bld97defd3711edd62@mail.gmail.com> From: Alberto Mijares To: FreeBSD Questions Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: wlan0 + hostap + rc.conf X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Mar 2010 21:21:19 -0000 Hi Hackers, >From man rc.conf: If a wlans_=E2=9F=A8interface=E2=9F=A9 variable is set, an wlan(4) interfac= e will be created for each item in the list with the wlandev argument set to interface. Further wlan cloning arguments may be passed to the ifconfig(8) create command by setting the create_args_=E2=9F=A8interface=E2= =9F=A9 variable. One or more wlan(4) devices must be created for each wireless devices as of FreeBSD 8.0. So, this is my rc.conf ifconfig_sis0=3D"up" wlans_ath0=3D"wlan0" create_args_wlan0=3D"wlanmode ap" ifconfig_wlan0=3D"ssid nombre channel X mode 11g up" cloned_interfaces=3D"bridge0" ifconfig_bridge0=3D"addm wlan0 addm sis0 inet A.B.C.D netmask W.X.Y.Z up" However, when I run /etc/rc.d/netif restart, an error says: ifconfig: create: bad value the create command fails and everything related to the AP initialization. When I run the command in the CLI it works fine # ifconfig wlan0 create wlandev ath0 wlanmode ap What could be wrong? Thanks in advance. Alberto Mijares