Re: How to Parse NDIS_WLAN_BSSID_EX???

Tech-Archive recommends: Fix windows errors by optimizing your registry



Hi,
I can give source code.
If you are ready to look my source code. Please tell me
at anand.choubey@xxxxxxxxx


--
With regards
thanks
Anand Choubey


"PCAUSA" wrote:

On Feb 27, 11:13 am, Anand Choubey
<AnandChou...@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
Hi,
Yes WZC is able to see all access points.
But this is strange pattern I could not unserstand.
Please help me.
--
With regards
thanks
Anand Choubey"Pavel A." wrote:
"Anand Choubey" <AnandChou...@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:CB20AB7A-0D9B-47C9-963F-F76714B63F7A@xxxxxxxxxxxxxxxx
Hi,
Thanks for reply.

I am having T61 thinkspad laptop.
Miniport driver is provided by company. NIC is intel wireless wifi link
4965AG.

I am calling using IOCTL_NDIS_QUERY_GLOBAL_STATS.

Err... then all I could say that the driver should be ok, unless you have some outdated version.
Does the Windows WZC GUI see both items?

--PA

--
With regards
thanks
Anand Choubey

"Pavel A." wrote:

The second item looks garbled (SSID="S_HAL009" at 12DBF2);
does it come from your own wi-fi driver?

--PA

"Anand Choubey" <AnandChou...@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:3DA185E0-C0DF-40F5-A2FC-81173E35424C@xxxxxxxxxxxxxxxx
Hi,
Thanks for reply again.
I have tested code which you suggested but unfortunately It could not work.
Please sugget me what should I do?

stBSSIDList = *(NDIS_802_11_BSSID_LIST_EX *)OidData;
PNDIS_WLAN_BSSID_EX pstBSSSID = &stBSSIDList.Bssid;

for(iBSSIDCounter = 0; iBSSIDCounter < stBSSIDList.NumberOfItems;
iBSSIDCounter++)
{
memcpy(szSSID, pstBSSSID->Ssid.Ssid, pstBSSSID->Ssid.SsidLength);
szSSID[pstBSSSID->Ssid.SsidLength] = '\0';

pstBSSSID = (PNDIS_WLAN_BSSID_EX)((char *)pstBSSSID + pstBSSSID->Length) ;

}

--
With regards
thanks
Anand Choubey

"PCAUSA" wrote:

On Feb 22, 2:03 pm, PCAUSA <pca...@xxxxxxxxx> wrote:
This code (abbreviated...) is extracted from NDIScope and does work -
assuming pBssidStart is initialized to point to the first Bssid before
the for loop is entered.

for( ULONG i = 0; i < pBssidList->NumberOfItems ; ++i )
{
PNDIS_WLAN_BSSID pBssid = (PNDIS_WLAN_BSSID )pBssidStart;

//
// Insert Privacy Information (Column 6)
//
if( pBssid->Privacy == 0 )
{
m_BssidListCtrl.SetItemText( i, 6, "NO" );
}
else
{
m_BssidListCtrl.SetItemText( i, 6, "YES" );
}

//
// Possibly Examine Extended BSSID Fields
//

//
// Move To The Next BSSID List Element
//
pBssidStart += pBssid->Length;

}

On Feb 22, 1:27 pm, Anand Choubey<AnandChou...@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
Hi,

Thanks for reply.

But it does not work with you suggested change. My Code is:

stBSSIDList = *(NDIS_802_11_BSSID_LIST_EX *)OidData;
PNDIS_WLAN_BSSID_EX pstBSSSID = &stBSSIDList.Bssid;

for(iBSSIDCounter = 0; iBSSIDCounter < stBSSIDList.NumberOfItems;
iBSSIDCounter++)
{
memcpy(szSSID, pstBSSSID->Ssid.Ssid, pstBSSSID->Ssid.SsidLength);
szSSID[pstBSSSID->Ssid.SsidLength] = '\0';

pstBSSSID = (PNDIS_WLAN_BSSID_EX)((char *)pstBSSSID + (pstBSSSID->Length +
pstBSSSID->IELength + 20));

}

Please suggest me what is wrong in my code.> With regards

thanks
nand Choubey

Perhaps a structure packing/alignment issue. Something simple you have
overlooked.

I know that given the pointer pBssid to a valid Bssid, the next Bssid
is really at pBssid += pBssid->Length.

Thomas F. Divine

Thomas F. Divine

The code snippet refereced PNDIS_WLAN_BSSID, not PNDIS_WLAN_BSSID_EX.
However, either will work. (I just tried it to make sure...)

Thomas F. Divine

It's hard to provide more help. The code fragments provided are from a
working application. The executable that uses these fragments can be
found at the URL:

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

My only further suggestion is that somewhere along the line you have
introduced peculiar structure alignement artifacts.

Good luck,


.



Relevant Pages

  • Re: Embedding perl in Java
    ... Regards ... It didnt work on windows though(like it ... Whether people have the source code or not doesn't stop ... I'm not too fond about these license things. ...
    (comp.lang.perl.misc)
  • Re: nopage mm.h
    ... >>> What would be the best way for me to build a module that has a nopage ... >> Where can we find the source code of your module? ... There had been need of rain for many days. ...
    (Linux-Kernel)
  • Re: Want to Start a SCI.CRYPT team?
    ... > Error in communication with server. ... >> You can find the open source project as well as the source code here: ... >>> Regards, ... >>> Sam Simpson ...
    (sci.crypt)
  • Re: Report Writer to Replace Fast-Report 3?
    ... Since I work in C Builder, cloning via source code isn't an easy option. ... >> Regards, ...
    (borland.public.delphi.thirdpartytools.general)
  • Re: How to Parse NDIS_WLAN_BSSID_EX???
    ... Miniport driver is provided by company. ... With regards ... "Pavel A." ... // Possibly Examine Extended BSSID Fields ...
    (microsoft.public.development.device.drivers)