Why doesn't my MiniportSendPackets get called?

Hello All,

I just finished writing a very basic NDIS miniport. It installs okay and
I respond to a bunch of OIDs that come down my QueryHandler, but my
MiniportSendPackets handler doesn’t get called? What else do I need to
do to make this happen. I want to start debugging my sendpackets
routine.

Thanks,
Ravi

I would suggest you run ndistest against you driver, pay attention to the
“mandatory OID” test.
NDIS won’t call MPSendPackets unless ALL mandatory OIDs are handled
properly.

Good luck,
Calvin

Calvin Guan Software Engineer
ATI Technologies Inc. www.ati.com
-----Original Message-----
From: Murty, Ravi [mailto:xxxxx@intel.com]
Sent: March 2, 2005 1:34 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] Why doesn’t my MiniportSendPackets get called?

Hello All,
I just finished writing a very basic NDIS miniport. It installs okay and I
respond to a bunch of OIDs that come down my QueryHandler, but my
MiniportSendPackets handler doesn’t get called? What else do I need to do to
make this happen. I want to start debugging my sendpackets routine.
Thanks,
Ravi


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: unknown lmsubst tag argument: ‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com

Calvin,

Thanks, I installed it and ran it and I see a load of messages when I
run the tests on the right panel (WHQL probably). It runs this one test
called OidsNdisRequest.

  1. Is this the right test 'cause it says “Total 3”, “Passed 2”, “Failed
    1”…

2.How do I interpret the results. I think I am implementing all required
OIDs. Do I need to support additional OIDs if I declare myself a
NdisWirelessLAN device for PHYSICAL_MEDIUM type?

Thanks for your help,

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Calvin Guan
Sent: Wednesday, March 02, 2005 10:43 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Why doesn’t my MiniportSendPackets get called?

I would suggest you run ndistest against you driver, pay attention to
the
“mandatory OID” test.
NDIS won’t call MPSendPackets unless ALL mandatory OIDs are handled
properly.

Good luck,
Calvin

Calvin Guan Software Engineer
ATI Technologies Inc. www.ati.com
-----Original Message-----
From: Murty, Ravi [mailto:xxxxx@intel.com]
Sent: March 2, 2005 1:34 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] Why doesn’t my MiniportSendPackets get called?

Hello All,
I just finished writing a very basic NDIS miniport. It installs okay and
I
respond to a bunch of OIDs that come down my QueryHandler, but my
MiniportSendPackets handler doesn’t get called? What else do I need to
do to
make this happen. I want to start debugging my sendpackets routine.
Thanks,
Ravi


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: unknown lmsubst tag argument:
‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@intel.com
To unsubscribe send a blank email to xxxxx@lists.osr.com

Ravi,

You can pick up individual test (instead of the full WHQL) to perform. You
definitely want to fix the failure. The NDIStest log should have explained
why it’s failing, e.g. which OID. Did you return the correct link speed? Can
you post the full log for oidtest?

You could compare your code with any of your WHQL’ed drivers. I’ve never
written an 802.11 driver myself. I don’t know what special OIDs need to be
handled. You may contact Mitesh Desai (MSFT) who had helped me on ndistest
issues before.

HTH,
Calvin

Calvin Guan Software Engineer
ATI Technologies Inc. www.ati.com

-----Original Message-----
From: Murty, Ravi [mailto:xxxxx@intel.com]
Sent: March 2, 2005 3:07 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Why doesn’t my MiniportSendPackets get called?

Calvin,

Thanks, I installed it and ran it and I see a load of messages when I
run the tests on the right panel (WHQL probably). It runs this one test
called OidsNdisRequest.

  1. Is this the right test 'cause it says “Total 3”, “Passed 2”, “Failed
    1”…

2.How do I interpret the results. I think I am implementing all required
OIDs. Do I need to support additional OIDs if I declare myself a
NdisWirelessLAN device for PHYSICAL_MEDIUM type?

Thanks for your help,

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Calvin Guan
Sent: Wednesday, March 02, 2005 10:43 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Why doesn’t my MiniportSendPackets get called?

I would suggest you run ndistest against you driver, pay attention to
the
“mandatory OID” test.
NDIS won’t call MPSendPackets unless ALL mandatory OIDs are handled
properly.

Good luck,
Calvin

Calvin Guan Software Engineer
ATI Technologies Inc. www.ati.com
-----Original Message-----
From: Murty, Ravi [mailto:xxxxx@intel.com]
Sent: March 2, 2005 1:34 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] Why doesn’t my MiniportSendPackets get called?

Hello All,
I just finished writing a very basic NDIS miniport. It installs okay and
I
respond to a bunch of OIDs that come down my QueryHandler, but my
MiniportSendPackets handler doesn’t get called? What else do I need to
do to
make this happen. I want to start debugging my sendpackets routine.
Thanks,
Ravi


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: unknown lmsubst tag argument:
‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@intel.com
To unsubscribe send a blank email to xxxxx@lists.osr.com


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: unknown lmsubst tag argument: ‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com

Murty, Ravi wrote:

I just finished writing a very basic NDIS miniport. It installs okay and
I respond to a bunch of OIDs that come down my QueryHandler, but my
MiniportSendPackets handler doesn’t get called? What else do I need to
do to make this happen. I want to start debugging my sendpackets routine.

Ravi,

You may have already checked this but check if there are any
'#ifdef’s around where you setup the SendPackets routine and
if these variables are being set when you build the driver.

I had the same problem and it took me some time to realise that
I was setting up the function inside an ‘#ifdef DESERIALIZED’ but
I was not defining the variable when building the driver.

Something really basic and simple but it is something to check for…

  • Harshal

Calvin,

Yep I checked and I am returning the right link speed - 11Mbps. I
selected only the OID test this time around and I’ve copied the log. The
one thing I did notice on my debugger was that my SetInformation Handler
is being invoked a few times. Also Ndistest uses IOcontrol and I see
something that says PENDING. Do I have to do anything in the
MiniportSetInformation handler right away for this to work?

Here’s the log:
Variation #1 Loading scripts…
This script performs a series of NdisRequest calls to the driver, to
verify
that it supports the querying of all required information OIDS. This
will query
OID_GEN_SUPPORTED_OIDS, verify that all required oids are present and
query them.

The Ndis Tester is not able to verify the values returned by most
of these OIDs. The user should check this log carefully for problems.

*****************************************************************
Date/Time: 3/3/2005 5:08:24 AM
Script: C:\NdisTester\scripts\lan\1c_OidsNdisRequest.wsf
NDIS Test: 4.03.0044
OS Type: Microsoft Windows XP Professional (Desktop)
OS Version: 5.1 Build 2600 (Service Pack 2) Multiprocessor Free
2600.xpsp_sp2_rtm.040803-2158
BIOS Date: 07/27/04
BIOS Name: IntelR - 42302e31
CPU Type: x86 Family 15 Model 2 Stepping 7, GenuineIntel
Processors: 2
Loop Count: 1
Driver Verifier Selection: Enabled
WHQL Test Mode: No
ndis.sys: 182912 8/4/2004 8:14:30 5.1.2600.2180 Free
Driver Verifier Level: Disabled

Test Device
MYDRIVER-LAB: Intel MyDriver Prototype Adapter #2
C:\WINDOWS\system32\DRIVERS\MyDriver.sys
50944 3/2/2005 19:45:56 1.5.0.0 Checked
Driver Verifier Level: Disabled
Ethernet Wireless Lan PCI
{60DBB6B9-DB6A-4859-9AC1-C0C32C1F6496}
pci\ven_8086&dev_2642
MAXIMUM_TOTAL_SIZE = 1514
MAC_ADDRESS = B-A-9-8-7-6
LINK_SPEED = 11 Mbps
OID_PNP_CAPABILITIES Flags = 0x0
Magic\Pattern\Link Wake Unspecified\D3\Unspecified
MAC_OPTIONS = 0xCD
Copy Lookahead Data
Receives are not Serialized
Transfers never Pend
NDIS handles Loopback
Transmit’s must be serialized with other requests
802.1p Priority is supported
Mac Address can be Overwritten
802.1q VLAN is not supported
MINIPORT_INFO = 0xAE38A15
Bus Master
Not a WDM Driver
Uses Scatter Gather List
Indicates Packets
Outstanding packets cannot cause reset to be called
Outstanding requests cannot cause reset to be called
Do not Ignore Token Ring Errors
Not an IM Driver
Ndis 5 driver
Is not Connection Oriented
Deserialized
Does not require Media Polling
Is not a NetBoot Card
Power Management is supported
Supports Mac Address Overwrite
Uses Safe Buffer Apis
Is not Hidden
Is not Software Enumerated
Surprise Remove is not OK
Do not Halt on Suspend
Hardware Device
Supports Cancel Send Packets
Does not do 64 Bit DMA

*****************************************************************

Variation #2 Binding/Unbinding Protocols
CreateBindCtrl
GetProtocolInfo

Get the list of supported protocols

  • NDIS Usermode I/O Protocol

  • Point to Point Protocol Over Ethernet

  • Point to Point Tunneling Protocol

  • Layer 2 Tunneling Protocol

  • Remote Access NDIS WAN Driver

  • Message-oriented TCP/IP Protocol (SMB session)

  • WINS Client(TCP/IP) Protocol

  • Internet Protocol (TCP/IP)

Variation #3 Verifying wireless lan configuration …

vbCreateAdapter

  • Connection ID = 1
    CreateAdapter
  • GUID = {60DBB6B9-DB6A-4859-9AC1-C0C32C1F6496}
  • ConnectionID = 0
  • Description = Intel MyDriver Prototype Adapter #2
  • MachineName = MYDRIVER-LAB
    NdisIoControl
    Card = {60DBB6B9-DB6A-4859-9AC1-C0C32C1F6496}
  • QueryMode = 0
  • OID = OID_GEN_MEDIA_IN_USE
    Media Types In Use are:
    NdisMedium
    802_3 (Ethernet).
    CreateOpen
    Card = {60DBB6B9-DB6A-4859-9AC1-C0C32C1F6496}
    OpenId = 0x01010001
    NdisOpen
  • OpenId = 0x01010001
  • MediaType = NdisMedium802_3
  • ForceNdis30Flag = FALSE
    NdisRequest
  • OpenId = 0x01010001
  • OID = OID_802_3_CURRENT_ADDRESS
    Current Station Address =
    0B-0A-09-08-07-06

vbIsWPASupported

vbAuthenticationSE
Authentication Mode = Ndis802_11AuthModeWPA(3)
NdisRequest2

  • OpenId = 0x01010001
  • OID = OID_802_11_AUTHENTICATION_MODE
  • RequestType = 1

STATUS = NDIS_STATUS_SUCCESS

vbAuthenticationGE
NdisRequest2

  • OpenId = 0x01010001
  • OID = OID_802_11_AUTHENTICATION_MODE
  • RequestType = 0

Authentication Mode = Ndis802_11AuthModeOpen(0)

STATUS = NDIS_STATUS_SUCCESS

vbIsWPAAdhocSupported

vbAuthenticationSE
Authentication Mode = Ndis802_11AuthModeWPANone(5)
NdisRequest2

  • OpenId = 0x01010001
  • OID = OID_802_11_AUTHENTICATION_MODE
  • RequestType = 1

STATUS = NDIS_STATUS_SUCCESS

vbAuthenticationGE
NdisRequest2

  • OpenId = 0x01010001
  • OID = OID_802_11_AUTHENTICATION_MODE
  • RequestType = 0

NdisClose

  • OpenId = 0x01010001
    FAILED: [22775] A VBScript run-time error has occured!

Variation #4 Verifing script completed successfully…
FAILED: [0] Script was terminated abnormally!

THIS COULD BE THE RESULT OF AN INTERNAL ERROR,
DELIBERATE TERMINATION OF THE WSCRIPT PROCESS OR
STOPPING THE SCRIPT WITH THE UI!

#################### END OF LOG ####################

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Calvin Guan
Sent: Wednesday, March 02, 2005 12:36 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Why doesn’t my MiniportSendPackets get called?

Ravi,

You can pick up individual test (instead of the full WHQL) to perform.
You
definitely want to fix the failure. The NDIStest log should have
explained
why it’s failing, e.g. which OID. Did you return the correct link speed?
Can
you post the full log for oidtest?

You could compare your code with any of your WHQL’ed drivers. I’ve never
written an 802.11 driver myself. I don’t know what special OIDs need to
be
handled. You may contact Mitesh Desai (MSFT) who had helped me on
ndistest
issues before.

HTH,
Calvin

Calvin Guan Software Engineer
ATI Technologies Inc. www.ati.com

-----Original Message-----
From: Murty, Ravi [mailto:xxxxx@intel.com]
Sent: March 2, 2005 3:07 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Why doesn’t my MiniportSendPackets get called?

Calvin,

Thanks, I installed it and ran it and I see a load of messages when I
run the tests on the right panel (WHQL probably). It runs this one
test
called OidsNdisRequest.

  1. Is this the right test 'cause it says “Total 3”, “Passed 2”,
    “Failed
    1”…

2.How do I interpret the results. I think I am implementing all
required
OIDs. Do I need to support additional OIDs if I declare myself a
NdisWirelessLAN device for PHYSICAL_MEDIUM type?

Thanks for your help,

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Calvin Guan
Sent: Wednesday, March 02, 2005 10:43 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Why doesn’t my MiniportSendPackets get called?

I would suggest you run ndistest against you driver, pay attention to
the
“mandatory OID” test.
NDIS won’t call MPSendPackets unless ALL mandatory OIDs are handled
properly.

Good luck,
Calvin

Calvin Guan Software Engineer
ATI Technologies Inc. www.ati.com
-----Original Message-----
From: Murty, Ravi [mailto:xxxxx@intel.com]
Sent: March 2, 2005 1:34 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] Why doesn’t my MiniportSendPackets get called?

Hello All,
I just finished writing a very basic NDIS miniport. It installs okay
and
I
respond to a bunch of OIDs that come down my QueryHandler, but my
MiniportSendPackets handler doesn’t get called? What else do I need to
do to
make this happen. I want to start debugging my sendpackets routine.
Thanks,
Ravi


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: unknown lmsubst tag
argument:
‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@intel.com
To unsubscribe send a blank email to xxxxx@lists.osr.com


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: unknown lmsubst tag
argument: ‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@intel.com
To unsubscribe send a blank email to xxxxx@lists.osr.com

Ravi,

You don’t want to pend and SetInfo forever… Ndis won’t send further
SetInfo if there’s a pending one. Perhaps it is the problem.

Calvin Guan Software Engineer
ATI Technologies Inc. www.ati.com

-----Original Message-----
From: Murty, Ravi [mailto:xxxxx@intel.com]
Sent: March 2, 2005 4:31 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Why doesn’t my MiniportSendPackets get called?

Calvin,

Yep I checked and I am returning the right link speed - 11Mbps. I
selected only the OID test this time around and I’ve copied the log. The
one thing I did notice on my debugger was that my SetInformation Handler
is being invoked a few times. Also Ndistest uses IOcontrol and I see
something that says PENDING. Do I have to do anything in the
MiniportSetInformation handler right away for this to work?

Here’s the log:
Variation #1 Loading scripts…
This script performs a series of NdisRequest calls to the driver, to
verify
that it supports the querying of all required information OIDS. This
will query
OID_GEN_SUPPORTED_OIDS, verify that all required oids are present and
query them.

The Ndis Tester is not able to verify the values returned by most
of these OIDs. The user should check this log carefully for problems.

*****************************************************************
Date/Time: 3/3/2005 5:08:24 AM
Script: C:\NdisTester\scripts\lan\1c_OidsNdisRequest.wsf
NDIS Test: 4.03.0044
OS Type: Microsoft Windows XP Professional (Desktop)
OS Version: 5.1 Build 2600 (Service Pack 2) Multiprocessor Free
2600.xpsp_sp2_rtm.040803-2158
BIOS Date: 07/27/04
BIOS Name: IntelR - 42302e31
CPU Type: x86 Family 15 Model 2 Stepping 7, GenuineIntel
Processors: 2
Loop Count: 1
Driver Verifier Selection: Enabled
WHQL Test Mode: No
ndis.sys: 182912 8/4/2004 8:14:30 5.1.2600.2180 Free
Driver Verifier Level: Disabled

Test Device
MYDRIVER-LAB: Intel MyDriver Prototype Adapter #2
C:\WINDOWS\system32\DRIVERS\MyDriver.sys
50944 3/2/2005 19:45:56 1.5.0.0 Checked
Driver Verifier Level: Disabled
Ethernet Wireless Lan PCI
{60DBB6B9-DB6A-4859-9AC1-C0C32C1F6496}
pci\ven_8086&dev_2642
MAXIMUM_TOTAL_SIZE = 1514
MAC_ADDRESS = B-A-9-8-7-6
LINK_SPEED = 11 Mbps
OID_PNP_CAPABILITIES Flags = 0x0
Magic\Pattern\Link Wake Unspecified\D3\Unspecified
MAC_OPTIONS = 0xCD
Copy Lookahead Data
Receives are not Serialized
Transfers never Pend
NDIS handles Loopback
Transmit’s must be serialized with other requests
802.1p Priority is supported
Mac Address can be Overwritten
802.1q VLAN is not supported
MINIPORT_INFO = 0xAE38A15
Bus Master
Not a WDM Driver
Uses Scatter Gather List
Indicates Packets
Outstanding packets cannot cause reset to be called
Outstanding requests cannot cause reset to be called
Do not Ignore Token Ring Errors
Not an IM Driver
Ndis 5 driver
Is not Connection Oriented
Deserialized
Does not require Media Polling
Is not a NetBoot Card
Power Management is supported
Supports Mac Address Overwrite
Uses Safe Buffer Apis
Is not Hidden
Is not Software Enumerated
Surprise Remove is not OK
Do not Halt on Suspend
Hardware Device
Supports Cancel Send Packets
Does not do 64 Bit DMA

*****************************************************************

Variation #2 Binding/Unbinding Protocols
CreateBindCtrl
GetProtocolInfo

Get the list of supported protocols

  • NDIS Usermode I/O Protocol

  • Point to Point Protocol Over Ethernet

  • Point to Point Tunneling Protocol

  • Layer 2 Tunneling Protocol

  • Remote Access NDIS WAN Driver

  • Message-oriented TCP/IP Protocol (SMB session)

  • WINS Client(TCP/IP) Protocol

  • Internet Protocol (TCP/IP)

Variation #3 Verifying wireless lan configuration …

vbCreateAdapter

  • Connection ID = 1
    CreateAdapter
  • GUID = {60DBB6B9-DB6A-4859-9AC1-C0C32C1F6496}
  • ConnectionID = 0
  • Description = Intel MyDriver Prototype Adapter #2
  • MachineName = MYDRIVER-LAB
    NdisIoControl
    Card = {60DBB6B9-DB6A-4859-9AC1-C0C32C1F6496}
  • QueryMode = 0
  • OID = OID_GEN_MEDIA_IN_USE
    Media Types In Use are:
    NdisMedium
    802_3 (Ethernet).
    CreateOpen
    Card = {60DBB6B9-DB6A-4859-9AC1-C0C32C1F6496}
    OpenId = 0x01010001
    NdisOpen
  • OpenId = 0x01010001
  • MediaType = NdisMedium802_3
  • ForceNdis30Flag = FALSE
    NdisRequest
  • OpenId = 0x01010001
  • OID = OID_802_3_CURRENT_ADDRESS
    Current Station Address =
    0B-0A-09-08-07-06

vbIsWPASupported

vbAuthenticationSE
Authentication Mode = Ndis802_11AuthModeWPA(3)
NdisRequest2

  • OpenId = 0x01010001
  • OID = OID_802_11_AUTHENTICATION_MODE
  • RequestType = 1

STATUS = NDIS_STATUS_SUCCESS

vbAuthenticationGE
NdisRequest2

  • OpenId = 0x01010001
  • OID = OID_802_11_AUTHENTICATION_MODE
  • RequestType = 0

Authentication Mode = Ndis802_11AuthModeOpen(0)

STATUS = NDIS_STATUS_SUCCESS

vbIsWPAAdhocSupported

vbAuthenticationSE
Authentication Mode = Ndis802_11AuthModeWPANone(5)
NdisRequest2

  • OpenId = 0x01010001
  • OID = OID_802_11_AUTHENTICATION_MODE
  • RequestType = 1

STATUS = NDIS_STATUS_SUCCESS

vbAuthenticationGE
NdisRequest2

  • OpenId = 0x01010001
  • OID = OID_802_11_AUTHENTICATION_MODE
  • RequestType = 0

NdisClose

  • OpenId = 0x01010001
    FAILED: [22775] A VBScript run-time error has occured!

Variation #4 Verifing script completed successfully…
FAILED: [0] Script was terminated abnormally!

THIS COULD BE THE RESULT OF AN INTERNAL ERROR,
DELIBERATE TERMINATION OF THE WSCRIPT PROCESS OR
STOPPING THE SCRIPT WITH THE UI!

#################### END OF LOG ####################

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Calvin Guan
Sent: Wednesday, March 02, 2005 12:36 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Why doesn’t my MiniportSendPackets get called?

Ravi,

You can pick up individual test (instead of the full WHQL) to perform.
You
definitely want to fix the failure. The NDIStest log should have
explained
why it’s failing, e.g. which OID. Did you return the correct link speed?
Can
you post the full log for oidtest?

You could compare your code with any of your WHQL’ed drivers. I’ve never
written an 802.11 driver myself. I don’t know what special OIDs need to
be
handled. You may contact Mitesh Desai (MSFT) who had helped me on
ndistest
issues before.

HTH,
Calvin

Calvin Guan Software Engineer
ATI Technologies Inc. www.ati.com

> -----Original Message-----
> From: Murty, Ravi [mailto:xxxxx@intel.com]
> Sent: March 2, 2005 3:07 PM
> To: Windows System Software Devs Interest List
> Subject: RE: [ntdev] Why doesn’t my MiniportSendPackets get called?
>
> Calvin,
>
> Thanks, I installed it and ran it and I see a load of messages when I
> run the tests on the right panel (WHQL probably). It runs this one
test
> called OidsNdisRequest.
>
> 1. Is this the right test 'cause it says “Total 3”, “Passed 2”,
“Failed
> 1”…
>
> 2.How do I interpret the results. I think I am implementing all
required
> OIDs. Do I need to support additional OIDs if I declare myself a
> NdisWirelessLAN device for PHYSICAL_MEDIUM type?
>
> Thanks for your help,
>
> -----Original Message-----
> From: xxxxx@lists.osr.com
> [mailto:xxxxx@lists.osr.com] On Behalf Of Calvin Guan
> Sent: Wednesday, March 02, 2005 10:43 AM
> To: Windows System Software Devs Interest List
> Subject: RE: [ntdev] Why doesn’t my MiniportSendPackets get called?
>
> I would suggest you run ndistest against you driver, pay attention to
> the
> “mandatory OID” test.
> NDIS won’t call MPSendPackets unless ALL mandatory OIDs are handled
> properly.
>
> Good luck,
> Calvin
> -
> Calvin Guan Software Engineer
> ATI Technologies Inc. www.ati.com
> -----Original Message-----
> From: Murty, Ravi [mailto:xxxxx@intel.com]
> Sent: March 2, 2005 1:34 PM
> To: Windows System Software Devs Interest List
> Subject: [ntdev] Why doesn’t my MiniportSendPackets get called?
>
> Hello All,
> I just finished writing a very basic NDIS miniport. It installs okay
and
> I
> respond to a bunch of OIDs that come down my QueryHandler, but my
> MiniportSendPackets handler doesn’t get called? What else do I need to
> do to
> make this happen. I want to start debugging my sendpackets routine.
> Thanks,
> Ravi
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: unknown lmsubst tag
argument:
> ‘’
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: xxxxx@intel.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: unknown lmsubst tag
argument: ‘’
> To unsubscribe send a blank email to xxxxx@lists.osr.com


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@intel.com
To unsubscribe send a blank email to xxxxx@lists.osr.com


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: unknown lmsubst tag argument: ‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com

Calvin, few more questions:

  1. Do I need to do anything in the INF files to make sure that a

protocol is bound?

  1. I changed my driver to be a simple 802_3 device and I see one

MiniportSetInformation call with OID_GEN_MACHINE_NAME, and that’s it.

  1. Do I need a traffic generator application of sorts to see any

packets? I assumed I will see something like ARP packets right off the

bat in the Miniport and I wouldn’t need a traffic generator app.

I am using a bogus MAC address in the OID that asks for CURRENT_ADDRESS

and PERMANENT_ADDRESS. I hope that’s okay.

