mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-30 19:00:11 +01:00
2008-10-15 Dan Williams <dcbw@redhat.com>
* src/nm-device-wifi.c - (wireless_qual_to_percent): fix quality calculation in a fallback case (Johannes Berg) git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@4184 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
This commit is contained in:
parent
d45930afd2
commit
0bb853b300
2 changed files with 7 additions and 1 deletions
|
|
@ -1,3 +1,9 @@
|
|||
2008-10-15 Dan Williams <dcbw@redhat.com>
|
||||
|
||||
* src/nm-device-wifi.c
|
||||
- (wireless_qual_to_percent): fix quality calculation in a fallback case
|
||||
(Johannes Berg)
|
||||
|
||||
2008-10-15 Dan Williams <dcbw@redhat.com>
|
||||
|
||||
* src/NetworkManagerSystem.c
|
||||
|
|
|
|||
|
|
@ -1350,7 +1350,7 @@ max_qual->updated);
|
|||
|
||||
level = CLAMP (level, FALLBACK_NOISE_FLOOR_DBM, FALLBACK_SIGNAL_MAX_DBM);
|
||||
|
||||
if ((qual->noise > 0) && (!qual->updated & IW_QUAL_NOISE_INVALID))
|
||||
if ((qual->noise > 0) && !(qual->updated & IW_QUAL_NOISE_INVALID))
|
||||
noise = qual->noise - 0x100;
|
||||
else if ((max_qual->noise > 0) && !(max_qual->updated & IW_QUAL_NOISE_INVALID))
|
||||
noise = max_qual->noise - 0x100;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue