[SPTSDKUX-2719] network/rssi: Wrong signal strength fix. 46/100246/3 accepted/tizen/mobile/20161128.001046 submit/tizen/20161127.221725
authorRadoslaw Czerski <r.czerski@samsung.com>
Fri, 25 Nov 2016 12:41:09 +0000 (13:41 +0100)
committerRadoslaw Czerski <r.czerski@samsung.com>
Fri, 25 Nov 2016 14:17:39 +0000 (06:17 -0800)
Indicator rssi icon was not consistent with set value, because
TM1 uses only 0-4 values out of 0-6.

Change-Id: Id5340396b81051d73448b096d0e613fa285de14c
Signed-off-by: Radoslaw Czerski <r.czerski@samsung.com>
src/modules/network/rssi.c

index 118a334..500bfdf 100644 (file)
@@ -252,13 +252,13 @@ static rssi_icon_e icon_enum_get(bool roaming_enabled, telephony_network_rssi_e
                case TELEPHONY_NETWORK_RSSI_0:
                        return roaming_enabled ? LEVEL_RSSI_ROAMING_0 : LEVEL_RSSI_SIM_0;
                case TELEPHONY_NETWORK_RSSI_1:
-               case TELEPHONY_NETWORK_RSSI_2:
                        return roaming_enabled ? LEVEL_RSSI_ROAMING_1 : LEVEL_RSSI_SIM_1;
-               case TELEPHONY_NETWORK_RSSI_3:
+               case TELEPHONY_NETWORK_RSSI_2:
                        return roaming_enabled ? LEVEL_RSSI_ROAMING_2 : LEVEL_RSSI_SIM_2;
+               case TELEPHONY_NETWORK_RSSI_3:
+                       return roaming_enabled ? LEVEL_RSSI_ROAMING_3 : LEVEL_RSSI_SIM_3;
                case TELEPHONY_NETWORK_RSSI_4:
                case TELEPHONY_NETWORK_RSSI_5:
-                       return roaming_enabled ? LEVEL_RSSI_ROAMING_3 : LEVEL_RSSI_SIM_3;
                case TELEPHONY_NETWORK_RSSI_6:
                        return roaming_enabled ? LEVEL_RSSI_ROAMING_4 : LEVEL_RSSI_SIM_4;
                default: