From a5041c36d39444d6c4947e17927551db1d7e704d Mon Sep 17 00:00:00 2001 From: harti Date: Fri, 25 Jul 2003 12:40:03 +0000 Subject: [PATCH] When deciding whether to download the microcode or not look at the API rather than at the vendor. We have three different Fore cards and only the PCA200 need the microcode. Look also at the RAM address and load the code only if it is not zero. A zero RAM address means either a bug in the driver or this is a interface created by harp(4) in which case fatm(4) handles the microcode issue. --- sbin/atm/fore_dnld/fore_dnld.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sbin/atm/fore_dnld/fore_dnld.c b/sbin/atm/fore_dnld/fore_dnld.c index 22ce59ee2615..aefb304b3b36 100644 --- a/sbin/atm/fore_dnld/fore_dnld.c +++ b/sbin/atm/fore_dnld/fore_dnld.c @@ -1036,7 +1036,7 @@ char *argv[]; */ air = (struct air_cfg_rsp *)buf; - if (air->acp_vendor == VENDOR_FORE ) + if (air->acp_vendapi == VENDAPI_FORE_1 && air->acp_ram != 0) { /* * Create /dev name