Two different ways are implemented to get and to set RSSI.
vconf internal API is used To get RSSI value and systemcall is used to set it.
systemcall is slow and discouraged for security reason.
So, setting RSSI is changed to use vconf internal API.
Change-Id: I1f28d1dfdd21b87ad952684d962b8ff97c4a50e6
Signed-off-by: Jinhyung Choi <jinh0.choi@samsung.com>
x = atoi(tmpbuf);
- snprintf(command, sizeof(command), "vconftool set -t int memory/telephony/rssi %d -i -f", x);
- systemcall(command);
+ vconf_set_int(VCONF_RSSI, x);
return 0;
}