FW: Converting signal and noise values to dBm
Varga Dávid
varga.david
Sun May 6 05:37:24 PDT 2007
Hi!
Does noone know the answer? I received a solution, that subtracting 256
would be fine, but it doesn't give the values displayed by iwconfig (anyway,
thanks Drew!).
Please help!
Thanks,
David
_____
From: Varga D?vid [mailto:varga.david at duvinet.hu]
Sent: Thursday, April 26, 2007 3:19 PM
To: 'hostap at shmoo.com'
Subject: Converting signal and noise values to dBm
Hello!
I'd like to convert the rx_stats->signal and rx_stats->noise values in the
hostap_80211_rx.c to dBm.
At the moment I use printk(KERN_DEBUG "%d %d", rx_stats->signal,
rx_stats->noise);
and it gives me back signal rates 180.230 and noise rates 160.170.
I tried using printk(KERN_DEBUG "%d %d",
HFA384X_LEVEL_TO_dBm(rx_stats->signal),
HFA384X_LEVEL_TO_dBm(rx_stats->noise));
but it still doesn't give me the negative dBm values that iwconfig does.
Could anyone help with this?
Thanks;
David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.shmoo.com/pipermail/hostap/attachments/20070506/36721884/attachment.htm
More information about the Hostap
mailing list