mirror of git://git.sysmocom.de/ofono
ifxmodem: change AT command for enabling SATK
This commit is contained in:
parent
d0f0e99f47
commit
d8f7f53096
|
@ -46,7 +46,7 @@ struct stk_data {
|
||||||
|
|
||||||
static const char *none_prefix[] = { NULL };
|
static const char *none_prefix[] = { NULL };
|
||||||
static const char *sate_prefix[] = { "+SATE:", 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)
|
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);
|
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)
|
gpointer user_data)
|
||||||
{
|
{
|
||||||
struct ofono_stk *stk = 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, "+SATN:", satn_notify, FALSE, stk, NULL);
|
||||||
g_at_chat_register(sd->chat, "+SATF:", satf_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,
|
g_at_chat_send(sd->chat, "AT+XSATK=1,1", none_prefix, NULL, NULL, NULL);
|
||||||
NULL, NULL, NULL);
|
|
||||||
|
|
||||||
ofono_stk_register(stk);
|
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);
|
ofono_stk_set_data(stk, sd);
|
||||||
|
|
||||||
g_at_chat_send(sd->chat, "AT+CFUN=?", cfun_prefix,
|
g_at_chat_send(sd->chat, "AT+XSATK=?", xsatk_prefix, xsatk_support_cb,
|
||||||
cfun_support_cb, stk, NULL);
|
stk, NULL);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue