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:
Dan Williams
2008-10-15 22:47:38 +00:00
parent d45930afd2
commit 0bb853b300
2 changed files with 7 additions and 1 deletions

View File

@@ -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

View File

@@ -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;