From owner-freebsd-current@FreeBSD.ORG Thu Mar 30 14:35:28 2006 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 32E3F16A41F for ; Thu, 30 Mar 2006 14:35:28 +0000 (UTC) (envelope-from swhetzel@gmail.com) Received: from xproxy.gmail.com (xproxy.gmail.com [66.249.82.201]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2FAAB43D5D for ; Thu, 30 Mar 2006 14:35:26 +0000 (GMT) (envelope-from swhetzel@gmail.com) Received: by xproxy.gmail.com with SMTP id s9so297167wxc for ; Thu, 30 Mar 2006 06:35:26 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Fau6OLYjyr+8o9MmdgaHuFOrt00M5avPiC+wC4x0Aykt77cQGEye5zJFsod5AjcQUtuy5xTrkqrQjtpP7iJb4VzHX7eht7vd2LqU3qy1GuyQYKwtty/skZQT6/F994hjbEnrYajTc1lw3gB6HDfZwRjVb10EJw3hZ5+HltKVlAs= Received: by 10.70.104.12 with SMTP id b12mr2432222wxc; Thu, 30 Mar 2006 06:35:26 -0800 (PST) Received: by 10.70.27.14 with HTTP; Thu, 30 Mar 2006 06:35:26 -0800 (PST) Message-ID: <790a9fff0603300635p6b70cebbw89e26a2b73aa06f8@mail.gmail.com> Date: Thu, 30 Mar 2006 08:35:26 -0600 From: "Scot Hetzel" To: freebsd-current@freebsd.org In-Reply-To: <790a9fff0603300616y62afae4cp50b448b53112de8c@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <790a9fff0603300616y62afae4cp50b448b53112de8c@mail.gmail.com> Cc: wpaul@freebsd.org, sam@freebsd.org Subject: Re: wpa_supplicant fails to find the NDIS adapter names 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, 30 Mar 2006 14:35:28 -0000 I just found somemore information on the PacketGetAdapterNames on the winpcap web site: http://www.winpcap.org/docs/man/html/Packet32_8c.html --- BOOLEAN PacketGetAdapterNames ( PTSTR pStr, PULONG BufferSize ) Retrieve the list of available network adapters and their description. Parameters: pStr User allocated string that will be filled with the names of the adapters. BufferSize Length of the buffer pointed by pStr. Returns: If the function succeeds, the return value is nonzero. --- So we do need to replace the EIO, ENOSPC, ENOMEM with FALSE, and the last return with TRUE in src/usr.sbin/wpa/wpa_supplicant/Packet32.c for the PacketGetAdapterNames routine. Scot -- DISCLAIMER: No electrons were mamed while sending this message. Only slightly bruised.