const guint8 *pdu = NULL;
gint len = 0;
+ DBG("");
+
decode_at_error(&error, g_at_result_final_response(result));
if (!ok) {
char *buf = g_try_new(char, 64 + length * 2);
int len, ret;
+ DBG("");
+
if (!cbd || !buf)
goto error;
len += sprintf(buf + len, "%02hhX", *command++);
len += sprintf(buf + len, "\"");
+ DBG("%s", buf);
+
ret = g_at_chat_send(sd->chat, buf, stke_prefix,
mbm_stke_cb, cbd, g_free);
+ DBG("ret %d", ret);
+
g_free(buf);
buf = NULL;
ofono_stk_generic_cb_t cb = cbd->cb;
struct ofono_error error;
+ DBG("");
+
decode_at_error(&error, g_at_result_final_response(result));
cb(&error, cbd->data);
}
char *buf = g_try_new(char, 64 + length * 2);
int len, ret;
+ DBG("");
+
if (!cbd || !buf)
goto error;
const guint8 *pdu;
gint len;
+ DBG("");
+
g_at_result_iter_init(&iter, result);
if (!g_at_result_iter_next(&iter, "*STKI:"))
static void stkn_notify(GAtResult *result, gpointer user_data)
{
+ DBG("");
+
/* Proactive command has been handled by the modem. Should
* the core be notified? For now we just ignore it because
* we must not respond to the command.
{
struct ofono_stk *stk = user_data;
+ DBG("");
+
ofono_stk_proactive_session_end_notify(stk);
}
struct ofono_stk *stk = user_data;
struct stk_data *sd = ofono_stk_get_data(stk);
+ DBG("");
+
if (!ok)
return;
GAtChat *chat = data;
struct stk_data *sd;
+ DBG("");
+
sd = g_new0(struct stk_data, 1);
sd->chat = chat;
{
struct stk_data *sd = ofono_stk_get_data(stk);
+ DBG("");
+
ofono_stk_set_data(stk, NULL);
g_free(sd);