thanks Ravi


From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Calvin Guan
Sent: Wednesday, March 02, 2005 1:58 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Why doesn’t my MiniportSendPackets get called?

Ravi,

You don’t want to pend and SetInfo forever… Ndis won’t send further
SetInfo if there’s a pending one. Perhaps it is the problem.

Calvin Guan Software Engineer
ATI Technologies Inc. www.ati.com

  1. No.
  2. Did you complete it or pend it?
  3. You don’t need a traffic generator. Just do a “ping”.
    Bogus MAC address is fine. Make sure it’s not a multicast/broadcast address.

Calvin Guan??? Software Engineer??
ATI Technologies Inc. www.ati.com
-----Original Message-----
From: Murty, Ravi [mailto:xxxxx@intel.com]
Sent: March 2, 2005 7:10 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Why doesn’t my MiniportSendPackets get called?

Calvin, few more questions:
?

  1. Do I need to do anything in the INF files to make sure that a
    protocol is bound?
    ?
  2. I changed my driver to be a simple 802_3 device and I see one
    MiniportSetInformation call with OID_GEN_MACHINE_NAME, and that’s it.
    ?
  3. Do I need a traffic generator application of sorts to see any
    packets? I assumed I will see something like ARP packets right off the
    bat in the Miniport and I wouldn’t need a traffic generator app.
    ?
    I am using a bogus MAC address in the OID that asks for CURRENT_ADDRESS
    and PERMANENT_ADDRESS. I hope that’s okay.
    ?
    thanks Ravi
    ?
    ?

From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Calvin Guan
Sent: Wednesday, March 02, 2005 1:58 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Why doesn’t my MiniportSendPackets get called?
?
Ravi,
You don’t want to pend and SetInfo forever… Ndis won’t send further
SetInfo if there’s a pending one. Perhaps it is the problem.

Calvin Guan??? Software Engineer??
ATI Technologies Inc. www.ati.com

Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: unknown lmsubst tag argument: ‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com

I complete it with BytesRead set to the right value. Interestingly enough, I see only one OID come to SetInformation - OID_GEN_MACHINE_NAME and it seems like an optional OID.

But I still don’t see my SendPackets called. Is there anyway to find out if the protocol and other higher layers drivers got loaded and bound?

Thanks
Ravi

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of Calvin Guan
Sent: Wednesday, March 02, 2005 4:33 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Why doesn’t my MiniportSendPackets get called?

  1. No.
  2. Did you complete it or pend it?
  3. You don’t need a traffic generator. Just do a “ping”.
    Bogus MAC address is fine. Make sure it’s not a multicast/broadcast address.

Calvin Guan??? Software Engineer??
ATI Technologies Inc. www.ati.com
-----Original Message-----
From: Murty, Ravi [mailto:xxxxx@intel.com]
Sent: March 2, 2005 7:10 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Why doesn’t my MiniportSendPackets get called?

Calvin, few more questions:
?

  1. Do I need to do anything in the INF files to make sure that a
    protocol is bound?
    ?
  2. I changed my driver to be a simple 802_3 device and I see one
    MiniportSetInformation call with OID_GEN_MACHINE_NAME, and that’s it.
    ?
  3. Do I need a traffic generator application of sorts to see any
    packets? I assumed I will see something like ARP packets right off the
    bat in the Miniport and I wouldn’t need a traffic generator app.
    ?
    I am using a bogus MAC address in the OID that asks for CURRENT_ADDRESS
    and PERMANENT_ADDRESS. I hope that’s okay.
    ?
    thanks Ravi
    ?
    ?

From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Calvin Guan
Sent: Wednesday, March 02, 2005 1:58 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Why doesn’t my MiniportSendPackets get called?
?
Ravi,
You don’t want to pend and SetInfo forever… Ndis won’t send further
SetInfo if there’s a pending one. Perhaps it is the problem.

Calvin Guan??? Software Engineer??
ATI Technologies Inc. www.ati.com

Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: unknown lmsubst tag argument: ‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com


Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: unknown lmsubst tag argument: ‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com

Ravi,

One thing in the log caught my eyes.

MAC_OPTIONS = 0xCD
Copy Lookahead Data
Receives are not Serialized
Transfers never Pend
NDIS handles Loopback
Transmit’s must be serialized with other requests
802.1p Priority is supported
Mac Address can be Overwritten
802.1q VLAN is not supported

The bit_7 (0x80) is not defined in my DDK. The explanation for that bit
seems to say (Transmit’s must be serialized with other requests)

Did you set the bit in response to an OID_GEN_MAC_OPTIONS query? I
definitely didn’t set this bit in my lan driver.

I would guess NDIS is waiting for something to finish before sending???

Please install a checked build ndis.sys and use ndiskd debugger extension.
Post the output of commands “!ndiskd!miniport xxxxxxxx” and “!ndiskd!mopen
xxxxxxxx”.

Keep me posted, PLEASE…

Thanks,
Calvin

Calvin Guan Software Engineer
ATI Technologies Inc. www.ati.com

-----Original Message-----
From: Murty, Ravi [mailto:xxxxx@intel.com]
Sent: March 2, 2005 4:31 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Why doesn’t my MiniportSendPackets get called?

Calvin,

Yep I checked and I am returning the right link speed - 11Mbps. I
selected only the OID test this time around and I’ve copied the log. The
one thing I did notice on my debugger was that my SetInformation Handler
is being invoked a few times. Also Ndistest uses IOcontrol and I see
something that says PENDING. Do I have to do anything in the
MiniportSetInformation handler right away for this to work?

Here’s the log:
Variation #1 Loading scripts…
This script performs a series of NdisRequest calls to the driver, to
verify
that it supports the querying of all required information OIDS. This
will query
OID_GEN_SUPPORTED_OIDS, verify that all required oids are present and
query them.

The Ndis Tester is not able to verify the values returned by most
of these OIDs. The user should check this log carefully for problems.

*****************************************************************
Date/Time: 3/3/2005 5:08:24 AM
Script: C:\NdisTester\scripts\lan\1c_OidsNdisRequest.wsf
NDIS Test: 4.03.0044
OS Type: Microsoft Windows XP Professional (Desktop)
OS Version: 5.1 Build 2600 (Service Pack 2) Multiprocessor Free
2600.xpsp_sp2_rtm.040803-2158
BIOS Date: 07/27/04
BIOS Name: IntelR - 42302e31
CPU Type: x86 Family 15 Model 2 Stepping 7, GenuineIntel
Processors: 2
Loop Count: 1
Driver Verifier Selection: Enabled
WHQL Test Mode: No
ndis.sys: 182912 8/4/2004 8:14:30 5.1.2600.2180 Free
Driver Verifier Level: Disabled

Test Device
MYDRIVER-LAB: Intel MyDriver Prototype Adapter #2
C:\WINDOWS\system32\DRIVERS\MyDriver.sys
50944 3/2/2005 19:45:56 1.5.0.0 Checked
Driver Verifier Level: Disabled
Ethernet Wireless Lan PCI
{60DBB6B9-DB6A-4859-9AC1-C0C32C1F6496}
pci\ven_8086&dev_2642
MAXIMUM_TOTAL_SIZE = 1514
MAC_ADDRESS = B-A-9-8-7-6
LINK_SPEED = 11 Mbps
OID_PNP_CAPABILITIES Flags = 0x0
Magic\Pattern\Link Wake Unspecified\D3\Unspecified
MAC_OPTIONS = 0xCD
Copy Lookahead Data
Receives are not Serialized
Transfers never Pend
NDIS handles Loopback
Transmit’s must be serialized with other requests
802.1p Priority is supported
Mac Address can be Overwritten
802.1q VLAN is not supported
MINIPORT_INFO = 0xAE38A15
Bus Master
Not a WDM Driver
Uses Scatter Gather List
Indicates Packets
Outstanding packets cannot cause reset to be called
Outstanding requests cannot cause reset to be called
Do not Ignore Token Ring Errors
Not an IM Driver
Ndis 5 driver
Is not Connection Oriented
Deserialized
Does not require Media Polling
Is not a NetBoot Card
Power Management is supported
Supports Mac Address Overwrite
Uses Safe Buffer Apis
Is not Hidden
Is not Software Enumerated
Surprise Remove is not OK
Do not Halt on Suspend
Hardware Device
Supports Cancel Send Packets
Does not do 64 Bit DMA

