diff options
author | Jeevaka Badrappan <jeevaka.badrappan@linux.intel.com> | 2011-07-15 05:42:14 -0700 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2011-07-15 11:09:04 -0500 |
commit | c65903bddd554c0c1e2f97450e247da1b3fbbc0e (patch) | |
tree | e3b8abf837f8ffd85d78039a22c66d1c6bfe14e6 | |
parent | 00d16d1387371d0a2e2ad3b171bcfd5d3b3583ef (diff) | |
download | ofono-c65903bddd554c0c1e2f97450e247da1b3fbbc0e.tar.bz2 |
ifxmodem: add support for user_confirmation in stk
-rw-r--r-- | drivers/ifxmodem/stk.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/ifxmodem/stk.c b/drivers/ifxmodem/stk.c index f08cf471..d2082c48 100644 --- a/drivers/ifxmodem/stk.c +++ b/drivers/ifxmodem/stk.c @@ -173,6 +173,16 @@ error: CALLBACK_WITH_FAILURE(cb, data); } +static void ifx_stk_user_confirmation(struct ofono_stk *stk, gboolean confirm) +{ + struct stk_data *sd = ofono_stk_get_data(stk); + char buf[20]; + + snprintf(buf, sizeof(buf), "AT+SATD=%i", confirm ? 1 : 0); + + g_at_chat_send(sd->chat, buf, none_prefix, NULL, NULL, NULL); +} + static void sati_notify(GAtResult *result, gpointer user_data) { struct ofono_stk *stk = user_data; @@ -303,6 +313,7 @@ static struct ofono_stk_driver driver = { .remove = ifx_stk_remove, .envelope = ifx_stk_envelope, .terminal_response = ifx_stk_terminal_response, + .user_confirmation = ifx_stk_user_confirmation, }; void ifx_stk_init(void) |