From owner-freebsd-stable Tue Jan 29 15: 9:26 2002 Delivered-To: freebsd-stable@freebsd.org Received: from odin.ac.hmc.edu (Odin.AC.HMC.Edu [134.173.32.75]) by hub.freebsd.org (Postfix) with ESMTP id 69A5837B402 for ; Tue, 29 Jan 2002 15:09:22 -0800 (PST) Received: (from brdavis@localhost) by odin.ac.hmc.edu (8.11.0/8.11.0) id g0TN9Lk08957; Tue, 29 Jan 2002 15:09:21 -0800 Date: Tue, 29 Jan 2002 15:09:21 -0800 From: Brooks Davis To: Eric Liedtke Cc: freebsd-stable@FreeBSD.ORG Subject: Re: Another Linksys WDT11 problem Message-ID: <20020129150921.A7477@Odin.AC.HMC.Edu> References: <20020129025206.GC31653@apogeetelecom.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="Dxnq1zWXvFF0Q93v" Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <20020129025206.GC31653@apogeetelecom.com>; from eliedtke@apogeetelecom.com on Mon, Jan 28, 2002 at 08:52:06PM -0600 Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --Dxnq1zWXvFF0Q93v Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Jan 28, 2002 at 08:52:06PM -0600, Eric Liedtke wrote: > Ok, from my last mail I got the card working fine. So it was time to > tranfer it to a 3rd machine, my home router, as it's final resting place > and I have run into a new problem....I am getting a error message of >=20 > wi0: mac read failed 5 >=20 > I poked around in the code a little bit, but couldn't come up with > anything of use. I am not sure how to go about troubleshooting this from > here, so any advice would be great. Thanks Ok, this is a bit of a shot in the dark, but what the heck. If you look for that error message in the driver, you'll find this comment: /* * Read the station address. * And do it twice. I've seen PRISM-based cards that return=20 * an error when trying to read it the first time, which causes * the probe to fail. */ My guess is that in some circumstances this hack isn't enough. The first thing to try would be stuffing a delay in between the two reads like so: wi_read_record(sc, (struct wi_ltv_gen *)&mac); ---> DELAY(50); if ((error =3D wi_read_record(sc, (struct wi_ltv_gen *)&mac)) !=3D 0) { device_printf(dev, "mac read failed %d\n", error); wi_free(dev); return (error); } Try playing with the delay value a bit if that doesn't work. -- Brooks --=20 Any statement of the form "X is the one, true Y" is FALSE. PGP fingerprint 655D 519C 26A7 82E7 2529 9BF0 5D8E 8BE9 F238 1AD4 --Dxnq1zWXvFF0Q93v Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE8VyugXY6L6fI4GtQRAuW1AKCvDz1f6xCb5iNtmr94et0MdySIbQCfRn3B 4i/18kHHDYgksd3rYLCrskc= =uRWn -----END PGP SIGNATURE----- --Dxnq1zWXvFF0Q93v-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message