netreg: Turn off CIEV indications other than rssi

This commit is contained in:
Denis Kenzior 2013-11-26 16:25:03 -06:00
parent 3722e626f3
commit 85cdacb509
1 changed files with 11 additions and 0 deletions

View File

@ -1656,6 +1656,8 @@ static void cind_support_cb(gboolean ok, GAtResult *result, gpointer user_data)
int min = 0;
int max = 0;
int tmp_min, tmp_max, invalid;
int i, len;
char buf[256];
if (!ok)
goto error;
@ -1715,6 +1717,15 @@ static void cind_support_cb(gboolean ok, GAtResult *result, gpointer user_data)
if (nd->signal_index == 0)
goto error;
/* Turn off all CIEV indicators except the signal indicator */
len = sprintf(buf, "AT+CIND=");
for (i = 1; i < index - 1; i++)
len += sprintf(buf + len, i == nd->signal_index ? "1," : "0,");
len += sprintf(buf + len, i == nd->signal_index ? "1" : "0");
g_at_chat_send(nd->chat, buf, NULL, NULL, NULL, NULL);
switch (nd->vendor) {
case OFONO_VENDOR_MBM:
/*