Hi --
I'm writing a .Net class library that's to connect to a specific Wifi network whose name is known in advance, when the signal strength is above a certain threshold.
It all works beautifully, EXCEPT that peformance is a bit spotty. I have a polling thread that repeatedly calls WlanGetAvailableNetworks(). This loop performs well - WLanGetAvailableNetworks() typically takes only 10-20ms. HOWEVER, the signal strength attribute in the WLAN_AVAILALBLE_NETWORK structure seems to take a long time to update. I've seen it take up to 100 seconds to register an updated value when moving to an area with a known signal strength.
I've found cryptic references to the update interval, including this one, from a guy who's implemented a NETSH spawner: http://www.codeproject.com/KB/gadgets/WifiScanner.aspx?msg=3031431
But I haven't found anyone who's addressed this specific question: Is it possible to tweak the update interval for signal strength and other network parameters in the Native Wifi API?
Or, am I missing another helpful concept? (I'm a complete noob, regarding Wifi).
Possibly relevant environmental info: -- .Net 3.5 -- XP plus KB fix for WlanApi -- C# / VS 2008 (4.0 and VS2010 available)
thanks --
Carl