altair-lte: obtain subscription state of SIM from registration failure code

This patch uses the extended error code after a registration failure to
determine if the SIM in the relevant modem is associated with a non-provisioned
account. It uses the standard AT+CEER command, but the implementation is
restricted to the altair plugin.
This commit is contained in:
Prathmesh Prabhu
2013-10-10 08:29:56 +02:00
committed by Aleksander Morgado
parent 92a2953e93
commit 09ea458f78
5 changed files with 313 additions and 3 deletions
+13
View File
@@ -348,6 +348,8 @@ libmm_plugin_novatel_la_LDFLAGS = $(PLUGIN_COMMON_LINKER_FLAGS)
# Altair LTE modem
libmm_plugin_altair_lte_la_SOURCES = \
altair/mm-modem-helpers-altair-lte.c \
altair/mm-modem-helpers-altair-lte.h \
altair/mm-plugin-altair-lte.c \
altair/mm-plugin-altair-lte.h \
altair/mm-broadband-modem-altair-lte.c \
@@ -357,6 +359,17 @@ libmm_plugin_altair_lte_la_SOURCES = \
libmm_plugin_altair_lte_la_CPPFLAGS = $(PLUGIN_COMMON_COMPILER_FLAGS)
libmm_plugin_altair_lte_la_LDFLAGS = $(PLUGIN_COMMON_LINKER_FLAGS)
noinst_PROGRAMS += test-modem-helpers-altair-lte
test_modem_helpers_altair_lte_SOURCES = \
altair/mm-modem-helpers-altair-lte.c \
altair/mm-modem-helpers-altair-lte.h \
altair/tests/test-modem-helpers-altair-lte.c
test_modem_helpers_altair_lte_CPPFLAGS = \
-I$(top_srcdir)/plugins/altair \
$(PLUGIN_COMMON_COMPILER_FLAGS)
test_modem_helpers_altair_lte_LDFLAGS = $(top_builddir)/libmm-glib/libmm-glib.la
# VIA modem
libmm_plugin_via_la_SOURCES = \
via/mm-plugin-via.c \