netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* dBm cutoff at -1dBm is too low
@ 2006-05-04 16:37 Pavel Roskin
  2006-05-05 17:28 ` Jean Tourrilhes
  0 siblings, 1 reply; 7+ messages in thread
From: Pavel Roskin @ 2006-05-04 16:37 UTC (permalink / raw)
  To: Jean Tourrilhes; +Cc: NetDev

Hello, Jean!

I'm converting Orinoco to the dBm reporting, and it turns out that the
best signal iwconfig will report is -1dBm (0.8mW).  This would happen if
qual->level has its highest value of 255.  Please see this code from
wireless_tools.29.pre10:

len = snprintf(buffer, buflen, "Signal level%c%d dBm  ",
               qual->updated & IW_QUAL_LEVEL_UPDATED ? '=' : ':',
               qual->level - 0x100);

With most cards transmitting at 100mW and some going as high as 500mW,
it's not unreasonable to expect that the received signal may exceed 1mW
for closely located receivers with good antennas.  I have seen HostAP
reporting as much as 3mW through the proc filesystem!

Wouldn't it be better to put the cutoff at a higher value?  The simplest
approach would be to treat qual->level and qual->noise as signed char,
which would put the cutoff and 127dBm.  500 gigawatts should be enough
for everyone :-)

-- 
Regards,
Pavel Roskin


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2006-05-09 18:54 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-05-04 16:37 dBm cutoff at -1dBm is too low Pavel Roskin
2006-05-05 17:28 ` Jean Tourrilhes
2006-05-07  3:32   ` Pavel Roskin
2006-05-08 17:17     ` Jean Tourrilhes
2006-05-09  4:54       ` Pavel Roskin
2006-05-09 18:54         ` Jean Tourrilhes
2006-05-08  3:35   ` Pavel Roskin

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).