From owner-freebsd-questions@FreeBSD.ORG Mon Dec 7 14:33:15 2009 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DDA05106566B for ; Mon, 7 Dec 2009 14:33:14 +0000 (UTC) (envelope-from dhorn2000@gmail.com) Received: from mail-fx0-f209.google.com (mail-fx0-f209.google.com [209.85.220.209]) by mx1.freebsd.org (Postfix) with ESMTP id 72E978FC0A for ; Mon, 7 Dec 2009 14:33:13 +0000 (UTC) Received: by fxm2 with SMTP id 2so2007749fxm.13 for ; Mon, 07 Dec 2009 06:33:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=JaoDTqi561ggA2ahMPkoQZisInqObyeB99z5w6EOB30=; b=h8J2eKu9fkP2IbblE3VzFeEL1oofK8FuDoGMQ+D6dqO+lk4rUUwHCr8asOT454dMoL xrLCPRLlwmIuxzqCqgHIDNNiRf+IlkikxxXes+63+Q84jiOjxx+MrvUaGLUaZgb0S7dh 91TjTCwOqGNaYau6S6+F39r+HkfIoixa+5RWo= 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:content-transfer-encoding; b=gVhOPVF9SNQVsFbN9mbG8LaPZzUI9Sdxtk/QPfS0PZR+oypAKFqgfzL1bIQ/w72VbK kUXPrQ9/aOVWMdaQRN2DJqIHwIq2vhZenfFoIFQvPcz+mYzm4BO34euaGSgj4LfE8d96 5B/sIrSL5hWWyUS8df7viUu3g1bTv6zvM8KW4= MIME-Version: 1.0 Received: by 10.239.143.212 with SMTP id l20mr653713hba.210.1260196393099; Mon, 07 Dec 2009 06:33:13 -0800 (PST) In-Reply-To: <20091207122831.15496356@icy.localdomain> References: <20091207091740.03a5180d@icy.localdomain> <4ad871310912061905j3ef2d882x103c084be2c0629a@mail.gmail.com> <20091207122831.15496356@icy.localdomain> Date: Mon, 7 Dec 2009 09:33:13 -0500 Message-ID: <25ff90d60912070633v62acccc1g98efdcf0e81b41fc@mail.gmail.com> From: David Horn To: =?UTF-8?B?QW5oIEsuIEh14buzbmg=?= Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: FreeBSD Questions Subject: Re: ndis driver: invalid argument (freebsd 8.0) 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: Mon, 07 Dec 2009 14:33:15 -0000 On Mon, Dec 7, 2009 at 12:28 AM, Anh K. Hu=E1=BB=B3nh wr= ote: > > Hi, > > On Sun, 6 Dec 2009 22:05:33 -0500 > Glen Barber wrote: > > > Hi > > > > On Sun, Dec 6, 20309 at 9:17 PM, Anh K. Hu=E1=BB=B3nh > > wrote: > > > Hi all, > > > > > > I compiled `bcmwl5` module by `ndisgen` then loaded that module > > > successfully, but I get the `invalid argument` error: > > > > > > $ ifconfig ndis0 ssid TOM-and-JERRY > > > ifconfig: SIOCS80211: Invalid argument > > > > > > What's wrong to my ndis driver? I read /usr/src/UPDATING and > > > wireless section in the Handbook but found nothing special. So I > > > post here for your helps. > > > > > > > 1.) Are your kernel and userland in sync? > > > > 2.) What is the output of 'uname -a'? =C2=A0If 8.X, read the 20080420 > > entry in src/UPDATING. > > > > I am using 8.0-RELEASE (upgraded from 7.2-RELEASE). I've read the 2008042= 0 entry and configured my card successfully. (I read that section before as= king in list but I confused.) > If you have your /usr/src/ and kernel in sync (when you generated your ndis module), then try something like: ifconfig wlan0 create wlandev ndis0 ifconfig wlan0 ssid TOM-and-JERRY via rc.conf: wlans_ndis0=3D"wlan0" ifconfig_wlan0=3D"ssid TOM-and-JERRY" >From wlan(4) man page: Drivers provide 802.11 functionality through wlan interfaces that are created at runtime using interface cloning. This is done with the ifconfig(8) create command or using the wlans_IFX variable in rc.conf(= 5). Some drivers support the creation of multiple wlan interfaces that sha= re the same underlying device; this is the way by which ``multi-bss sup- port'' is provided but it can also be used to create WDS links and oth= er interesting applications. If you use WPA wireless security and DHCP on your wireless network, you should also look at wpa_supplicant(8) and wpa_supplicant.conf(5) and use something like: wlans_ndis0=3D"wlan0" ifconfig_wlan0=3D"WPA DHCP" and setup your /etc/wpa_supplicant.conf file as required with something like (entries vary based upon exact setup of your wireless network. See wpa_supplicant.conf man page): ctrl_interface=3D/var/run/wpa_supplicant ctrl_interface_group=3Dwheel network=3D{ ssid=3D"TOM-and-JERRY" key_mgmt=3DWPA-PSK psk=3D"very secret passphrase" } and of course make sure that the generated ndis module is loaded (via kldload or via /boot/loader.conf) before attempting to clone the interface with "ifconfig wlan0 create wlandev ndis0" See kldstat(8) man page and utility if you are unsure if your generated ndis kernel module is loaded. Good Luck. --Dave Horn