mirror of
https://git.FreeBSD.org/src.git
synced 2024-11-23 07:31:31 +00:00
comment about the magic number -149
This commit is contained in:
parent
abc38e4485
commit
87c397af5c
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=102206
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user