atmodem: Add dummy handler for generic time zone update

This commit is contained in:
Marcel Holtmann 2010-10-28 19:11:18 +02:00
parent ed7a22c867
commit 0ec69a291d
1 changed files with 22 additions and 1 deletions

View File

@ -697,6 +697,24 @@ static void ciev_notify(GAtResult *result, gpointer user_data)
ofono_netreg_strength_notify(netreg, strength);
}
static void ctzv_notify(GAtResult *result, gpointer user_data)
{
//struct ofono_netreg *netreg = user_data;
//struct netreg_data *nd = ofono_netreg_get_data(netreg);
const char *tz;
GAtResultIter iter;
g_at_result_iter_init(&iter, result);
if (!g_at_result_iter_next(&iter, "+CTZV:"))
return;
if (!g_at_result_iter_next_unquoted_string(&iter, &tz))
return;
DBG("tz %s", tz);
}
static void ifx_ctzv_notify(GAtResult *result, gpointer user_data)
{
struct ofono_netreg *netreg = user_data;
@ -1150,8 +1168,11 @@ static void at_creg_set_cb(gboolean ok, GAtResult *result, gpointer user_data)
g_at_chat_send(nd->chat, "AT_OSQI?", none_prefix,
NULL, NULL, NULL);
/* Register for network time update reports */
g_at_chat_register(nd->chat, "+CTZV:", ctzv_notify,
FALSE, netreg, NULL);
g_at_chat_send(nd->chat, "AT+CTZR=1", none_prefix,
NULL, NULL, NULL);
NULL, NULL, NULL);
break;
case OFONO_VENDOR_MBM:
/* Enable network registration updates */