*****************************************************************

Variation #2 Binding/Unbinding Protocols
CreateBindCtrl
GetProtocolInfo

Get the list of supported protocols

  • NDIS Usermode I/O Protocol

  • Point to Point Protocol Over Ethernet

  • Point to Point Tunneling Protocol

  • Layer 2 Tunneling Protocol

  • Remote Access NDIS WAN Driver

  • Message-oriented TCP/IP Protocol (SMB session)

  • WINS Client(TCP/IP) Protocol

  • Internet Protocol (TCP/IP)

Variation #3 Verifying wireless lan configuration …

vbCreateAdapter

  • Connection ID = 1
    CreateAdapter
  • GUID = {60DBB6B9-DB6A-4859-9AC1-C0C32C1F6496}
  • ConnectionID = 0
  • Description = Intel MyDriver Prototype Adapter #2
  • MachineName = MYDRIVER-LAB
    NdisIoControl
    Card = {60DBB6B9-DB6A-4859-9AC1-C0C32C1F6496}
  • QueryMode = 0
  • OID = OID_GEN_MEDIA_IN_USE
    Media Types In Use are:
    NdisMedium
    802_3 (Ethernet).
    CreateOpen
    Card = {60DBB6B9-DB6A-4859-9AC1-C0C32C1F6496}
    OpenId = 0x01010001
    NdisOpen
  • OpenId = 0x01010001
  • MediaType = NdisMedium802_3
  • ForceNdis30Flag = FALSE
    NdisRequest
  • OpenId = 0x01010001
  • OID = OID_802_3_CURRENT_ADDRESS
    Current Station Address =
    0B-0A-09-08-07-06

vbIsWPASupported

vbAuthenticationSE
Authentication Mode = Ndis802_11AuthModeWPA(3)
NdisRequest2

  • OpenId = 0x01010001
  • OID = OID_802_11_AUTHENTICATION_MODE
  • RequestType = 1

STATUS = NDIS_STATUS_SUCCESS

vbAuthenticationGE
NdisRequest2

  • OpenId = 0x01010001
  • OID = OID_802_11_AUTHENTICATION_MODE
  • RequestType = 0

Authentication Mode = Ndis802_11AuthModeOpen(0)

STATUS = NDIS_STATUS_SUCCESS

vbIsWPAAdhocSupported

vbAuthenticationSE
Authentication Mode = Ndis802_11AuthModeWPANone(5)
NdisRequest2

  • OpenId = 0x01010001
  • OID = OID_802_11_AUTHENTICATION_MODE
  • RequestType = 1

STATUS = NDIS_STATUS_SUCCESS

vbAuthenticationGE
NdisRequest2

  • OpenId = 0x01010001
  • OID = OID_802_11_AUTHENTICATION_MODE
  • RequestType = 0

NdisClose

  • OpenId = 0x01010001
    FAILED: [22775] A VBScript run-time error has occured!

Variation #4 Verifing script completed successfully…
FAILED: [0] Script was terminated abnormally!

THIS COULD BE THE RESULT OF AN INTERNAL ERROR,
DELIBERATE TERMINATION OF THE WSCRIPT PROCESS OR
STOPPING THE SCRIPT WITH THE UI!

#################### END OF LOG ####################

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Calvin Guan
Sent: Wednesday, March 02, 2005 12:36 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Why doesn’t my MiniportSendPackets get called?

Ravi,

You can pick up individual test (instead of the full WHQL) to perform.
You
definitely want to fix the failure. The NDIStest log should have
explained
why it’s failing, e.g. which OID. Did you return the correct link speed?
Can
you post the full log for oidtest?

You could compare your code with any of your WHQL’ed drivers. I’ve never
written an 802.11 driver myself. I don’t know what special OIDs need to
be
handled. You may contact Mitesh Desai (MSFT) who had helped me on
ndistest
issues before.

HTH,
Calvin

Calvin Guan Software Engineer
ATI Technologies Inc. www.ati.com

> -----Original Message-----
> From: Murty, Ravi [mailto:xxxxx@intel.com]
> Sent: March 2, 2005 3:07 PM
> To: Windows System Software Devs Interest List
> Subject: RE: [ntdev] Why doesn’t my MiniportSendPackets get called?
>
> Calvin,
>
> Thanks, I installed it and ran it and I see a load of messages when I
> run the tests on the right panel (WHQL probably). It runs this one
test
> called OidsNdisRequest.
>
> 1. Is this the right test 'cause it says “Total 3”, “Passed 2”,
“Failed
> 1”…
>
> 2.How do I interpret the results. I think I am implementing all
required
> OIDs. Do I need to support additional OIDs if I declare myself a
> NdisWirelessLAN device for PHYSICAL_MEDIUM type?
>
> Thanks for your help,
>
> -----Original Message-----
> From: xxxxx@lists.osr.com
> [mailto:xxxxx@lists.osr.com] On Behalf Of Calvin Guan
> Sent: Wednesday, March 02, 2005 10:43 AM
> To: Windows System Software Devs Interest List
> Subject: RE: [ntdev] Why doesn’t my MiniportSendPackets get called?
>
> I would suggest you run ndistest against you driver, pay attention to
> the
> “mandatory OID” test.
> NDIS won’t call MPSendPackets unless ALL mandatory OIDs are handled
> properly.
>
> Good luck,
> Calvin
> -
> Calvin Guan Software Engineer
> ATI Technologies Inc. www.ati.com
> -----Original Message-----
> From: Murty, Ravi [mailto:xxxxx@intel.com]
> Sent: March 2, 2005 1:34 PM
> To: Windows System Software Devs Interest List
> Subject: [ntdev] Why doesn’t my MiniportSendPackets get called?
>
> Hello All,
> I just finished writing a very basic NDIS miniport. It installs okay
and
> I
> respond to a bunch of OIDs that come down my QueryHandler, but my
> MiniportSendPackets handler doesn’t get called? What else do I need to
> do to
> make this happen. I want to start debugging my sendpackets routine.
> Thanks,
> Ravi
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: unknown lmsubst tag
argument:
> ‘’
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: xxxxx@intel.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: unknown lmsubst tag
argument: ‘’
> To unsubscribe send a blank email to xxxxx@lists.osr.com


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@intel.com
To unsubscribe send a blank email to xxxxx@lists.osr.com


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: unknown lmsubst tag argument: ‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com

> -----Original Message-----

From: Calvin Guan [mailto:xxxxx@ati.com]

Post the output of commands “!ndiskd!miniport xxxxxxxx” and “!ndiskd!mopen
xxxxxxxx”.

Well, I have a screw loose today. It should read:

kd>!ndiskd.miniport Xxxxxxxx (or !miniport xxxxxxxx)
kd>!ndiskd.mopen Xxxxxxxx (or !mopen Xxxxxxxx)

Calvin Guan Software Engineer
ATI Technologies Inc. www.ati.com

Calvin,

Hmmmm… This is a dump from nddndis.h in the ddk directory. Which option
are you referring to? I can’t find any option with the description you
mentioned. Could this be a NDIS 5.0/5.1 issue?

//
// Ndis MAC option bits (OID_GEN_MAC_OPTIONS).
//
#define NDIS_MAC_OPTION_COPY_LOOKAHEAD_DATA 0x00000001
#define NDIS_MAC_OPTION_RECEIVE_SERIALIZED 0x00000002
#define NDIS_MAC_OPTION_TRANSFERS_NOT_PEND 0x00000004
#define NDIS_MAC_OPTION_NO_LOOPBACK 0x00000008
#define NDIS_MAC_OPTION_FULL_DUPLEX 0x00000010
#define NDIS_MAC_OPTION_EOTX_INDICATION 0x00000020
#define NDIS_MAC_OPTION_8021P_PRIORITY 0x00000040
#define NDIS_MAC_OPTION_SUPPORTS_MAC_ADDRESS_OVERWRITE 0x00000080
#define NDIS_MAC_OPTION_RECEIVE_AT_DPC 0x00000100
#define NDIS_MAC_OPTION_8021Q_VLAN 0x00000200
#define NDIS_MAC_OPTION_RESERVED 0x80000000

According to this, 0x00000080 is
NDIS_MAC_OPTION_SUPPORTS_MAC_ADDRESS_OVERWRITE even though I am not
setting it. That’s weird. Here’s what I return for this query

