From owner-freebsd-net@FreeBSD.ORG Thu Feb 19 21:38:18 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 1DF1E106566B for ; Thu, 19 Feb 2009 21:38:18 +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 77E7E8FC1B for ; Thu, 19 Feb 2009 21:38:17 +0000 (UTC) (envelope-from onemda@gmail.com) Received: by ewy14 with SMTP id 14so632271ewy.19 for ; Thu, 19 Feb 2009 13:38:16 -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=L6aHRrAb1CTidLJrq9f5wptFGLqYwUX2c5b4wbpnAXQ=; b=DD9d+2v+Eb4scTac3Icink3rOcXs9i8RRu9JH+7Sko7Ckak39BWYZjiK4DvNmEjV3D NifFQWRN/w2XglzdbfcMI53Sx9QfcCxoPsUSpatU0g4O+lBIMsJmIF6aWzWCkYqjwhYz 3BOLY/WlJZ34cRbmlhTVVIak9kHKxTUWZq/hc= 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=NPwaM95Jiul8QwK3Gr++RA8ov2tG397S29DFVeTsTK4NMUsOlnZrDGKkcZE+eDZ4y0 x4v0XXivx43zp8H+Um5ZbsCdUPVa90zuAe+dx/LbPfGisX8uNG5cKrRAIZZnZApdp9Sf Tyym1lUwD6XEVYl/Hxq8WZ5Qjnhv/MuPRmYFo= MIME-Version: 1.0 Received: by 10.210.43.10 with SMTP id q10mr26791ebq.58.1235079496459; Thu, 19 Feb 2009 13:38:16 -0800 (PST) In-Reply-To: <20090219161807.63efaaa5@thorn.ashke.com> References: <200902171720.n1HHKkIf071491@freefall.freebsd.org> <3a142e750902180733o679b050ck8d9287f0bdd860e7@mail.gmail.com> <20090218111223.4483b923@memory.visualtech.com> <3a142e750902181027q25863f39ycc342d6506949eb9@mail.gmail.com> <20090218134935.14f0a8c2@memory.visualtech.com> <20090218142659.135a73bc@memory.visualtech.com> <3a142e750902181610h65f23d13vfeb20cc19ea0944a@mail.gmail.com> <20090218194810.075e0c7c@sorrow.ashke.com> <20090219055035.1ff55f19@memory.visualtech.com> <20090219161807.63efaaa5@thorn.ashke.com> Date: Thu, 19 Feb 2009 22:38:16 +0100 Message-ID: <3a142e750902191338v7e2f3e9fna3b4ac77f0cbe612@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: Thu, 19 Feb 2009 21:38:18 -0000 On 2/19/09, Adam K Kirchhoff wrote: > On Thu, 19 Feb 2009 05:50:35 -0500 > Adam K Kirchhoff wrote: > >> On Wed, 18 Feb 2009 19:48:10 -0500 >> Adam K Kirchhoff wrote: >> >> > On Thu, 19 Feb 2009 01:10:08 +0100 >> > "Paul B. Mahol" wrote: >> > >> > > On 2/18/09, Adam K Kirchhoff wrote: >> > > > --- if_ndis.c 2009-01-31 00:22:11.000000000 -0500 >> > > > +++ if_ndis.c.orig 2009-02-18 14:03:30.000000000 -0500 >> > > > @@ -2459,6 +2459,11 @@ >> > > > bzero((char *)&config, len); >> > > > config.nc_length = len; >> > > > config.nc_fhconfig.ncf_length = sizeof(ndis_80211_config_fh); >> > > > + >> > > > + device_printf(sc->ndis_dev, "couldn't change " >> > > > + "Testing config.nc_dsconfig: %u \n", >> > > > + config.nc_dsconfig); >> > > > + >> > > > rval = ndis_get_info(sc, OID_802_11_CONFIGURATION, &config, &len); >> > > >> > > printf should be bellow ndis_get_info() and above ndis_set_info(). >> > >> > Alright, I've moved the printf down a few lines and recompiled. >> > >> > > Does same problem happens when not using WPA eg. wpa_supplicant? >> > >> > It's actually been running just fine since I got home. I'm still using >> > wpa_supplicant, but with WEP instead of WPA. This has been about four >> > hours. Not much network traffic, but certainly more than what causes >> > the problem at work. >> > >> > I'm going to let it continue to run through the night. I have a cron >> > job setup to transfer several 800 meg files to this laptop via scp, so >> > it'll be interesting to see if that works over this driver. >> > >> > Tomorrow morning, when I get into work, I'll grab the debug output >> > again, this time with the printf (hopefully) in the correct place. >> >> Looks like config.nc_dsconfig is 2462000 >> >> The wireless connection stayed up all night, even while transferring >> over 2 gigs of data via scp. The problem appears to be specific to >> this AP using WPA. I can try WPA on my home network in about 10 hours >> to see if the same happens there. > > When I switched my home network to use WPA I started to have the same > problems as with the WPA network at work. config.nc_dsconfig still > reads 246200. Enable wpa_supplicant debugging and try find something interesting. I still cant understant why enabling debug.ndis hides problem. -- Paul