Wireless NIC showed like an Ethernet NIC after standby

Discussion in 'Windows Vista Drivers' started by Skyview22, Dec 7, 2005.

  1. Skyview22

    Skyview22 Guest

    I write a NDIS driver for a 802.11 PCMCIA card. It is a legacy device so
    whenever system goes into standby or hibernate, the driver is unloaded.
    On Windows XP SP2, after the system comes back from standby or
    hibernate, WZC shows no wireless networks and the Wireless tap in
    Network Connections property is gone. I can see the Authentication tap
    instead. This doesn't happen all the time, it works normally most of the
    time. I don't see any special OID failing or something.
    OID_GEN_PHYSICAL_MEDIUM is not queryed after standby/hibernate, I guess
    it is saved when the card first plugged in. What is the reason for this?
    This only happens after standby/hibernate, sometimes.
    Skyview22, Dec 7, 2005
    1. Advertisements

  2. Skyview22

    Pavel A. Guest

    How long takes your driver to startup?
    Can you measure time from start of your DriverEntry to return from

    Pavel A., Dec 7, 2005
    1. Advertisements

  3. Skyview22

    Skyview22 Guest

    Hmm, good point. It does take about 5 seconds to start because I put
    many delays. I suspected some timing issue but don't know what it is.
    The long load time works most of the time. DDK does mention init should
    return in mini-seconds. I really what to find out what is the problem.
    Or it should never work and just gets lucky most times. :)

    Skyview22, Dec 7, 2005
  4. Skyview22

    Pavel A. Guest

    Can you read MAC address from the card in ~ 1 - 2 sec?
    As soon as you have MAC address, queue a work item and return from
    MiniportInitialize. Complete your init later.
    (of course, delay access to the hardware until it is ready).

    Pavel A., Dec 7, 2005
  5. Skyview22

    Skyview22 Guest

    Yes. It can be done. I also want to find out how Windows see the
    difference because it works some times. Any direction on where to start?

    Skyview22, Dec 8, 2005
  6. Skyview22

    Pavel A. Guest

    How WZC sees the difference? Hmm. Perhaps it simply sets a timeout.
    If it does not get a positive indication that adapter is wireless until the
    timeout occurs, it won't attach itself to this adapter, then it will appear
    as usual ethernet.

    Pavel A., Dec 8, 2005
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.