aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/wi
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2004-06-09 06:31:40 +0000
committerWarner Losh <imp@FreeBSD.org>2004-06-09 06:31:40 +0000
commit8c81529f45975f1e50d8db494aba44629f64d829 (patch)
tree5330705fd2bdc2e5f18366f0a8c9b31264693ede /sys/dev/wi
parentd989c7b3895717b5a81a9d680787476051b6efcd (diff)
Notes
Diffstat (limited to 'sys/dev/wi')
-rw-r--r--sys/dev/wi/if_wi_pccard.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/sys/dev/wi/if_wi_pccard.c b/sys/dev/wi/if_wi_pccard.c
index e1f70be01d60a..549825b72be3e 100644
--- a/sys/dev/wi/if_wi_pccard.c
+++ b/sys/dev/wi/if_wi_pccard.c
@@ -65,6 +65,7 @@ __FBSDID("$FreeBSD$");
#include <net80211/ieee80211_radiotap.h>
#include <dev/pccard/pccardvar.h>
+#include <dev/pccard/pccard_cis.h>
#include <dev/wi/if_wavelan_ieee.h>
#include <dev/wi/if_wireg.h>
@@ -162,6 +163,15 @@ wi_pccard_match(dev)
device_t dev;
{
const struct pccard_product *pp;
+ u_int32_t fcn = PCCARD_FUNCTION_UNSPEC;
+ int error;
+
+ /* Make sure we're a network driver */
+ error = pccard_get_function(dev, &fcn);
+ if (error != 0)
+ return (error);
+ if (fcn != PCCARD_FUNCTION_NETWORK)
+ return (ENXIO);
if ((pp = pccard_product_lookup(dev, wi_pccard_products,
sizeof(wi_pccard_products[0]), NULL)) != NULL) {