added code to enable and initialize stk in xmm7modem plugin
---
plugins/xmm7xxx.c | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/plugins/xmm7xxx.c b/plugins/xmm7xxx.c
index 90e52fb..83ed263 100644
--- a/plugins/xmm7xxx.c
+++ b/plugins/xmm7xxx.c
@@ -1223,6 +1223,16 @@ static void xmm7xxx_pre_sim(struct ofono_modem *modem)
DBG("%p", modem);
ofono_devinfo_create(modem, OFONO_VENDOR_IFX, "atmodem", data->chat);
+
+ ofono_stk_create(modem, 0, "atmodem", data->chat);
+
+ /* enabling stk */
+ g_at_chat_send(data->chat,
+ "AT+CFUN=6", none_prefix, NULL, NULL, NULL);
+ /* sim reset to get stk menu command */
+ g_at_chat_send(data->chat,
+ "AT+CFUN=27,1", none_prefix, NULL, NULL, NULL);
+
data->sim = ofono_sim_create(modem, OFONO_VENDOR_IFX, "atmodem",
data->chat);
}
--
1.9.1
_______________________________________________
ofono mailing list
[email protected]
https://lists.ofono.org/mailman/listinfo/ofono