Converting signal and noise values to dBm

Varga Dávid varga.david at duvinet.hu
Thu Apr 26 09:19:02 EDT 2007


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/20070426/d6bfebe1/attachment.htm 


More information about the HostAP mailing list