From owner-freebsd-net@FreeBSD.ORG Wed Feb 18 18:27:38 2009 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 51BD0106564A for ; Wed, 18 Feb 2009 18:27:38 +0000 (UTC) (envelope-from onemda@gmail.com) Received: from mail-ew0-f21.google.com (mail-ew0-f21.google.com [209.85.219.21]) by mx1.freebsd.org (Postfix) with ESMTP id AD5BD8FC0A for ; Wed, 18 Feb 2009 18:27:37 +0000 (UTC) (envelope-from onemda@gmail.com) Received: by ewy14 with SMTP id 14so25778ewy.19 for ; Wed, 18 Feb 2009 10:27:36 -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=Gqe5v3OZnqtmjq/9tGxGicytPYbqDGgOEf4+cADW2A4=; b=kx7ao+emx+Q/PzTR8e5bn5xOKTvw7xR1G4pe8H73mnzNhm02TnC4Tdh5Pe66x0YmwP IEKJ6aD7m3vIUyFsDEflw8Yqge38USCnX7Mu5RiUClIa6AfWR5+84Uu3uS4/C5hi6hNl 5w3vPTXJqTZv8An3lBg4QoxwCwUMohZfq7vi4= 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=PZzksvIrIYvgqqfujTwt/CM9D/8IKDbQy4mC73LPJE6sAok9607TZ6eJ6eOmMotIOn PJjA2LlODf1I3R742EDl18HZAK2vSn0K5pgJOLM8jD/1Rt4EjDHtOYqCaYKdMwjtk+ig peJjQAQIBWP9xwwiptBMtON4LZjS6yes5I91M= MIME-Version: 1.0 Received: by 10.210.52.15 with SMTP id z15mr1421ebz.195.1234981656762; Wed, 18 Feb 2009 10:27:36 -0800 (PST) In-Reply-To: <20090218111223.4483b923@memory.visualtech.com> References: <200902171720.n1HHKkIf071491@freefall.freebsd.org> <20090217133404.22275b25@memory.visualtech.com> <3a142e750902171414p438d184bl54a1569e27490634@mail.gmail.com> <200902171727.53156.adamk@voicenet.com> <3a142e750902180306x390fd549led076474f4fae06b@mail.gmail.com> <20090218080420.681788d2@memory.visualtech.com> <3a142e750902180733o679b050ck8d9287f0bdd860e7@mail.gmail.com> <20090218111223.4483b923@memory.visualtech.com> Date: Wed, 18 Feb 2009 19:27:36 +0100 Message-ID: <3a142e750902181027q25863f39ycc342d6506949eb9@mail.gmail.com> From: "Paul B. Mahol" To: Adam K Kirchhoff Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-net@freebsd.org Subject: Re: kern/131781: [ndis] ndis keeps dropping the link X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Feb 2009 18:27:38 -0000 On 2/18/09, Adam K Kirchhoff wrote: > On Wed, 18 Feb 2009 16:33:56 +0100 > "Paul B. Mahol" wrote: > >> On 2/18/09, Adam K Kirchhoff wrote: >> > On Wed, 18 Feb 2009 12:06:21 +0100 >> > "Paul B. Mahol" wrote: >> > >> >> On 2/17/09, Adam K Kirchhoff wrote: >> >> > On Tuesday 17 February 2009 17:14:07 Paul B. Mahol wrote: >> >> >> On 2/17/09, Adam K Kirchhoff wrote: >> >> >> > On Tue, 17 Feb 2009 19:22:22 +0100 >> >> >> > >> >> >> > "Paul B. Mahol" wrote: >> >> >> >> http://www.freebsd.org/cgi/query-pr.cgi?pr=131781 >> >> >> >> >> >> >> >> This one should not happen, 108 rate should get recognized. >> >> >> >> I will try to reproduce it on CURRENT. >> >> >> >> >> >> >> >> To OP, could you try 7 STABLE after 31 Jan? I guess it should not >> >> >> >> change anything but you never know. >> >> >> > >> >> >> > Sorry, I must have copied and pasted the uname output from the >> >> >> > wrong >> >> >> > machine. This is actually FreeBSD 7.1-STABLE #4: Mon Feb 16 >> >> >> > 16:37:18 >> >> >> > EST 2009 :-) >> >> >> >> >> >> miniport dump NDIS_STATUS_UNSUPPORTED_MEDIA for error in >> >> >> ndis_setstate() for setting OID_802_11_CONFIGURATION. >> >> > >> >> > Sorry if I seem slow, but are you asking me to check something there, >> >> > or >> >> > just >> >> > stating what you think the problem is? :-) >> >> >> >> You can add printf() before "ndis_set_info(sc, >> >> OID_802_11_CONFIGURATION, &config, &len);" in ndis_setstate_80211() to >> >> check what value for config.nc_dsconfig is by default. >> > >> > I'll try that shortly. >> > >> >> Also try changing "sysctl debug.ndis=1" and post console debug ouput >> >> again. >> > >> > This was strange. If I boot up and enable debugging before I try to >> > run '/etc/rc.d/netif start ndis0' everything works just fine. I get an >> > IP address and stay connected (at least under a light load). This is >> > the output: >> > >> > ndis_newstate: INIT -> INIT >> > ndis0: NDIS ERROR: c00013a7 (unknown error) >> > ndis0: NDIS ERROR: c0001392 (unknown error) >> >> these two errors means: >> >> EVENT_NDIS_ADAPTER_CHECK_ERROR >> EVENT_NDIS_INVALID_VALUE_FROM_ADAPTER >> >> Looks like minport driver doesnt like your card. >> Are you absolutly sure that you are using right miniport driver? > > Frankly, no. This laptop came with a broadcom minipci card. I > replaced it with the intel one that I'm now using since intel network > cards have native drivers under FreeBSD :-) I've downloaded the latest > drivers from the intel website > ( > http://downloadcenter.intel.com/Detail_Desc.aspx?agr=Y&Inst=Yes&ProductID=1637&DwnldID=17228&strOSs=45&OSFullName=Windows*%20XP%20Home%20Edition&lang=eng > ) > and used them to generate the driver with ndisgen. Is there a > recommended windows driver to use with ndis for this intel network card? > >> > Setting BSSID to ff:ff:ff:ff:ff:ff >> > Setting ESSID to "" >> > ndis0: no matching rate for: 108 >> > ndis_newstate: INIT -> RUN >> > ndis0: link state changed to UP >> > ndis_newstate: RUN -> INIT >> > Setting channel to 2412000kHz >> > ndis0: couldn't change DS config to 2412000kHz: 19 >> > Setting BSSID to ff:ff:ff:ff:ff:ff >> > Setting ESSID to "Mckella280Front" >> > ndis0: link state changed to DOWN >> > ndis0: no matching rate for: 108 >> > ndis_newstate: INIT -> RUN >> > ndis0: link state changed to UP >> > >> > If I then stop the network on that device, disable debug, and try to >> > start it up again, I get the same problem as before: >> > >> > ndis0: couldn't change DS config to 2412000kHz: 19 >> > ndis0: link state changed to DOWN >> > ndis0: no matching rate for: 108 >> > ndis0: link state changed to UP >> > ndis0: couldn't change DS config to 2412000kHz: 19 >> > ndis0: link state changed to DOWN >> > ndis0: no matching rate for: 108 >> > ndis0: link state changed to UP >> > ndis0: link state changed to DOWN >> > >> > If I then stop the network, enable debugging, and start up the network, >> > the problem persists. >> > >> >> You are starting ndis0 in same way in both cases? > > Yes. I booted up with the ifconfig_ndis0 line commented out > in /etc/rc.conf. I then uncommented the line, enabled debugging, and > started the network with '/etc/rc.d/netif start ndis0'. I then brought > the network down, disabled debugging, and started the network with the > same command. After stopping the interface, and re-enabling > networking, I started the interface with the same command the third > time. > > Adam > > -- > This message has been scanned for viruses and > dangerous content by MailScanner, and is > believed to be clean. > > Did you copied whole ndis relevant debug output? scan results are missing. Are you using wpa_supplicant? -- Paul