From owner-freebsd-mobile Tue Jun 26 16: 2:19 2001 Delivered-To: freebsd-mobile@freebsd.org Received: from rigel.cs.pdx.edu (rigel.cs.pdx.edu [131.252.208.59]) by hub.freebsd.org (Postfix) with ESMTP id 18A9137B40A for ; Tue, 26 Jun 2001 16:02:15 -0700 (PDT) (envelope-from jrb@cs.pdx.edu) Received: from sirius.cs.pdx.edu (root@sirius.cs.pdx.edu [131.252.208.57]) by rigel.cs.pdx.edu (8.9.1/8.9.1) with ESMTP id QAA03597 for ; Tue, 26 Jun 2001 16:02:11 -0700 (PDT) Received: from sirius.cs.pdx.edu (jrb@localhost [127.0.0.1]) by sirius.cs.pdx.edu (8.8.6/8.8.5) with ESMTP id QAA12396 for ; Tue, 26 Jun 2001 16:02:09 -0700 (PDT) Message-Id: <200106262302.QAA12396@sirius.cs.pdx.edu> To: freebsd-mobile@freebsd.org Subject: query re if_wi.c and firmware version Date: Tue, 26 Jun 2001 16:02:08 -0700 From: Jim Binkley Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Does any version of if_wi.c anywhere, anytime print out the firmware version # for the lucent (or whatever) cards? (e.g., say wicontrol displays it and/or kernel probes print it out). I'm willing to look into it and make it happen assuming it is possible (likely) and somebody else hasn't done it already. If somebody has done it, could I get it please? Jim Binkley jrb@cs.pdx.edu ... some version of linux/wvlan_cs.c ... static inline int wvlan_hw_getfirmware (IFBP ifbp, int *vendor, int *major, int * minor) { CFG_ID_STRCT ltv; int rc; ltv.len = 32; ltv.typ = CFG_STA_IDENTITY; rc = hcf_get_info(ifbp, (LTVP) <v); DEBUG(DEBUG_NOISY, "%s: hcf_get_info(CFG_STA_IDENTITY) returned 0x%x\n", dev_info, rc); if (rc) return rc; /* Get the data we need (note : 16 bits operations) */ *vendor = le16_to_cpup(<v.id[1]); *major = le16_to_cpup(<v.id[2]); *minor = le16_to_cpup(<v.id[3]); /* There is more data after that, but I can't guess its use */ DEBUG(DEBUG_NOISY, "%s: hcf_get_info(CFG_STA_IDENTITY):%d-%d.%d\n", dev_i nfo, *vendor, *major, *minor); return 0; } --PAA10751.993594246/sirius.cs.pdx.edu-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message