summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManeesh Jain <maneesh.jain@samsung.com>2017-07-07 09:04:50 (GMT)
committerManeesh Jain <maneesh.jain@samsung.com>2017-07-07 09:11:14 (GMT)
commitea7972c912c1aad7ff18284116847740eb548c8c (patch)
treed2f0859d47b7dd4cf763955cb769398c4279ca7c
parenta5dc565b80c2abcd6fb909f41611bbcc78a42c18 (diff)
downloadconnman-ea7972c912c1aad7ff18284116847740eb548c8c.zip
connman-ea7972c912c1aad7ff18284116847740eb548c8c.tar.gz
connman-ea7972c912c1aad7ff18284116847740eb548c8c.tar.bz2
[Improvement]:Pass the same received RSSI from supplicant to Application.refs/changes/36/137736/2
Description: Earlier, connMan was modified the RSSI value received from supplicant using following formula. if (strength > 100) strength = 100; Change-Id: Ifa4fb2be6f65224046274835c9ae26a81fae2e69 Signed-off-by: Maneesh Jain <maneesh.jain@samsung.com>
-rwxr-xr-xplugins/wifi.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/wifi.c b/plugins/wifi.c
index 7b416fc..fd046e9 100755
--- a/plugins/wifi.c
+++ b/plugins/wifi.c
@@ -2907,9 +2907,11 @@ static unsigned char calculate_strength(GSupplicantNetwork *supplicant_network)
unsigned char strength;
strength = 120 + g_supplicant_network_get_signal(supplicant_network);
+
+#if !defined TIZEN_EXT
if (strength > 100)
strength = 100;
-
+#endif
return strength;
}