ulSourceBuffer = (NDIS_MAC_OPTION_COPY_LOOKAHEAD_DATA |
NDIS_MAC_OPTION_TRANSFERS_NOT_PEND |
NDIS_MAC_OPTION_NO_LOOPBACK |
NDIS_MAC_OPTION_8021P_PRIORITY);

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Calvin Guan
Sent: Thursday, March 03, 2005 8:12 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Why doesn’t my MiniportSendPackets get called?

Ravi,

One thing in the log caught my eyes.

MAC_OPTIONS = 0xCD
Copy Lookahead Data
Receives are not Serialized
Transfers never Pend
NDIS handles Loopback
Transmit’s must be serialized with other requests
802.1p Priority is supported
Mac Address can be Overwritten
802.1q VLAN is not supported

The bit_7 (0x80) is not defined in my DDK. The explanation for that bit
seems to say (Transmit’s must be serialized with other requests)

Did you set the bit in response to an OID_GEN_MAC_OPTIONS query? I
definitely didn’t set this bit in my lan driver.

I would guess NDIS is waiting for something to finish before sending???

Please install a checked build ndis.sys and use ndiskd debugger
extension.
Post the output of commands “!ndiskd!miniport xxxxxxxx” and
“!ndiskd!mopen
xxxxxxxx”.

Keep me posted, PLEASE…

Thanks,
Calvin

Calvin Guan Software Engineer
ATI Technologies Inc. www.ati.com

-----Original Message-----
From: Murty, Ravi [mailto:xxxxx@intel.com]
Sent: March 2, 2005 4:31 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Why doesn’t my MiniportSendPackets get called?

Calvin,

Yep I checked and I am returning the right link speed - 11Mbps. I
selected only the OID test this time around and I’ve copied the log.
The
one thing I did notice on my debugger was that my SetInformation
Handler
is being invoked a few times. Also Ndistest uses IOcontrol and I see
something that says PENDING. Do I have to do anything in the
MiniportSetInformation handler right away for this to work?

Here’s the log:
Variation #1 Loading scripts…
This script performs a series of NdisRequest calls to the driver, to
verify
that it supports the querying of all required information OIDS. This
will query
OID_GEN_SUPPORTED_OIDS, verify that all required oids are present and
query them.

The Ndis Tester is not able to verify the values returned by most
of these OIDs. The user should check this log carefully for problems.

*****************************************************************
Date/Time: 3/3/2005 5:08:24 AM
Script: C:\NdisTester\scripts\lan\1c_OidsNdisRequest.wsf
NDIS Test: 4.03.0044
OS Type: Microsoft Windows XP Professional (Desktop)
OS Version: 5.1 Build 2600 (Service Pack 2) Multiprocessor Free
2600.xpsp_sp2_rtm.040803-2158
BIOS Date: 07/27/04
BIOS Name: IntelR - 42302e31
CPU Type: x86 Family 15 Model 2 Stepping 7, GenuineIntel
Processors: 2
Loop Count: 1
Driver Verifier Selection: Enabled
WHQL Test Mode: No
ndis.sys: 182912 8/4/2004 8:14:30 5.1.2600.2180 Free
Driver Verifier Level: Disabled

Test Device
MYDRIVER-LAB: Intel MyDriver Prototype Adapter #2
C:\WINDOWS\system32\DRIVERS\MyDriver.sys
50944 3/2/2005 19:45:56 1.5.0.0 Checked
Driver Verifier Level: Disabled
Ethernet Wireless Lan PCI
{60DBB6B9-DB6A-4859-9AC1-C0C32C1F6496}
pci\ven_8086&dev_2642
MAXIMUM_TOTAL_SIZE = 1514
MAC_ADDRESS = B-A-9-8-7-6
LINK_SPEED = 11 Mbps
OID_PNP_CAPABILITIES Flags = 0x0
Magic\Pattern\Link Wake Unspecified\D3\Unspecified
MAC_OPTIONS = 0xCD
Copy Lookahead Data
Receives are not Serialized
Transfers never Pend
NDIS handles Loopback
Transmit’s must be serialized with other requests
802.1p Priority is supported
Mac Address can be Overwritten
802.1q VLAN is not supported
MINIPORT_INFO = 0xAE38A15
Bus Master
Not a WDM Driver
Uses Scatter Gather List
Indicates Packets
Outstanding packets cannot cause reset to be called
Outstanding requests cannot cause reset to be called
Do not Ignore Token Ring Errors
Not an IM Driver
Ndis 5 driver
Is not Connection Oriented
Deserialized
Does not require Media Polling
Is not a NetBoot Card
Power Management is supported
Supports Mac Address Overwrite
Uses Safe Buffer Apis
Is not Hidden
Is not Software Enumerated
Surprise Remove is not OK
Do not Halt on Suspend
Hardware Device
Supports Cancel Send Packets
Does not do 64 Bit DMA

*****************************************************************

Variation #2 Binding/Unbinding Protocols
CreateBindCtrl
GetProtocolInfo

Get the list of supported protocols

  • NDIS Usermode I/O Protocol

  • Point to Point Protocol Over Ethernet

  • Point to Point Tunneling Protocol

  • Layer 2 Tunneling Protocol

  • Remote Access NDIS WAN Driver

  • Message-oriented TCP/IP Protocol (SMB session)

  • WINS Client(TCP/IP) Protocol

  • Internet Protocol (TCP/IP)

Variation #3 Verifying wireless lan configuration …

vbCreateAdapter

  • Connection ID = 1
    CreateAdapter
  • GUID = {60DBB6B9-DB6A-4859-9AC1-C0C32C1F6496}
  • ConnectionID = 0
  • Description = Intel MyDriver Prototype Adapter #2
  • MachineName = MYDRIVER-LAB
    NdisIoControl
    Card = {60DBB6B9-DB6A-4859-9AC1-C0C32C1F6496}
  • QueryMode = 0
  • OID = OID_GEN_MEDIA_IN_USE
    Media Types In Use are:
    NdisMedium
    802_3 (Ethernet).
    CreateOpen
    Card = {60DBB6B9-DB6A-4859-9AC1-C0C32C1F6496}
    OpenId = 0x01010001
    NdisOpen
  • OpenId = 0x01010001
  • MediaType = NdisMedium802_3
  • ForceNdis30Flag = FALSE
    NdisRequest
  • OpenId = 0x01010001
  • OID = OID_802_3_CURRENT_ADDRESS
    Current Station Address =
    0B-0A-09-08-07-06

vbIsWPASupported

vbAuthenticationSE
Authentication Mode = Ndis802_11AuthModeWPA(3)
NdisRequest2

  • OpenId = 0x01010001
  • OID = OID_802_11_AUTHENTICATION_MODE
  • RequestType = 1

STATUS = NDIS_STATUS_SUCCESS

vbAuthenticationGE
NdisRequest2

  • OpenId = 0x01010001
  • OID = OID_802_11_AUTHENTICATION_MODE
  • RequestType = 0

Authentication Mode = Ndis802_11AuthModeOpen(0)

STATUS = NDIS_STATUS_SUCCESS

vbIsWPAAdhocSupported

vbAuthenticationSE
Authentication Mode = Ndis802_11AuthModeWPANone(5)
NdisRequest2

  • OpenId = 0x01010001
  • OID = OID_802_11_AUTHENTICATION_MODE
  • RequestType = 1

STATUS = NDIS_STATUS_SUCCESS

vbAuthenticationGE
NdisRequest2

  • OpenId = 0x01010001
  • OID = OID_802_11_AUTHENTICATION_MODE
  • RequestType = 0

NdisClose

  • OpenId = 0x01010001
    FAILED: [22775] A VBScript run-time error has occured!

Variation #4 Verifing script completed successfully…
FAILED: [0] Script was terminated abnormally!

THIS COULD BE THE RESULT OF AN INTERNAL ERROR,
DELIBERATE TERMINATION OF THE WSCRIPT PROCESS OR
STOPPING THE SCRIPT WITH THE UI!

#################### END OF LOG ####################

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Calvin Guan
Sent: Wednesday, March 02, 2005 12:36 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Why doesn’t my MiniportSendPackets get called?

Ravi,

You can pick up individual test (instead of the full WHQL) to perform.
You
definitely want to fix the failure. The NDIStest log should have
explained
why it’s failing, e.g. which OID. Did you return the correct link
speed?
Can
you post the full log for oidtest?

