A synchronous scan

Aug 1, 2010 at 6:25 AM

Hi,

I'm trying to use Managed WiFi API to rescan the networks. Keeping in mind that Scan() is asynchronous in its nature, I've started with copy/pasting the ConnectSynchronously() with all its event handling code and adjusting it appropriately.

Scanning works perfectly, but unfortunately no events are ever detected, so the re-scan always ends with a timeout, even if it set as big as 20 sec.

What may be missing? I refrain from posting a big piece of code here now, but can do it if necessary...