From owner-freebsd-stable@FreeBSD.ORG Thu Mar 30 15:31:05 2006 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C01CF16A420 for ; Thu, 30 Mar 2006 15:31:05 +0000 (UTC) (envelope-from swhetzel@gmail.com) Received: from xproxy.gmail.com (xproxy.gmail.com [66.249.82.194]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9B07243D48 for ; Thu, 30 Mar 2006 15:31:04 +0000 (GMT) (envelope-from swhetzel@gmail.com) Received: by xproxy.gmail.com with SMTP id s9so305858wxc for ; Thu, 30 Mar 2006 07:31:04 -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=Ky9d61z6PDmbav32cN1d9uWUxTPm+d3TImUcqDwOJRXJn5m8ueIFQ3ZDPLm8yGoCTkyrEME+lWVkZCERlA8OsLpmhzXzksMLGn1Rq11CSIQo4h7qK8BxCWaB1VGX6+Gt+9AJvuobKwUzITvuUcP5k79h5tt93djLKmyzXOtWqtU= Received: by 10.70.110.13 with SMTP id i13mr2576701wxc; Thu, 30 Mar 2006 07:31:01 -0800 (PST) Received: by 10.70.27.14 with HTTP; Thu, 30 Mar 2006 07:31:01 -0800 (PST) Message-ID: <790a9fff0603300731k164205dbob1fbaf928ecde4e4@mail.gmail.com> Date: Thu, 30 Mar 2006 09:31:01 -0600 From: "Scot Hetzel" To: JoaoBR In-Reply-To: <200603301144.50612.joao@matik.com.br> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <200603301144.50612.joao@matik.com.br> Cc: wpaul@freebsd.org, sam@freebsd.org, freebsd-stable@freebsd.org Subject: Re: problem with ndis/wlan/pci since after 6.0-B5 to releng_6 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Mar 2006 15:31:05 -0000 On 3/30/06, JoaoBR wrote: > I have a problem here and I do not know where to look > > I have a Notebook with a button on the front, it's an Acer Aspire > > With this button I can enable/disable the buildin WL-radio antena > > This button blinks normally when the radio is on but not connected/associ= ates > and stays on when connected > > This was so until 6.0-Beta5, after this the led is dead > > The radio works fine with NDIS, no problem at all > > I installed B5 again to double check and it works > > the only difference I see between Beta5 and releng_6 is > > Beta5: > net.wlan.0.driver_caps=3D769 > > releng_6: > net.wlan.0.driver_caps=3D25166603 > net.wlan.0.bmiss_max=3D2 > > but setting on releng_6 to 769 seems not having any effect at all > > I used the same if_ndis.ko I generated on releng_6 and it works on Beta5 = so I > guess it is not a NDIS problem > > Where I should look for this? > Are you useing wpa_supplicant (i.e. ifconfig_ndis=3D"WPA DHCP") for this wireless connection? If you are using wpa_supplicant, then try to run it manually: # wpa_supplicant -B -q -i ndis0 -D ndis -c /etc/wpa_supplicant.conf -P /var/run/wpa_supplicant/ndis0.pid You should get this error: NDIS: Failed to get adapter list (PacketGetAdapterNames) Failed to initialize driver interface This error is caused by the MFC of wpa_supplicant to version 0.4.8. And the wrong return values being returned by PacketGetAdapterNames. In usr.sbin/wpa/wpa_supplicant/Packet32.c, the PacketGetAdapterNames routine should be returning boolean value, but instead it is returning a zero, EIO, ENOSPC, and ENOMEM. You need to replace the return(0) with return(TRUE), and you also need to replace return([EIO,ENOSPC,ENOMEM]) with return(FALSE). After you have made these changes, just do a make clean ; make ; make install ; make clean to rebuild and install wpa_supplicant. Then use the above command again to start wpa_supplicant. Scot -- DISCLAIMER: No electrons were mamed while sending this message. Only slightly bruised.