Date: Mon, 23 Dec 2002 06:21:47 -0700 (MST) From: "M. Warner Losh" <imp@bsdimp.com> To: swaghray@yahoo.com Cc: freebsd-mobile@freebsd.org Subject: Re: Linksys WMP11 Message-ID: <20021223.062147.68337404.imp@bsdimp.com> In-Reply-To: <NIEMJEIGGPEDAKAKBLAHEEJJFDAA.swaghray@yahoo.com> References: <NIEMJEIGGPEDAKAKBLAHEEJJFDAA.swaghray@yahoo.com>
next in thread | previous in thread | raw e-mail | index | archive | help
You might try the following patch:
Index: if_wi_pci.c
===================================================================
RCS file: /home/ncvs/src/sys/dev/wi/if_wi_pci.c,v
retrieving revision 1.8.2.3
diff -u -r1.8.2.3 if_wi_pci.c
--- if_wi_pci.c	16 Jun 2002 18:07:18 -0000	1.8.2.3
+++ if_wi_pci.c	23 Dec 2002 13:22:12 -0000
@@ -140,7 +140,7 @@
 	command |= wanted;
 	pci_write_config(dev, PCIR_COMMAND, command, 4);
 	command = pci_read_config(dev, PCIR_COMMAND, 4);
-	if ((command & wanted) != wanted) {
+	if ((command & wanted) == 0) {
 		device_printf(dev, "wi_pci_attach() failed to enable pci!\n");
 		return (ENXIO);
 	}
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-mobile" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021223.062147.68337404.imp>
