Mombu the Microsoft Forum sponsored links

Go Back   Mombu the Microsoft Forum > Microsoft > OID_802_11_BSSID returns extrange data
User Name
Password
REGISTER NOW! Mark Forums Read

sponsored links


Reply
 
1 4th July 21:07
beemer
External User
 
Posts: 1
Default OID_802_11_BSSID returns extrange data


I'm trying to query OID_802_11_BSSID in order to know if the PDA is
connected to an AP and the BSSID (or mac address) of the AP.

In MSDN :
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wceddk40/html/cmrefoid_802_11_bssid.asp
explains that this OID must return NDIS_STATUS_ADAPTER_NOT_READY if the NIC
is not associated with an access point but I always get 0, no matter if the
NIC is associated or not.

Furthermore, the buffer must return the mac address of the AP, in this
format:
Typedef UCHAR NDIS_802_11_MAC_ADDRESS[6];
But what I get is different, when connected to an AP dwBytesReturned tells
that have returned 14Bytes, not 6, and the correct MAC Address is on the
last 6 bytes, from QueryBuffer[8] to QueryBuffer[13]. The first Eight bytes
returned are 01.01.01.0d.xx.xx.01.00 being the 'x' 20.6c or 88.88 or
8a.88 ...................

When not connected to an AP and there is not availables APs, dwBytesReturned
is always 0. but when the PDA is trying to connect to an AP, even if it
cannot associate, I get 14 bytes and the same format of QueryBuffer with the
BSSID that the NIC is trying to connect to.

I can`t use it to find if connected. And I don't know if this extrange
behaviour is a problem of my PDA (X50V), or will be general, and if my code
will work only on X50 PDAs or in All WM2003 PDAs even if I imagine any other
way of diferenciate when the NIC is connected or trying to connect.

Any idea?

Thanks advanced
beemer
  Reply With Quote


  sponsored links


2 4th July 21:07
beemer
External User
 
Posts: 1
Default OID_802_11_BSSID returns extrange data


I was doing bad the reading of the buffer Oppps.
Now I read NDISUIO_QUERY_OID->data and works Ok.
And also have found the problem with the code returned, is only 0 when
connected or trying to connect to an AP. Otherwise is not 0

Thanks and sorry.

beemer


"Beemer" <beemer@teleline.es> escribió en el mensaje
news:%23lS6ggIqFHA.3724@TK2MSFTNGP12.phx.gbl...
  Reply With Quote
Reply


Thread Tools
Display Modes




Copyright © 2006 SmartyDevil.com - Dies Mies Jeschet Boenedoesef Douvema Enitemaus -
666