ifxmodem: change AT command for enabling SATK

This commit is contained in:
Jeevaka Badrappan 2011-01-13 15:27:27 +02:00 committed by Marcel Holtmann
parent d0f0e99f47
commit d8f7f53096
1 changed files with 5 additions and 6 deletions

View File

@ -46,7 +46,7 @@ struct stk_data {
static const char *none_prefix[] = { NULL };
static const char *sate_prefix[] = { "+SATE:", NULL };
static const char *cfun_prefix[] = { "+CFUN:", NULL };
static const char *xsatk_prefix[] = { "+XSATK:", NULL };
static void sate_cb(gboolean ok, GAtResult *result, gpointer user_data)
{
@ -244,7 +244,7 @@ static void satf_notify(GAtResult *result, gpointer user_data)
ofono_stk_proactive_session_end_notify(stk);
}
static void cfun_support_cb(gboolean ok, GAtResult *result,
static void xsatk_support_cb(gboolean ok, GAtResult *result,
gpointer user_data)
{
struct ofono_stk *stk = user_data;
@ -259,8 +259,7 @@ static void cfun_support_cb(gboolean ok, GAtResult *result,
g_at_chat_register(sd->chat, "+SATN:", satn_notify, FALSE, stk, NULL);
g_at_chat_register(sd->chat, "+SATF:", satf_notify, FALSE, stk, NULL);
g_at_chat_send(sd->chat, "AT+CFUN=6", none_prefix,
NULL, NULL, NULL);
g_at_chat_send(sd->chat, "AT+XSATK=1,1", none_prefix, NULL, NULL, NULL);
ofono_stk_register(stk);
}
@ -280,8 +279,8 @@ static int ifx_stk_probe(struct ofono_stk *stk, unsigned int vendor, void *data)
ofono_stk_set_data(stk, sd);
g_at_chat_send(sd->chat, "AT+CFUN=?", cfun_prefix,
cfun_support_cb, stk, NULL);
g_at_chat_send(sd->chat, "AT+XSATK=?", xsatk_prefix, xsatk_support_cb,
stk, NULL);
return 0;
}