You could compare your code with any of your WHQL’ed drivers. I’ve
never
written an 802.11 driver myself. I don’t know what special OIDs need
to
be
handled. You may contact Mitesh Desai (MSFT) who had helped me on
ndistest
issues before.

HTH,
Calvin

Calvin Guan Software Engineer
ATI Technologies Inc. www.ati.com

> -----Original Message-----
> From: Murty, Ravi [mailto:xxxxx@intel.com]
> Sent: March 2, 2005 3:07 PM
> To: Windows System Software Devs Interest List
> Subject: RE: [ntdev] Why doesn’t my MiniportSendPackets get called?
>
> Calvin,
>
> Thanks, I installed it and ran it and I see a load of messages when
I
> run the tests on the right panel (WHQL probably). It runs this one
test
> called OidsNdisRequest.
>
> 1. Is this the right test 'cause it says “Total 3”, “Passed 2”,
“Failed
> 1”…
>
> 2.How do I interpret the results. I think I am implementing all
required
> OIDs. Do I need to support additional OIDs if I declare myself a
> NdisWirelessLAN device for PHYSICAL_MEDIUM type?
>
> Thanks for your help,
>
> -----Original Message-----
> From: xxxxx@lists.osr.com
> [mailto:xxxxx@lists.osr.com] On Behalf Of Calvin Guan
> Sent: Wednesday, March 02, 2005 10:43 AM
> To: Windows System Software Devs Interest List
> Subject: RE: [ntdev] Why doesn’t my MiniportSendPackets get called?
>
> I would suggest you run ndistest against you driver, pay attention
to
> the
> “mandatory OID” test.
> NDIS won’t call MPSendPackets unless ALL mandatory OIDs are handled
> properly.
>
> Good luck,
> Calvin
> -
> Calvin Guan Software Engineer
> ATI Technologies Inc. www.ati.com
> -----Original Message-----
> From: Murty, Ravi [mailto:xxxxx@intel.com]
> Sent: March 2, 2005 1:34 PM
> To: Windows System Software Devs Interest List
> Subject: [ntdev] Why doesn’t my MiniportSendPackets get called?
>
> Hello All,
> I just finished writing a very basic NDIS miniport. It installs okay
and
> I
> respond to a bunch of OIDs that come down my QueryHandler, but my
> MiniportSendPackets handler doesn’t get called? What else do I need
to
> do to
> make this happen. I want to start debugging my sendpackets routine.
> Thanks,
> Ravi
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: unknown lmsubst tag
argument:
> ‘’
> To unsubscribe send a blank email to
xxxxx@lists.osr.com
>
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: xxxxx@intel.com
> To unsubscribe send a blank email to
xxxxx@lists.osr.com
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: unknown lmsubst tag
argument: ‘’
> To unsubscribe send a blank email to
xxxxx@lists.osr.com


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@intel.com
To unsubscribe send a blank email to xxxxx@lists.osr.com


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: unknown lmsubst tag
argument: ‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@intel.com
To unsubscribe send a blank email to xxxxx@lists.osr.com

Calvin,

I just realized the following. In my queryInfo handler, I’ve sometimes
returned success when I don’t really support the OID. For instance, I
don’t really care about Custom OIDs for now, and should be returning
NDIS_STATUS_NOT_SUPPORTED when I receive the OID_GEN_SUPPORTED_GUID, but
I don’t. I’ve fixed, this let’s see if this buys me anything.

Ravi

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Calvin Guan
Sent: Thursday, March 03, 2005 8:26 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Why doesn’t my MiniportSendPackets get called?

-----Original Message-----
From: Calvin Guan [mailto:xxxxx@ati.com]

Post the output of commands “!ndiskd!miniport xxxxxxxx” and
“!ndiskd!mopen
xxxxxxxx”.

Well, I have a screw loose today. It should read:

kd>!ndiskd.miniport Xxxxxxxx (or !miniport xxxxxxxx)
kd>!ndiskd.mopen Xxxxxxxx (or !mopen Xxxxxxxx)

Calvin Guan Software Engineer
ATI Technologies Inc. www.ati.com


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@intel.com
To unsubscribe send a blank email to xxxxx@lists.osr.com

I guess, here’s what I did. I fixed my QueryInformation routine to
return NDIS_SUCCESS if I was supporting the OID, and
NDIS_STATUS_NOT_SUPPORTED if I wasn’t. After I see the network icon in
the tray, I added Microsoft TCP/IP to the list of procotols and voila, I
see my SendPackets handler invoked!!

Now, why does this sequence of OIDs happen endlessly?

OID_GEN_CONNECT_STATUS
OID_GEN_LINK_SPEED
and some kind of statistic query?

thanks
ravi

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Calvin Guan
Sent: Thursday, March 03, 2005 8:26 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Why doesn’t my MiniportSendPackets get called?

-----Original Message-----
From: Calvin Guan [mailto:xxxxx@ati.com]

Post the output of commands “!ndiskd!miniport xxxxxxxx” and
“!ndiskd!mopen
xxxxxxxx”.

Well, I have a screw loose today. It should read:

kd>!ndiskd.miniport Xxxxxxxx (or !miniport xxxxxxxx)
kd>!ndiskd.mopen Xxxxxxxx (or !mopen Xxxxxxxx)

Calvin Guan Software Engineer
ATI Technologies Inc. www.ati.com


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@intel.com
To unsubscribe send a blank email to xxxxx@lists.osr.com

Good work, dude!

Yes, the network tray applet polls these OIDs periodically. If you hide the
connection icon from the tray, it should stop polling. IIRC, w2k behaves
differently though.

Calvin Guan Software Engineer
ATI Technologies Inc. www.ati.com

-----Original Message-----
From: Murty, Ravi [mailto:xxxxx@intel.com]
Sent: March 3, 2005 2:19 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Why doesn’t my MiniportSendPackets get called?

I guess, here’s what I did. I fixed my QueryInformation routine to
return NDIS_SUCCESS if I was supporting the OID, and
NDIS_STATUS_NOT_SUPPORTED if I wasn’t. After I see the network icon in
the tray, I added Microsoft TCP/IP to the list of procotols and voila, I
see my SendPackets handler invoked!!

Now, why does this sequence of OIDs happen endlessly?

OID_GEN_CONNECT_STATUS
OID_GEN_LINK_SPEED
and some kind of statistic query?

thanks
ravi

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Calvin Guan
Sent: Thursday, March 03, 2005 8:26 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Why doesn’t my MiniportSendPackets get called?

> -----Original Message-----
> From: Calvin Guan [mailto:xxxxx@ati.com]

> Post the output of commands “!ndiskd!miniport xxxxxxxx” and
“!ndiskd!mopen
> xxxxxxxx”.

Well, I have a screw loose today. It should read:

kd>!ndiskd.miniport Xxxxxxxx (or !miniport xxxxxxxx)
kd>!ndiskd.mopen Xxxxxxxx (or !mopen Xxxxxxxx)

Calvin Guan Software Engineer
ATI Technologies Inc. www.ati.com


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@intel.com
To unsubscribe send a blank email to xxxxx@lists.osr.com


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: unknown lmsubst tag argument: ‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com

My driver loads and I see my SendPackets routine called but this chain
of OIDs never ends! I return 10Mbps for link speed and
NdisMediaStateConnected for CONNECT_STATUS, it comes right back and asks
me for the same info.

Is there a timeout or something that controls this?

This time around I didn’t even open the network connections tray.

Ravi

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Calvin Guan
Sent: Thursday, March 03, 2005 11:53 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Why doesn’t my MiniportSendPackets get called?

Good work, dude!

Yes, the network tray applet polls these OIDs periodically. If you hide
the
connection icon from the tray, it should stop polling. IIRC, w2k behaves
differently though.

Calvin Guan Software Engineer
ATI Technologies Inc. www.ati.com

-----Original Message-----
From: Murty, Ravi [mailto:xxxxx@intel.com]
Sent: March 3, 2005 2:19 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Why doesn’t my MiniportSendPackets get called?

I guess, here’s what I did. I fixed my QueryInformation routine to
return NDIS_SUCCESS if I was supporting the OID, and
NDIS_STATUS_NOT_SUPPORTED if I wasn’t. After I see the network icon in
the tray, I added Microsoft TCP/IP to the list of procotols and voila,
I
see my SendPackets handler invoked!!

