From owner-freebsd-questions@FreeBSD.ORG Sat Sep 1 05:15:49 2007 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 0FAEE16BF36 for ; Sat, 1 Sep 2007 05:15:33 +0000 (UTC) (envelope-from redchin@gmail.com) Received: from rv-out-0910.google.com (rv-out-0910.google.com [209.85.198.190]) by mx1.freebsd.org (Postfix) with ESMTP id C635413C4A5 for ; Sat, 1 Sep 2007 05:15:32 +0000 (UTC) (envelope-from redchin@gmail.com) Received: by rv-out-0910.google.com with SMTP id l15so522093rvb for ; Fri, 31 Aug 2007 22:15:32 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=g4YmUyPCsW0cVgwKfBPxEd4FpjVYXdTgCKeBT4Z2Huqs02QgrmigsCpPJ8vqQtrSwQ3M/Z23ov1B+bw5o+y8j99KYYNFTdFgjXRqfDep96y2/ewHSkxG6B8D3VPqMY6sFDUxEQKaOnByL7vi70/IzndqGGLj6fG5XK4Bk3dK6/g= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=NCg0HWFaHaPxZNuz/3arRoTglLwCGHVkbQegoi++CKKspZ9vdiS8EAS7m2A95hOzCLrHWWl+4AeKLgm0v5i5j7o62BFwiVFTa4j5/y91Ne1LmS1z+ddx7jgr3ZLZdDFc44jaUZI5RshaZ2lo8mYHk1XH2z7fVrq72/rOihaQ7ro= Received: by 10.140.194.21 with SMTP id r21mr1025314rvf.1188623732084; Fri, 31 Aug 2007 22:15:32 -0700 (PDT) Received: by 10.141.202.10 with HTTP; Fri, 31 Aug 2007 22:15:32 -0700 (PDT) Message-ID: <1d3ed48c0708312215j13a0fc9dwf374879469cd533c@mail.gmail.com> Date: Fri, 31 Aug 2007 22:15:32 -0700 From: "Kevin Downey" To: "Xihong Yin" In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: Cc: FreeBSD-Questions List Subject: Re: wpa_supplicant question 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: Sat, 01 Sep 2007 05:15:49 -0000 On 8/31/07, Xihong Yin wrote: > I use wpa_supplicant and have set the 'ifconfig_ndis0="WPA DHCP"' in my > /etc/rc.conf. However I am using the NDIS driver, so how do I pass the "-Dndis" > argument to the wpa_supplicant? > > Thanks It looks like /etc/rc.d/wpa_supplicant contains logic to take care of that: case ${ifn} in ndis*) driver="ndis" ;; *) driver="bsd" ;; esac and then: command_args="-B -q -i $ifn -c $conf_file -D $driver -P $pid_file" -- I am the kwisatz haderach