Tech Support > Microsoft Windows > Drivers > wireless AP enumerate problem on vista
wireless AP enumerate problem on vista
Posted by Liu Lu on October 16th, 2006


I need to get all APs in Vista. In XP, I can query the OID_802_11_BSSID_LIST
and get all available network list. But in Vista, the query always return
error "a device attached to system is not functioning". I have tried the
OIDScope tool. It also returns the same error code. Do I miss something
here? Or is there another way to scan and get all APs in Vista? I also tried
Native WIFI API. But it can only return one valid AP and all other data
returned are invalid.

Posted by Pavel A. on October 16th, 2006


"Liu Lu" wrote:
It seems like the native wi-fi drivers do not support OID_802_11_xxx,
and the Microsoft layer does not emulate these as well.

Try to give a bigger buffer to WlanGetAvailableNetworkList
or WlanGetNetworkBssList.
Probably you call it with room for just one element.

Regards,
--PA



Posted by Thomas F. Divine on October 16th, 2006


Native Wi-Fi adapters on Vista do not respond to the OID_802_11_XYZ family
of OIDs. Instead, they use the OID_DOT11_XYZ family.

Going further, the OID to fetch the BSSID lists uses a new NDIS request
feature called "method". (See the NDIS_IOD_REQUEST structure). This passes
information _to_ the miniport _and_ fetches information _from_ the miniport
in one operation. This new methos cannot be exercised using OIDScope.

Good luck,

Thomas F. Divine, Windows DDK MVP
http://www.pcausa.com


<DIV>&quot;Pavel A.&quot; &lt;pavel_a@NOwritemeNO.com&gt; wrote in message
news:32E6C065-4F82-4A40-809E-6A418A9FAC4D@microsoft.com...</DIV>> "Liu Lu"
wrote:

Posted by Pavel A. on October 17th, 2006


"Thomas F. Divine" <tdivine@NOpcausaSPAM.com> wrote in message news:%23vnzclV8GHA.4288@TK2MSFTNGP02.phx.gbl...
Thomas,

Does this mean that XP and Vista will not have common wireless OIDs,
instead the apps should use the new Wlan API ?
How about WMI and scripting - will there be any common WMI
objects? Have you seen scripting samples for Vista that demonstrate
the DOT11 objects?

Thanks,
Pavel



Posted by Thomas F. Divine on October 17th, 2006




<DIV>&quot;Pavel A.&quot; &lt;pavel_a@NOwritemeNO.com&gt; wrote in message
news:ulATVLZ8GHA.3760@TK2MSFTNGP02.phx.gbl...</DIV>> "Thomas F. Divine"
<tdivine@NOpcausaSPAM.com> wrote in message
news:%23vnzclV8GHA.4288@TK2MSFTNGP02.phx.gbl...
Pavel,

I haven't looked at the new user-mode APIs. I have no clue whether they work
transparently on NDIS 5 802.11 adapter miniports and new NDIS 6 native-wi-fi
adapter miniports. My guess is that they would have to work seamlessly on
both or they have botched something.

If you haven't seen it already, I have an experimental tool that can be used
to monitor OID transactions both above and below the system 802.11 "LAN
emulation" driver. See:

http://www.pcausa.com/Utilities/PCAGizmo/PCAGizmo.htm

Thos


Similar Posts