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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user