Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 Jun 2001 16:02:08 -0700
From:      Jim Binkley <jrb@cs.pdx.edu>
To:        freebsd-mobile@freebsd.org
Subject:   query re if_wi.c and firmware version
Message-ID:  <200106262302.QAA12396@sirius.cs.pdx.edu>

next in thread | raw e-mail | index | archive | help

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) &ltv);
        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(&ltv.id[1]);
        *major = le16_to_cpup(&ltv.id[2]);
        *minor = le16_to_cpup(&ltv.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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200106262302.QAA12396>