wireless signalstrength

C

Christian Verdani

Hello,

i want to query the signal strength of the nearby accesspoints on my
notebook.
So far, i found out that i can query information via the WMI.
Can anyone tell me how to get the signal strength out of the result of the
query?
I am working with visual c++.


here is the code snippet i have tried with:

hres = pSvc->ExecQuery(
bstr_t("WQL"), bstr_t("SELECT * FROM
MSNdis_80211_ReceivedSignalStrength Where active=true"),
WBEM_FLAG_FORWARD_ONLY | WBEM_FLAG_RETURN_IMMEDIATELY, NULL,
&pEnumerator);


IWbemClassObject *pclsObj;
ULONG uReturn = 0;

while (pEnumerator)
{
HRESULT hr = pEnumerator->Next(WBEM_INFINITE, 1, &pclsObj,
&uReturn); //WBEM_INFINITE

if(0 == uReturn)
{
cout << "Need to BREAK!" << endl;
break;
}

VARIANT vtProp;
VariantInit(&vtProp);

// Get the value of the Name property
hr = pclsObj->Get(L"Name", 0, &vtProp, 0, 0);
// wcout << " OS Name : " << vtProp.bstrVal << endl;

VariantClear(&vtProp);
}




can someone help me?

sincerly,
Cristian
 
P

Pavel A.

MSNdis_80211_ReceivedSignalStrength returns RSSI of only
one AP you are currently associated with (or none if you're not connected).
What you need, is the scan list. It contains information on all surrounding APs.
Please do read about 802_11 OIDs in the DDK - this is the source of all wi-fi related wmi data
(unlike WMI info, it is easy to find in the latest DDK in MSDN)
--PA
 
Joined
Mar 8, 2006
Messages
1
Reaction score
0
Multiple signal strengths

did you find a way to get signal strengths from multiple access points?
 
Joined
Oct 28, 2006
Messages
1
Reaction score
0
Dear Dooma,

Did you find the answer of your question? I am looking for the answer too.
 
Last edited:

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top