* getting back QUALITY
@ 2010-08-23 16:03 Christopher Piggott
0 siblings, 0 replies; only message in thread
From: Christopher Piggott @ 2010-08-23 16:03 UTC (permalink / raw)
To: linux-wireless
Hi,
I notice that through wpa_supplicant I can see noise, quality, and
signal strength ... but in my own app I can only see signal strength
in my netlink application. This is in response to a request for scan
results. I am able to retrieve the station's SSID out of the
NL80211_BSS_INFORMATION_ELEMENTS attribute, and I get a DBM signal
that makes sense.
nlattr *dbm_ptr = bss[NL80211_BSS_SIGNAL_MBM];
if (dbm_ptr == NULL) {
cout << "NO RSSI" << endl;
} else {
int dbm = nla_get_u32(dbm_ptr);
cout << "DBM: " << dbm << endl;
}
nlattr *quality_ptr = bss[NL80211_BSS_SIGNAL_UNSPEC];
if (quality_ptr == NULL) {
cerr << "NO QUALITY" << endl;
} else {
int quality = (int) nla_get_u8(quality_ptr);
cout << "QUALITY: " << (quality/100.0f) << endl;
}
I get "NO QUALITY" out of the above, yet wpa_supplicant tells me
"Quality=29/70" (or similar).
Is this actually a calculated parameter, and BSS_SIGNAL_UNSPEC isn't
really reported by the driver?
--Chris
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2010-08-23 16:03 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-08-23 16:03 getting back QUALITY Christopher Piggott
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).