Hi
Thanks for any help.
I have an NDIS IM driver under Pocket PC 2003.
Its giving me couple of problems for Built-In Wifi medium.
Sorry, I know its a painful question.
Hope some one helps me.
External WiFi cards work fine.
When I have Built-In WiFi on, it has couple of options to turn it
ON/OFF.
1. Thru a WiFi utility that comes with the device.
2. Connectivity icon at the top of the machine. When clicked it shows
"Turn Wi-Fi ON/OFF". Also this option is different in some machines
"Turn Flight mode ON/OFF".
Code:
1. I return ndis status SUCCESS in
ProtocolPnpHandler(NetEventSetPower). I maintain the power state in the
driver.
2. In the PnpCapabilties Query I tried to return ndis status NOT
SUPPORTED or SUPPORTED (with Wakeup capabilities set to
"NdisDeviceStateUnspecified". Also I tried simply return the statuses
without filling these wakeupcapability buffers.
The problem is
Both the WiFi options to Turn on and off the medium works as such when
the device in ON.
When I switch off the power and back on, One of them works and other
doesn't. (Wi-Fi was on when powered down.)
Example. If I set STATUS NOT SUPPORTED in pnpcapabilities, Power and
flight mode works. If I set SUPPORTED, Utility and power works.
The other is broken, Meaning, when the power is back its frozen or if
you click to switch off the Wi-Fi, its frozen.
Mostly in "NdisIMDeInitializeDeviceInstance".
Could some please give me some direction here? some how the protocol
stacks on top seem to hang.
Is there away to disable(remove) this flight mode option thru the
pnpcapabilites?.
Note: PNPCapabities query will be called twice. I don't know the
individual meanings but it looks we can specify different capabilities
in both cases to make it work.
The code is based on passthru sample that comes with CE 4.2.
Thanks for any help.
Ganesan