From owner-freebsd-questions@FreeBSD.ORG Tue Mar 16 22:08:09 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 385001065670 for ; Tue, 16 Mar 2010 22:08:09 +0000 (UTC) (envelope-from milu@dat.pl) Received: from jab.dat.pl (dat.pl [80.51.155.34]) by mx1.freebsd.org (Postfix) with ESMTP id E51538FC1F for ; Tue, 16 Mar 2010 22:08:08 +0000 (UTC) Received: from jab.dat.pl (jsrv.dat.pl [127.0.0.1]) by jab.dat.pl (Postfix) with ESMTP id 0D98C5C66 for ; Tue, 16 Mar 2010 23:08:07 +0100 (CET) X-Virus-Scanned: amavisd-new at dat.pl Received: from jab.dat.pl ([127.0.0.1]) by jab.dat.pl (jab.dat.pl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id V21h+I-vmHAj for ; Tue, 16 Mar 2010 23:08:03 +0100 (CET) Received: from snifi.localnet (dke8.neoplus.adsl.tpnet.pl [83.24.8.8]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by jab.dat.pl (Postfix) with ESMTPSA id 616675C17 for ; Tue, 16 Mar 2010 23:08:03 +0100 (CET) From: Maciej Milewski To: freebsd-questions@freebsd.org Date: Tue, 16 Mar 2010 23:07:58 +0100 User-Agent: KMail/1.12.4 (Linux/2.6.32-trunk-686; KDE/4.3.4; i686; ; ) References: <286906751003161350k31a6286bld97defd3711edd62@mail.gmail.com> In-Reply-To: <286906751003161350k31a6286bld97defd3711edd62@mail.gmail.com> MIME-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <201003162307.58748.milu@dat.pl> Subject: Re: 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 22:08:09 -0000 Dnia wtorek, 16 marca 2010 o 21:50:05 Alberto Mijares napisa=C5=82(a): > 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" >=20 > 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? Try putting channel and mode definition in create_args_wlan0 not in=20 ifconfig_wlan0. Maciek