diff options
author | imp <imp@FreeBSD.org> | 2002-08-21 05:35:51 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2002-08-21 05:35:51 +0000 |
commit | 79a8222879f83fbf452fe6ce9c06c499d7897a69 (patch) | |
tree | 2f6ed6dc7565498f218d9e9a70f39378322585af /sys/dev/wi | |
parent | cabbedf8847dbc154118f0a38737e1969e167876 (diff) | |
download | FreeBSD-src-79a8222879f83fbf452fe6ce9c06c499d7897a69.zip FreeBSD-src-79a8222879f83fbf452fe6ce9c06c499d7897a69.tar.gz |
comment about the magic number -149
Diffstat (limited to 'sys/dev/wi')
-rw-r--r-- | sys/dev/wi/if_wi.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/dev/wi/if_wi.c b/sys/dev/wi/if_wi.c index 11f0e22..22a5322 100644 --- a/sys/dev/wi/if_wi.c +++ b/sys/dev/wi/if_wi.c @@ -2781,6 +2781,12 @@ wi_cache_store(struct wi_softc *sc, struct ether_header *eh, sig = (rx_quality >> 8) & 0xFF; noise = rx_quality & 0xFF; + + /* + * -149 is Lucent specific to convert to dBm. Prism2 cards do + * things differently, sometimes don't have a noise measurement, + * and is firmware dependent :-( + */ sc->wi_sigcache[cache_slot].signal = sig - 149; sc->wi_sigcache[cache_slot].noise = noise - 149; sc->wi_sigcache[cache_slot].quality = sig - noise; |