Prev: keyboard filter driver
Next: Programming style...
From: Thomas F. Divine [DDK MVP] on 3 Jun 2005 14:13 "Arsalan Ahmad" <arsal__(a)hotmail.com> wrote in message news:egvBYRGaFHA.796(a)TK2MSFTNGP10.phx.gbl... > But what I have noted is that I have to wait 3 to 5 sec using Sleep() > before calling OID_...SCAN and OID_..._LIST otherwise i dont get the > updated list. > Have you read the MSDN topic "Scanning 802.11 Networks". It describes the timing between starting a list scan and fetching the list. See: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/network/hh/network/213_802.11_bb61b6ee-e9ab-4f03-aee3-c932fe2ea2a9.xml.asp (Beware of wrap...) Good luck, Thomas F. Divine, Windows DDK MVP http://www.rawether.net
From: Arsalan Ahmad on 3 Jun 2005 14:16
sorry..what i wanted to say is what I have noted is that I have to wait 3 to 5 sec using Sleep() between calling OID_...SCAN and OID_..._LIST otherwise i dont get the updated list i.e. Call OID_...LIST_SCAN Wait for 3 or 5 sec Call OID_LIST "Arsalan Ahmad" <arsal__(a)hotmail.com> wrote in message news:egvBYRGaFHA.796(a)TK2MSFTNGP10.phx.gbl... > But what I have noted is that I have to wait 3 to 5 sec using Sleep() > before calling OID_...SCAN and OID_..._LIST otherwise i dont get the > updated list. > > "Wojciech F." <"vankaszaner[REMOVE_IT]"@tlen.pl> wrote in message > news:4t4am2hkiwo2.dlg(a)tofik.homeip.net... >> Tue, 31 May 2005 22:09:29 +0300, >> microsoft.public.development.device.drivers, Pavel A.: >> >>> "Wojciech F." <"vankaszaner[REMOVE_IT]"@tlen.pl> wrote in message >>> news:1e9nxskr0q8le$.dlg(a)tofik.homeip.net... >>>> Yes. I wrote already that I don't know how to SET that oid. But I >>>> wonder >>>> how does it make NDISUIO service. >>> >>> NDISUIO (or clones of DDK Ndisprot sample ) is a real NDIS transport >>> driver, so the full set of NDIS intefaces is available to >>> it. >>> >>>> It seems to support a lots of w-lan cards >>>> (i tested it with 5 different cards). I can't belive that it uses a >>>> magic >>>> parameters specific for each card's manufacturer. >>> >>> It is an universal vehicle to send any NDIS request to 3rd party netcard >>> drivers. >>> It has nothing specific to wi-fi. Just study the ndisprot sample. >>> (if you work on WinCE OS, there it is different. I'm talking about NT >>> based Windows). >>> >>>> When I use NDISUIO and I set OID..._SCAN it seems to do real scan, >>>> because >>>> I need to wait a little bit longer until DeviceIoControl funcion >>>> returns. >>>> It is clearly noticeable on PocketPC. Sometimes it takes 2s until >>>> function >>>> returns and after reading the list through the oid.._list it always >>>> differs >>>> (new accespoints, rssi). >>> >>> Depends on the netcard driver. Scan can and should run asynchronously. >>> Holding the caller for 2 seconds is bad. >>> >>> Regards, >>> --PA >> >> thanks for discussion, friend. >> >> >> -- >> Thanks, >> Wojtek >> >> E-mail hint: add [usenet] to the subject >> "Ipsa scientia potestas est." > > |