From 4cd5044bfd5d2394b5001c4c6de63b181b0051bf Mon Sep 17 00:00:00 2001 From: Carlo Lobrano Date: Thu, 1 Jun 2017 11:04:04 +0200 Subject: telit: manage QSS transitions Currently, Telit's SIM swap implementation is stateless and based on #QSS unsolicited messages 0/1 (SIM_REMOVED/SIM_INSERTED). However, the user might have configured the modem in order to provide a more detailed information, with #QSS values 2/3 (SIM UNLOCKED/SIM READY). In this case and with current implementation, even receiving "#QSS: 3" will trigger the "SIM swap" logic. The same issue might occur in other use cases too, i.e. with SIM locked or when the message is received from both USB ports. This patch makes SIM swap implementation stateful, and it considers as an actual SIM swap, only transitions from #QSS: 0 to #QSS: 1/2/3 and vice versa. --- .gitignore | 2 ++ 1 file changed, 2 insertions(+) (limited to '.gitignore') diff --git a/.gitignore b/.gitignore index 9e79d2586..685ff84f4 100644 --- a/.gitignore +++ b/.gitignore @@ -175,6 +175,8 @@ Makefile.in /plugins/ublox/mm-ublox-enums-types.[ch] +/plugins/telit/mm-telit-enums-types.[ch] + /test/lsudev /test/mmtty /test/mmrules -- cgit v1.2.1