Now, why does this sequence of OIDs happen endlessly?

OID_GEN_CONNECT_STATUS
OID_GEN_LINK_SPEED
and some kind of statistic query?

thanks
ravi

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Calvin Guan
Sent: Thursday, March 03, 2005 8:26 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Why doesn’t my MiniportSendPackets get called?

> -----Original Message-----
> From: Calvin Guan [mailto:xxxxx@ati.com]

> Post the output of commands “!ndiskd!miniport xxxxxxxx” and
“!ndiskd!mopen
> xxxxxxxx”.

Well, I have a screw loose today. It should read:

kd>!ndiskd.miniport Xxxxxxxx (or !miniport xxxxxxxx)
kd>!ndiskd.mopen Xxxxxxxx (or !mopen Xxxxxxxx)

Calvin Guan Software Engineer
ATI Technologies Inc. www.ati.com


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@intel.com
To unsubscribe send a blank email to xxxxx@lists.osr.com


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: unknown lmsubst tag
argument: ‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@intel.com
To unsubscribe send a blank email to xxxxx@lists.osr.com

Do you have the network icon in the tray? You will get endless query OID
even you didn’t open the tray as long as the icon was there. You need to
un-check the “Show icon in notification area when connected” box to hide the
icon.

Calvin Guan Software Engineer
ATI Technologies Inc. www.ati.com

-----Original Message-----
From: Murty, Ravi [mailto:xxxxx@intel.com]
Sent: March 3, 2005 5:21 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Why doesn’t my MiniportSendPackets get called?

My driver loads and I see my SendPackets routine called but this chain
of OIDs never ends! I return 10Mbps for link speed and
NdisMediaStateConnected for CONNECT_STATUS, it comes right back and asks
me for the same info.

Is there a timeout or something that controls this?

This time around I didn’t even open the network connections tray.

Ravi

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Calvin Guan
Sent: Thursday, March 03, 2005 11:53 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Why doesn’t my MiniportSendPackets get called?

Good work, dude!

Yes, the network tray applet polls these OIDs periodically. If you hide
the
connection icon from the tray, it should stop polling. IIRC, w2k behaves
differently though.

Calvin Guan Software Engineer
ATI Technologies Inc. www.ati.com

> -----Original Message-----
> From: Murty, Ravi [mailto:xxxxx@intel.com]
> Sent: March 3, 2005 2:19 PM
> To: Windows System Software Devs Interest List
> Subject: RE: [ntdev] Why doesn’t my MiniportSendPackets get called?
>
> I guess, here’s what I did. I fixed my QueryInformation routine to
> return NDIS_SUCCESS if I was supporting the OID, and
> NDIS_STATUS_NOT_SUPPORTED if I wasn’t. After I see the network icon in
> the tray, I added Microsoft TCP/IP to the list of procotols and voila,
I
> see my SendPackets handler invoked!!
>
> Now, why does this sequence of OIDs happen endlessly?
>
> OID_GEN_CONNECT_STATUS
> OID_GEN_LINK_SPEED
> and some kind of statistic query?
>
> thanks
> ravi
>
>
> -----Original Message-----
> From: xxxxx@lists.osr.com
> [mailto:xxxxx@lists.osr.com] On Behalf Of Calvin Guan
> Sent: Thursday, March 03, 2005 8:26 AM
> To: Windows System Software Devs Interest List
> Subject: RE: [ntdev] Why doesn’t my MiniportSendPackets get called?
>
> > -----Original Message-----
> > From: Calvin Guan [mailto:xxxxx@ati.com]
>
> > Post the output of commands “!ndiskd!miniport xxxxxxxx” and
> “!ndiskd!mopen
> > xxxxxxxx”.
>
> Well, I have a screw loose today. It should read:
>
> kd>!ndiskd.miniport Xxxxxxxx (or !miniport xxxxxxxx)
> kd>!ndiskd.mopen Xxxxxxxx (or !mopen Xxxxxxxx)
>
> -
> Calvin Guan Software Engineer
> ATI Technologies Inc. www.ati.com
>
>
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: xxxxx@intel.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: unknown lmsubst tag
argument: ‘’
> To unsubscribe send a blank email to xxxxx@lists.osr.com


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@intel.com
To unsubscribe send a blank email to xxxxx@lists.osr.com


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: unknown lmsubst tag argument: ‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com

Okay, if that’s true, how does a real network driver work. I have an
icon open on the bottom right of my screen but that doesn’t seem to
freeze up my system. In my case I see so many debug messages that my
system practially freezes. Is it that I have to pend the query and
return it only when the link speed really changes or something?

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Calvin Guan
Sent: Thursday, March 03, 2005 2:45 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Why doesn’t my MiniportSendPackets get called?

Do you have the network icon in the tray? You will get endless query OID
even you didn’t open the tray as long as the icon was there. You need to
un-check the “Show icon in notification area when connected” box to hide
the
icon.

Calvin Guan Software Engineer
ATI Technologies Inc. www.ati.com

-----Original Message-----
From: Murty, Ravi [mailto:xxxxx@intel.com]
Sent: March 3, 2005 5:21 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Why doesn’t my MiniportSendPackets get called?

My driver loads and I see my SendPackets routine called but this chain
of OIDs never ends! I return 10Mbps for link speed and
NdisMediaStateConnected for CONNECT_STATUS, it comes right back and
asks
me for the same info.

Is there a timeout or something that controls this?

This time around I didn’t even open the network connections tray.

Ravi

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Calvin Guan
Sent: Thursday, March 03, 2005 11:53 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Why doesn’t my MiniportSendPackets get called?

Good work, dude!

Yes, the network tray applet polls these OIDs periodically. If you
hide
the
connection icon from the tray, it should stop polling. IIRC, w2k
behaves
differently though.

Calvin Guan Software Engineer
ATI Technologies Inc. www.ati.com

> -----Original Message-----
> From: Murty, Ravi [mailto:xxxxx@intel.com]
> Sent: March 3, 2005 2:19 PM
> To: Windows System Software Devs Interest List
> Subject: RE: [ntdev] Why doesn’t my MiniportSendPackets get called?
>
> I guess, here’s what I did. I fixed my QueryInformation routine to
> return NDIS_SUCCESS if I was supporting the OID, and
> NDIS_STATUS_NOT_SUPPORTED if I wasn’t. After I see the network icon
in
> the tray, I added Microsoft TCP/IP to the list of procotols and
voila,
I
> see my SendPackets handler invoked!!
>
> Now, why does this sequence of OIDs happen endlessly?
>
> OID_GEN_CONNECT_STATUS
> OID_GEN_LINK_SPEED
> and some kind of statistic query?
>
> thanks
> ravi
>
>
> -----Original Message-----
> From: xxxxx@lists.osr.com
> [mailto:xxxxx@lists.osr.com] On Behalf Of Calvin Guan
> Sent: Thursday, March 03, 2005 8:26 AM
> To: Windows System Software Devs Interest List
> Subject: RE: [ntdev] Why doesn’t my MiniportSendPackets get called?
>
> > -----Original Message-----
> > From: Calvin Guan [mailto:xxxxx@ati.com]
>
> > Post the output of commands “!ndiskd!miniport xxxxxxxx” and
> “!ndiskd!mopen
> > xxxxxxxx”.
>
> Well, I have a screw loose today. It should read:
>
> kd>!ndiskd.miniport Xxxxxxxx (or !miniport xxxxxxxx)
> kd>!ndiskd.mopen Xxxxxxxx (or !mopen Xxxxxxxx)
>
> -
> Calvin Guan Software Engineer
> ATI Technologies Inc. www.ati.com
>
>
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: xxxxx@intel.com
> To unsubscribe send a blank email to
xxxxx@lists.osr.com
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: unknown lmsubst tag
argument: ‘’
> To unsubscribe send a blank email to
xxxxx@lists.osr.com


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@intel.com
To unsubscribe send a blank email to xxxxx@lists.osr.com


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: unknown lmsubst tag
argument: ‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@intel.com
To unsubscribe send a blank email to xxxxx@lists.osr.com

>Bogus MAC address is fine. Make sure it’s not a multicast/broadcast address.

Also the OP must make sure that this MAC address is never changed for the
lifetime of the adapter. It is queried and cached by NDIS very early, just
after MiniportInitialize and before any protocols are bound.

Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com